godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
90.72k stars 21.12k forks source link

Unknown crash #98114

Open MarkoGrbec opened 2 weeks ago

MarkoGrbec commented 2 weeks ago

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

Godot Engine v4.4.dev3.official.f4af8201b - https://godotengine.org
OpenGL API 4.6 (Core Profile) Mesa 24.2.2-arch1.1 - Compatibility - Using Device: Intel - Mesa Intel(R) HD Graphics 4600 (HSW GT2)

MESA-INTEL: warning: Haswell Vulkan support is incomplete
Editing project: /home/marko/Programming/GoDot/Editor/IE beta/4.4-dev3/Copy (1) infinity-elements
Godot Engine v4.4.dev3.official.f4af8201b - https://godotengine.org
libspeechd.so.2: cannot open shared object file: No such file or directory
MESA-INTEL: warning: Haswell Vulkan support is incomplete
Vulkan 1.2.289 - Forward Mobile - Using Device #0: Intel - Intel(R) HD Graphics 4600 (HSW GT2)

[marko@markoC3PO GoDot4.4-Dev3]$ Could not find version of build tools that matches Target SDK, using 35.0.0

================================================================
handle_crash: Program crashed with signal 11
Engine version: Godot Engine v4.4.dev3.official (f4af8201bac157b9d47e336203d3e8a8ef729de2)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[1] /usr/lib/libc.so.6(+0x3d1d0) [0x7f3e5dd351d0] (??:0)
[2] /home/marko/Desktop/GoDot4.4-Dev3/Godot_v4.4-dev3_linux.x86_64() [0x7bfb9b] (??:0)
[3] /home/marko/Desktop/GoDot4.4-Dev3/Godot_v4.4-dev3_linux.x86_64() [0x4a2a6ee] (??:0)
[4] /home/marko/Desktop/GoDot4.4-Dev3/Godot_v4.4-dev3_linux.x86_64() [0x6ea814] (??:0)
[5] /home/marko/Desktop/GoDot4.4-Dev3/Godot_v4.4-dev3_linux.x86_64() [0x71004b] (??:0)
[6] /home/marko/Desktop/GoDot4.4-Dev3/Godot_v4.4-dev3_linux.x86_64() [0x709378] (??:0)
[7] /home/marko/Desktop/GoDot4.4-Dev3/Godot_v4.4-dev3_linux.x86_64() [0x7263c9] (??:0)
[8] /home/marko/Desktop/GoDot4.4-Dev3/Godot_v4.4-dev3_linux.x86_64() [0x6fe584] (??:0)
[9] /home/marko/Desktop/GoDot4.4-Dev3/Godot_v4.4-dev3_linux.x86_64() [0x719477] (??:0)
[10] /home/marko/Desktop/GoDot4.4-Dev3/Godot_v4.4-dev3_linux.x86_64() [0x6fd89a] (??:0)
[11] /home/marko/Desktop/GoDot4.4-Dev3/Godot_v4.4-dev3_linux.x86_64() [0x70452e] (??:0)
[12] /home/marko/Desktop/GoDot4.4-Dev3/Godot_v4.4-dev3_linux.x86_64() [0x7045be] (??:0)
[13] /home/marko/Desktop/GoDot4.4-Dev3/Godot_v4.4-dev3_linux.x86_64() [0x705e17] (??:0)
[14] /home/marko/Desktop/GoDot4.4-Dev3/Godot_v4.4-dev3_linux.x86_64() [0x706c25] (??:0)
[15] /home/marko/Desktop/GoDot4.4-Dev3/Godot_v4.4-dev3_linux.x86_64() [0x71fd88] (??:0)
[16] /home/marko/Desktop/GoDot4.4-Dev3/Godot_v4.4-dev3_linux.x86_64() [0x73ca24] (??:0)
[17] /home/marko/Desktop/GoDot4.4-Dev3/Godot_v4.4-dev3_linux.x86_64() [0x7403b5] (??:0)
[18] /home/marko/Desktop/GoDot4.4-Dev3/Godot_v4.4-dev3_linux.x86_64() [0x6c5715] (??:0)
[19] /home/marko/Desktop/GoDot4.4-Dev3/Godot_v4.4-dev3_linux.x86_64() [0x6cc696] (??:0)
[20] /home/marko/Desktop/GoDot4.4-Dev3/Godot_v4.4-dev3_linux.x86_64() [0x3f9f479] (??:0)
[21] /home/marko/Desktop/GoDot4.4-Dev3/Godot_v4.4-dev3_linux.x86_64() [0x167c2cc] (??:0)
[22] /home/marko/Desktop/GoDot4.4-Dev3/Godot_v4.4-dev3_linux.x86_64() [0x1685b51] (??:0)
[23] /home/marko/Desktop/GoDot4.4-Dev3/Godot_v4.4-dev3_linux.x86_64() [0x1dea87c] (??:0)
[24] /home/marko/Desktop/GoDot4.4-Dev3/Godot_v4.4-dev3_linux.x86_64() [0x1684600] (??:0)
[25] /home/marko/Desktop/GoDot4.4-Dev3/Godot_v4.4-dev3_linux.x86_64() [0x16851c0] (??:0)
[26] /home/marko/Desktop/GoDot4.4-Dev3/Godot_v4.4-dev3_linux.x86_64() [0x168f2cf] (??:0)
[27] /home/marko/Desktop/GoDot4.4-Dev3/Godot_v4.4-dev3_linux.x86_64() [0x42fc9c2] (??:0)
[28] /home/marko/Desktop/GoDot4.4-Dev3/Godot_v4.4-dev3_linux.x86_64() [0x282bd47] (??:0)
[29] /home/marko/Desktop/GoDot4.4-Dev3/Godot_v4.4-dev3_linux.x86_64() [0x28395d9] (??:0)
[30] /home/marko/Desktop/GoDot4.4-Dev3/Godot_v4.4-dev3_linux.x86_64() [0x28396fc] (??:0)
[31] /home/marko/Desktop/GoDot4.4-Dev3/Godot_v4.4-dev3_linux.x86_64() [0x25f3678] (??:0)
[32] /home/marko/Desktop/GoDot4.4-Dev3/Godot_v4.4-dev3_linux.x86_64() [0x2628686] (??:0)
[33] /home/marko/Desktop/GoDot4.4-Dev3/Godot_v4.4-dev3_linux.x86_64() [0x2657dd1] (??:0)
[34] /home/marko/Desktop/GoDot4.4-Dev3/Godot_v4.4-dev3_linux.x86_64() [0x26b11d9] (??:0)
[35] /home/marko/Desktop/GoDot4.4-Dev3/Godot_v4.4-dev3_linux.x86_64() [0x49e217e] (??:0)
[36] /home/marko/Desktop/GoDot4.4-Dev3/Godot_v4.4-dev3_linux.x86_64() [0x4b802f] (??:0)
[37] /home/marko/Desktop/GoDot4.4-Dev3/Godot_v4.4-dev3_linux.x86_64() [0x402b9b7] (??:0)
[38] /home/marko/Desktop/GoDot4.4-Dev3/Godot_v4.4-dev3_linux.x86_64() [0x402cfbf] (??:0)
[39] /home/marko/Desktop/GoDot4.4-Dev3/Godot_v4.4-dev3_linux.x86_64() [0x4bf1e0] (??:0)
[40] /home/marko/Desktop/GoDot4.4-Dev3/Godot_v4.4-dev3_linux.x86_64() [0x41d058] (??:0)
[41] /usr/lib/libc.so.6(+0x25e08) [0x7f3e5dd1de08] (??:0)
[42] /usr/lib/libc.so.6(__libc_start_main+0x8c) [0x7f3e5dd1decc] (??:0)
[43] /home/marko/Desktop/GoDot4.4-Dev3/Godot_v4.4-dev3_linux.x86_64() [0x43bdca] (??:0)
-- END OF BACKTRACE --
================================================================

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

AThousandShips commented 2 weeks ago

Sounds like:

MarkoGrbec commented 2 weeks ago

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.

HolonProduction commented 2 weeks ago

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.

MarkoGrbec commented 2 weeks ago

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

MarkoGrbec commented 1 week ago

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