Skip to content
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 4.2 crash on exit with GDScript addon / editor plugin #84327

Closed
mhilbrunner opened this issue Nov 1, 2023 · 1 comment
Closed

Godot 4.2 crash on exit with GDScript addon / editor plugin #84327

mhilbrunner opened this issue Nov 1, 2023 · 1 comment

Comments

@mhilbrunner
Copy link
Member

mhilbrunner commented Nov 1, 2023

Godot version

4.2.dev (up to and including beta4)

System information

Linux and Windows

Issue description

Closing the editor with the attached MVP project open crashes Godot 4.2 on both Windows or Linux. Same for trying to export the project from CLI. Seems something in the W4GD addon results in the engine crashing on exit.

This happens at least down to 4.2.dev3, if not earlier. 4.1.2 and earlier work fine.

Steps to reproduce

Open the attached MVP project in Godot 4.2. Make sure the included editor plugin is enabled in project settings. Close the editor. You should experience a Godot crash along the lines of:

/usr/bin/bash: line 190:  4301 Segmentation fault      (core dumped)

The crash log looks like this on Windows, with other threads mostly idling/sleeping/waiting best I can tell:

Unhandled exception at 0x00007FF982C522C7 (ntdll.dll) in godot4.2-master.exe_231028_235202.dmp: 0xC0000005: Access violation reading location 0x000000870A600000.
 	ntdll.dll!__chkstk�()	Unknown
 	ntdll.dll!RtlDispatchException()	Unknown
 	ntdll.dll!KiUserExceptionDispatch�()	Unknown
>	godot4.2-master.exe!Node::is_accessible_from_caller_thread() Line 552	C++
 	godot4.2-master.exe!Node::propagate_notification(int p_notification) Line 2236	C++
 	godot4.2-master.exe!SceneTree::_notification(int p_notification) Line 697	C++
 	godot4.2-master.exe!SceneTree::_notificationv(int p_notification, bool p_reversed) Line 84	C++
 	godot4.2-master.exe!Object::notification(int p_notification, bool p_reversed) Line 839	C++
 	godot4.2-master.exe!CrashHandlerException(_EXCEPTION_POINTERS * ep) Line 141	C++
 	godot4.2-master.exe!main$filt$0() Line 219	C++
 	godot4.2-master.exe!__C_specific_handler(_EXCEPTION_RECORD * ExceptionRecord, void * EstablisherFrame, _CONTEXT * ContextRecord, _DISPATCHER_CONTEXT * DispatcherContext) Line 389	C++
 	ntdll.dll!RtlpExecuteHandlerForException�()	Unknown
 	ntdll.dll!RtlDispatchException()	Unknown
 	ntdll.dll!KiUserExceptionDispatch�()	Unknown
 	godot4.2-master.exe!Node::is_accessible_from_caller_thread() Line 552	C++
 	godot4.2-master.exe!Node::propagate_notification(int p_notification) Line 2236	C++
 	godot4.2-master.exe!SceneTree::_notification(int p_notification) Line 697	C++
 	godot4.2-master.exe!SceneTree::_notificationv(int p_notification, bool p_reversed) Line 84	C++
 	godot4.2-master.exe!Object::notification(int p_notification, bool p_reversed) Line 839	C++
 	godot4.2-master.exe!CrashHandlerException(_EXCEPTION_POINTERS * ep) Line 141	C++
 	godot4.2-master.exe!main$filt$0() Line 219	C++
 	godot4.2-master.exe!__C_specific_handler(_EXCEPTION_RECORD * ExceptionRecord, void * EstablisherFrame, _CONTEXT * ContextRecord, _DISPATCHER_CONTEXT * DispatcherContext) Line 389	C++
 	ntdll.dll!RtlpExecuteHandlerForException�()	Unknown
 	ntdll.dll!RtlDispatchException()	Unknown
 	ntdll.dll!KiUserExceptionDispatch�()	Unknown
 	...
 	The maximum number of stack frames supported by Visual Studio has been exceeded.

Minimal reproduction project

Removed

@mhilbrunner mhilbrunner modified the milestones: 4.3, 4.2 Nov 1, 2023
@github-project-automation github-project-automation bot moved this to Pending Decision in 4.x Release Blockers Nov 1, 2023
@mhilbrunner mhilbrunner changed the title Godot 4.2 crash during or immediately after export with segmentation fault Godot 4.2 crash during headless export with segmentation fault Nov 1, 2023
@mhilbrunner mhilbrunner changed the title Godot 4.2 crash during headless export with segmentation fault Godot 4.2 crash during export with segmentation fault Nov 1, 2023
@mhilbrunner mhilbrunner changed the title Godot 4.2 crash during export with segmentation fault Godot 4.2 crash on exit with GDScript addon / plugin Nov 1, 2023
@mhilbrunner mhilbrunner changed the title Godot 4.2 crash on exit with GDScript addon / plugin Godot 4.2 crash on exit with GDScript addon / editor plugin Nov 1, 2023
@YuriSizov
Copy link
Contributor

Confirmed a duplicate of #84000, fixed by #84302.

@github-project-automation github-project-automation bot moved this from Pending Decision to Done in 4.x Release Blockers Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

3 participants