-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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 crashes if tool script deletes the scene root #99001
Comments
I read through the closed issue, and I still think this is a valid issue for normal users. In my case I created a scene resembling a bullet, tested with Because I wrote the auto delete behavior in game with hot reload, the editor didn't crash instantly after adding I think a fix could be that OR the editor could crash, but have a message pop up about this. |
Ah older issues describe that this is something user needs to be aware of: #26409 Maintainers: you can close this if you think the same still. |
Yeah this is sadly a case of "With great power comes great responsibility". Tool scripts are super powerful but that also implies the power of wreaking havoc in the editor and causing crashes. We're working on a Safe Mode feature which will at least let you recover such crashed projects in a better way (tested with the MRP, it makes it possible to open the project and fix the tool script): #92563. |
Tested versions
System information
Godot v4.3.dev3 - Ubuntu 20.04.6 LTS (Focal Fossa) - X11 - Vulkan (Mobile) - dedicated AMD Radeon RX 6600 (RADV NAVI23) () - AMD Ryzen 7 5800X 8-Core Processor (16 Threads)
Issue description
Editor crashes if a scene root deletes itself via tool script
Backtrace below. I tried to turn debug symbols on by compiling with
production=yes debug_symbols=yes
, but didn't get any extra info in this case:Steps to reproduce
queue_free
in_physics_process
Minimal reproduction project (MRP)
tool-script-crash.zip
The text was updated successfully, but these errors were encountered: