-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editor Crashed using GraphEdit with instanced GraphNode #45072
Comments
Just checked with beta 4 and it work just fine |
Not sure if this exactly same issue but running project(with GraphNodes) - wrp.zip and closing it cause Godot crash:
Address Sanitizer log
|
@nafysbrhm Please attach a test project. I'm unable to reproduce this crash on my Windows 10 PC. Maybe it's related to the Linux subsystem. |
I updated the post with the test project |
Yep, thanks, it's still not crashing for me.
to the output however |
I'd seen this error when working on the minimap and double-checked it without my changes, and it was still happening. I assumed that to be an existing issue. And it didn't end up in a crash indeed. Maybe there is something else. |
Indeed, this exact order of actions causes something like You need to cause the In beta5 this error is thrown for every node once (because of the minimap) and then for every node that caused the The error is happening in Same issue in the master, but a different message
|
This regression was introduced by #41995, but my work on minimap exposed it. The situation is as follows: by the time So attempting to call gn->disconnect("item_rect_changed", connections_layer, "update");
gn->disconnect("item_rect_changed", minimap, "update"); causes an error, because there are no records of this signal being connected to an non-existent node. It doesn't matter what signal is being disconnected, the problem is that references are invalid. This is what happens in a running project:
Same happens in the editor, though additionally a new instance of the scene is created at the same time when changing scenes:
Since #41995 makes it clear, that the disconnect is required for some other issues, I can just propose to check if the instances are valid and only disconnect if they are. I assume, if the instances are being freed, disconnections should already be handled gracefully, just like in scripting. |
Godot version:
Godot v3.2.4 beta 5
OS/device including version:
EndeavourOS Linux
Issue description:
Editor crashed when working with GraphEdit and instanced GraphNode. Saving a scene with GraphNode as a base node, and return to the scene where it was instanced, make the editor crashed.
Backtrace
handle_crash: Program crashed with signal 11
Dumping the backtrace. Please include this when reporting the bug
[1] /usr/lib/libc.so.6(+0x3d6a0) [0x7faa7135a6a0] (??:0)
[2] /home/nafys/dev/godot/godot3() [0xda8e4e] (??:?)
[3] /home/nafys/dev/godot/godot3() [0x1b7704a] (:?)
[4] /home/nafys/dev/godot/godot3() [0x1c822aa] (??:?)
[5] /home/nafys/dev/godot/godot3() [0x1c9e2d2] (??:?)
[6] /home/nafys/dev/godot/godot3() [0xdbc65b] (??:?)
[7] /home/nafys/dev/godot/godot3() [0x2cef619] (??:?)
[8] /home/nafys/dev/godot/godot3() [0x1c9e2da] (??:?)
[9] /home/nafys/dev/godot/godot3() [0xdbc65b] (??:?)
[10] /home/nafys/dev/godot/godot3() [0x2cef619] (??:?)
[11] /home/nafys/dev/godot/godot3() [0x25375ef] (??:?)
[12] /home/nafys/dev/godot/godot3() [0x2e58934] (??:?)
[13] /home/nafys/dev/godot/godot3() [0xde38f6] (??:?)
[14] /home/nafys/dev/godot/godot3() [0xd6a483] (:?)
[15] /home/nafys/dev/godot/godot3() [0xd6d339] (??:?)
[16] /home/nafys/dev/godot/godot3() [0xd6d570] (??:?)
[17] /home/nafys/dev/godot/godot3() [0x24bc0b7] (??:?)
[18] /home/nafys/dev/godot/godot3() [0x2e58934] (??:?)
[19] /home/nafys/dev/godot/godot3() [0xde38f6] (??:?)
[20] /home/nafys/dev/godot/godot3() [0xdd36e4] (??:?)
[21] /home/nafys/dev/godot/godot3() [0xdd448c] (??:?)
[22] /home/nafys/dev/godot/godot3() [0x1aaca96] (??:?)
[23] /home/nafys/dev/godot/godot3() [0x1aad57d] (:?)
[24] /home/nafys/dev/godot/godot3() [0x2c2582f] (??:?)
[25] /home/nafys/dev/godot/godot3() [0xdd4cbb] (??:?)
[26] /home/nafys/dev/godot/godot3() [0xdbc54d] (??:?)
[27] /home/nafys/dev/godot/godot3() [0x1c0c1c5] (:?)
[28] /home/nafys/dev/godot/godot3() [0x1c29b44] (:?)
[29] /home/nafys/dev/godot/godot3() [0x1c2b515] (??:?)
[30] /home/nafys/dev/godot/godot3() [0x1c2b666] (:?)
[31] /home/nafys/dev/godot/godot3() [0x2c2582f] (??:?)
[32] /home/nafys/dev/godot/godot3() [0xde38f6] (??:?)
[33] /home/nafys/dev/godot/godot3() [0xdbc5d5] (??:?)
[34] /home/nafys/dev/godot/godot3() [0x1c4ed17] (??:?)
[35] /home/nafys/dev/godot/godot3() [0x1c62700] (??:?)
[36] /home/nafys/dev/godot/godot3() [0x2f04639] (??:?)
[37] /home/nafys/dev/godot/godot3() [0x2ea87ec] (:?)
[38] /home/nafys/dev/godot/godot3() [0x2f0721f] (:?)
[39] /home/nafys/dev/godot/godot3() [0x97b24c] (??:?)
[40] /usr/lib/libc.so.6(__libc_start_main+0xf2) [0x7faa71345152] (??:0)
[41] /home/nafys/dev/godot/godot3() [0x98997e] (??:?)
-- END OF BACKTRACE --
Steps to reproduce:
bug.zip
open the project
open the instanced scene in new tab
save it
return to main scene
The text was updated successfully, but these errors were encountered: