Skip to content
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

Game crash when removing a node from the scene #21459

Closed
Rsgm opened this issue Aug 26, 2018 · 2 comments
Closed

Game crash when removing a node from the scene #21459

Rsgm opened this issue Aug 26, 2018 · 2 comments

Comments

@Rsgm
Copy link

Rsgm commented Aug 26, 2018

Godot version:

v3.0.6 stable, x64

OS/device including version:

Linux arch 4.17.14, x64

Issue description:

ERROR: remove_from_group: Condition ' !data.grouped.has(p_identifier) ' is true.
   At: scene/main/node.cpp:1828.
ERROR: remove_from_group: Condition ' !data.grouped.has(p_identifier) ' is true.
   At: scene/main/node.cpp:1828.
ERROR: get_tree: Condition ' !data.tree ' is true. returned: __null
   At: scene/main/node.h:254.
handle_crash: Program crashed with signal 11
Dumping the backtrace. Please include this when reporting the bug on https://github.com/godotengine/godot/issues
[1] /usr/lib/libc.so.6(+0x37e00) [0x7ff5cb1d7e00] (??:0)
[2] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x56d679] (<artificial>:?)
[3] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x1ac6c34] (??:?)
[4] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x11d9779] (<artificial>:?)
[5] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x11d9652] (<artificial>:?)
[6] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x11ea91f] (<artificial>:?)
[7] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x12202f1] (??:?)
[8] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x93588e] (??:?)
[9] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x1b4ffc3] (??:?)
[10] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x1b491b2] (??:?)
[11] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x7b3728] (??:?)
[12] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x808618] (<artificial>:?)
[13] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x1b4feff] (??:?)
[14] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x1b491b2] (??:?)
[15] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x7b3728] (??:?)
[16] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x808618] (<artificial>:?)
[17] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x1b4feff] (??:?)
[18] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x1b3c9a9] (??:?)
[19] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x1b3d6c9] (??:?)
[20] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x1482f1e] (<artificial>:?)
[21] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0xc8893e] (??:?)
[22] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x1b4ffc3] (??:?)
[23] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x1b3c9a9] (??:?)
[24] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x1b3d6c9] (??:?)
[25] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x11d9725] (<artificial>:?)
[26] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x11d9652] (<artificial>:?)
[27] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x11ea91f] (<artificial>:?)
[28] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x12202f1] (??:?)
[29] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x93588e] (??:?)
[30] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x1b4ffc3] (??:?)
[31] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x1b491b2] (??:?)
[32] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x7b3728] (??:?)
[33] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x808618] (<artificial>:?)
[34] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x1b4feff] (??:?)
[35] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x1b3c9a9] (??:?)
[36] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x1b3d6c9] (??:?)
[37] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x14d0b8d] (<artificial>:?)
[38] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x14ae753] (<artificial>:?)
[39] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x1b4ffc3] (??:?)
[40] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x1cd7adb] (<artificial>:?)
[41] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x770e7c] (??:?)
[42] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x6e97dd] (??:?)
[43] /usr/lib/libc.so.6(__libc_start_main+0xf3) [0x7ff5cb1c4223] (??:0)
[44] /home/ryan/programs/godot/Godot_v3.0.6-stable_x11.64() [0x6f61ce] (??:?)
-- END OF BACKTRACE --

The game crashes when it hits scripts/ship.gd:30, specifically remove_child(character). Character in this case is the instance of player.tscn in test_world.tscn. I don't get an error in the editor when it crashes, so I'm not sure what could be causing this.

Steps to reproduce:

  1. Run game
  2. move player to ship
  3. crash

Minimal reproduction project:

pirate_game.zip

@Rsgm Rsgm changed the title Game crash when removing a scene instance Game crash when removing a node from the scene Aug 26, 2018
@akien-mga akien-mga added this to the 3.1 milestone Aug 27, 2018
@eon-s
Copy link
Contributor

eon-s commented Aug 27, 2018

On the debugger got this error:

0:00:00:0469 - This function can't be used during the in/out signal.
----------
Type:Error
Description: This function can't be used during the in/out signal.
Time: 0:00:00:0469
C Error: Condition ' locked ' is true.
C Source: scene/2d/area_2d.cpp:324
C Function: _clear_monitoring

Try using call_deferred with a function used to process the removal of the node.

@Rsgm
Copy link
Author

Rsgm commented Aug 27, 2018

That was the issue, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants