Open MarkoGrbec opened 2 weeks ago
Sounds like:
sometimes I randomly get:
Line 1889:Could not resolve class "IVisual", because of a parser error.
Line 1890:Could not parse global class "IVisual" from "res://DragonsPentagram/Entity/Scripts/IVisual.gd".
Line 1901:Could not parse global class "IVisual" from "res://DragonsPentagram/Entity/Scripts/IVisual.gd".
Line 1960:Could not parse global class "IVisual" from "res://DragonsPentagram/Entity/Scripts/IVisual.gd".
Line 1970:Could not resolve class "IVisual", because of a parser error.
res://DragonsPentagram/Entity/Scripts/IVisual.gd:
Line 42:Parser bug (please report): Could not find external parser for class "EntityClient". (Trying to resolve class member)
IF I restart godot the error vanishes but that error doesn't crash the godot.
could be related but I have no idea.
I can't reproduce the crash on the current master or 4.3 (with removing typed dicts). Also the crash/freeze you show in you video doesn't seem related to saving, does it? If you are able to reproduce the crash in 4.3, you could download a build with debug symbols and share the trace.
no I checked on 4.3 stable if I remove typed dicts the crash doesn't happen (ofc I need to remove typed dicts as 4.3 stable isn't made for typed dicts yet)
also I figured out on 4.4dev3 if I change anything on script IVisual and save it after that it crashes on end of save
really weird
if I try to do MRP i just can't remake a bug but some how it started complaining and it couldn't compile I had to commented all IVisual script
and I came to line:
var entity_client = g_man.dict_id__entity_client[id]
entity_client.body = new_object
#g_man.dict_id__entity_client[id].body = new_object # <-- is a bug
error that I get if I uncomment is:
Line 46:Parser bug (please report): Could not find external parser for class "EntityClient". (Trying to resolve class member)
it could be related but I'm not sure
when I tried in MRP to do all same conditions it just doesn't happen, maybe if it's largest project ain't sure.
EDIT: now that I have commented and using this 2 lines it doesn't crash any longer when I save
Tested versions
Reproducible in 4.4Dev3, 4.4Dev2
System information
Linux markoC3PO 6.10.11-2-MANJARO #1 SMP PREEMPT_DYNAMIC Thu Sep 26 03:28:26 UTC 2024 x86_64 GNU/Linux
Issue description
I have no idea why it crashes but the larget the project gets it crashes randomly when I save scene and scripts (ctrl + s)
this is what I get IF i run from terminal on manjaro linux
I'm really sorry for not providing MRP because I have no idea what's going on
Steps to reproduce
changing few lines and trying to save 3/4 times it works some times it just crashes
Minimal reproduction project (MRP)
large project
added a video how it crashes it's 14MB long in the link
EDIT: Reproducible in 4.4Dev3, 4.4Dev2 4.4Dev4.3 <- doesn't exist it's typo