godot: Project crashes when pressing any key in v4.4-dev6 and when rolling back to v4.4-dev5 (custom editor shortcuts)
Tested versions
- v4.4.dev.custom_build.0c45ace15
- Build made to revert the CPU consumption from 4.4-dev5.
- v4.4-dev6
System information
windows 10, Forward+, GTX 1660, Ryzen 3300x, 16GB RAM
Issue description
If I execute the project and press any keys in the keyboard the project crashes leaving the following trace:
Godot Engine v4.4.dev6.official.1f47e4c4e - https://godotengine.org
Vulkan 1.3.289 - Forward+ - Using Device #0: NVIDIA - NVIDIA GeForce GTX 1660
(Virtual Joystick) The Project Setting 'emulate_mouse_from_touch' should be set to False
(Virtual Joystick) The Project Setting 'emulate_touch_from_mouse' should be set to True
================================================================
CrashHandlerException: Program crashed with signal 11
Engine version: Godot Engine v4.4.dev6.official (1f47e4c4e3a09a422e96880a7918d986dd575a63)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[1] error(-1): no debug info in PE/COFF executable
[2] error(-1): no debug info in PE/COFF executable
[3] error(-1): no debug info in PE/COFF executable
[4] error(-1): no debug info in PE/COFF executable
[5] error(-1): no debug info in PE/COFF executable
[6] error(-1): no debug info in PE/COFF executable
[7] error(-1): no debug info in PE/COFF executable
[8] error(-1): no debug info in PE/COFF executable
[9] error(-1): no debug info in PE/COFF executable
[10] error(-1): no debug info in PE/COFF executable
[11] error(-1): no debug info in PE/COFF executable
[12] error(-1): no debug info in PE/COFF executable
[13] error(-1): no debug info in PE/COFF executable
[14] error(-1): no debug info in PE/COFF executable
[15] error(-1): no debug info in PE/COFF executable
[16] error(-1): no debug info in PE/COFF executable
[17] error(-1): no debug info in PE/COFF executable
[18] error(-1): no debug info in PE/COFF executable
[19] error(-1): no debug info in PE/COFF executable
[20] error(-1): no debug info in PE/COFF executable
[21] error(-1): no debug info in PE/COFF executable
[22] error(-1): no debug info in PE/COFF executable
[23] error(-1): no debug info in PE/COFF executable
[24] error(-1): no debug info in PE/COFF executable
-- END OF BACKTRACE --
================================================================
Godot Engine v4.4.dev.custom_build.0c45ace15 (2024-11-22 20:54:49 UTC) - https://godotengine.org
Vulkan 1.3.289 - Forward+ - Using Device #0: NVIDIA - NVIDIA GeForce GTX 1660
(Virtual Joystick) The Project Setting 'emulate_mouse_from_touch' should be set to False
(Virtual Joystick) The Project Setting 'emulate_touch_from_mouse' should be set to True
ERROR: 1 RID allocations of type 'class RendererRD::TextureStorage::Texture' were leaked at exit.
ERROR: Parameter "RenderingServer::get_singleton()" is null.
at: CompressedTexture2D::~CompressedTexture2D (scene\resources\compressed_texture.cpp:464)
ing the bug to the project developer.
[0] <couldn't map PC to fn name>
[1] <couldn't map PC to fn name>
[2] <couldn't map PC to fn name>
[3] <couldn't map PC to fn name>
[4] <couldn't map PC to fn name>
[5] <couldn't map PC to fn name>
[6] <couldn't map PC to fn name>
[7] <couldn't map PC to fn name>
[8] <couldn't map PC to fn name>
[9] <couldn't map PC to fn name>
[10] <couldn't map PC to fn name>
[11] <couldn't map PC to fn name>
[12] <couldn't map PC to fn name>
[13] <couldn't map PC to fn name>
[14] <couldn't map PC to fn name>
[15] <couldn't map PC to fn name>
[16] <couldn't map PC to fn name>
[17] <couldn't map PC to fn name>
[18] <couldn't map PC to fn name>
[19] <couldn't map PC to fn name>
[20] <couldn't map PC to fn name>
[21] <couldn't map PC to fn name>
[22] <couldn't map PC to fn name>
-- END OF BACKTRACE --
================================================================
I was using 4.4-dev5 as I needed a new feature regarding RPCs. I had to go to v4.4.dev.custom_build.0c45ace15 to revert the Clock Syncing changes that were making impossible to work in my project. I then upgraded to 4.4-dev6.
Now, the project crashes even if I go back to v4.4.dev.custom_build.0c45ace15.
I’ve tried deleting the .godot , appdata/local/godot and the appdata/roaming/godot/app_userdata/_project_name_/folder after rolling back to v4.4.dev.custom_build.0c45ace15, but still crashes.
Steps to reproduce
😕
Minimal reproduction project (MRP)
This is happening in my main project.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 26 (12 by maintainers)
Stacktrace for @caioraphael1’s MRP and editor settings from https://github.com/godotengine/godot/issues/100182#issuecomment-2528560604 on Linux in the latest
masterbranch:I suspect that it’s a combination of #98891 which doesn’t properly validate the
p_shortcutbefore dereferencing it (cc @Faless) and #97707 / #99449 which likely corrupted the shortcut mappings in @caioraphael1’s Editor Settings (cc @Sauermann).I can make a quick fix for the first part (missing validation check). For the corrupted shortcuts in Editor Settings, if my hunch is correct, this was just bad luck from testing 4.4-dev4 which introduced a compat breaking change to input events, which we reverted in dev5, but with compatibility code only for Project Settings, not Editor Settings. You can fix this locally by removing/redoing the editor custom hotkeys.
It’s actually related to the
editor_settings-4.4.tresfile in the Roaming/Godot/ folder. Deleting this file makes the crash disappear.Why? No ideia. Tho, as mentioned, when I upgraded from a custom 4.4-dev5 build to the 4.4-dev6, I’ve made some changes to some hotkeys.
My
editor_settings-4.4.tres: editor_settings-4.4.txt (change the extension to .tres)here’s the new MRP: mrp.zip
In my instance this looks more like bugs in my code not checking for nullptr or indexes outside array size rather than in Godot.
I couldn’t reproduce this in a simple project.
If you can’t share the project or a MRP that triggers the issue, it would also be helpful if you could try to figure out what feature your project is using that might trigger this issue.
I notice this in the logs:
That’s not a Godot message, I assume it comes from a thirdparty plugin?
I know you mean well, but this sounds quite dismissive, please pay attention to the way you phrase things.
@caioraphael1 Can you try making your custom build with
debug_symbols=yes, which should add debug symbols and produce a more useful stacktrace?The problem might be related to changes in the InputMap. Could you share the contents of your control mappings in
project.godot? Also if you’re using version control, you can check if/how that file changed in successive upgrades.The reason your shortcut was invalid is either:
I have tried to reproduce the crash, but I was unable to do so, using the MRP with the provided Editor Settings (I have copied the editor settings to
~/.config/godot/editor_settings-4.4.tresand verified, that this file is used). After loading the project, I am pressing some keys, but I don’t cause a crash. (I have tested Linux with Godot a372214a4 and 4.4-dev6(1f47e4c4e) )So I’m not sure, what I’m doing different - it would be great for me, to be able to cause the crash in order to identify the reason for the invalid shortcuts.
Looking at the code of
editor_settings-4.4.tres, I can see no obvious effects from #97707: There are no staledevice = -3assignments in the file, which would be problematic. I’m wondering, if that file should contain thesedevice = -1assignments and if their inclusion needs to be considered a problem.Edit: Update: Now I was able to recreate the crash.
Trace of 4.4-dev6, using debug symbols.
It’s [1f47e4c4e3a09a422e96880a7918d986dd575a63], you can find it on the release blog near the bottom
Well that went a lot smoother than expected (apart from a bug when using target=template_debug, removing fixed). Here’s your improved debug output…
Thanks, will give that a go to try and assist. I’ve been putting off building the editor as I’m only 2 months into using C++ (having spent two decades using C#).
@GameArchitekt To get more information you’d need to build the Godot editor with
debug_symbols=yes, not just the GDExtension.