Open rafalou38 opened 1 month ago
I tested with godot 4.3 stable and instead a crash the editor starts a spam of two errors:
res://views/shop/shop_item.gd:20 - Out of bounds get index '0' (on base: 'Dictionary')
res://views/shop/shop_item.gd:20 - Out of bounds get index '1' (on base: 'Dictionary')
I bisected and the crash was changed to the error spam after https://github.com/godotengine/godot/pull/91472. Before this pr the engine crash with this backtrace:
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