-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Godot crashes when @tool is applied to a script that references a static var dict from another script #95527
Labels
Comments
github-project-automation
bot
moved this to For team assessment
in GDScript Issue Triage
Aug 15, 2024
I tested with godot 4.3 stable and instead a crash the editor starts a spam of two errors:
I bisected and the crash was changed to the error spam after #91472. Before this pr the engine crash with this backtrace: Backtrace
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tested versions
System information
Windows 11
Issue description
Godot completely crashes, without error when I apply
@tool
to my script.I can still run the project successfully by not loading the tool in the editor or by running from cmdline.
Steps to reproduce
After a lot of testing, I have pinpointed the issue to this:
In the tool script at _ready and _process
where Economy is
Minimal reproduction project (MRP)
I reduced my project to the bare minimum to reproduce this error on the min-bug branch:
https://github.com/rafalou38/IdleGame/tree/min-bug
The tool script is at res://views/shop/shop_item.gd
And the crash can be resolved by comenting the line
The text was updated successfully, but these errors were encountered: