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

GD-483: Provide a hotfix crash at exit on macOS #484

Merged
merged 3 commits into from
May 30, 2024
Merged

GD-483: Provide a hotfix crash at exit on macOS #484

merged 3 commits into from
May 30, 2024

Conversation

MikeSchulze
Copy link
Owner

@MikeSchulze MikeSchulze commented May 30, 2024

Why

With version 4.3.0 the plugin exit results into a crash during releasing the owned objects.

What

  • fix freeing components by using queue_free on macOS as the official documentation suggested for remove_control_from_docks but it results now in a lot of memory leaks. (will create a Godot issue)
  • do call_deferred to remove the gdunit server component, where was the root cause of the crash
  • Finally, we're freeing all other resources deferred to avoid singletons to freed before the other resources has queued freed

fixes temporary
godotengine/godot#92727

# Why
With version 4.3.0 the plugin exit results into a crash during releasing the owned objects.

# What
- fix freeing components by using `queue_free` as the official documentation suggested for `remove_control_from_docks`
- do `call_deferred` to remove the gdunit server component, where was the root cause of the crash
- Finally, we're freeing all other resources deferred to avoid singletons to freed before the other resources has queued freed
@MikeSchulze MikeSchulze self-assigned this May 30, 2024
@MikeSchulze MikeSchulze added the bug Something isn't working label May 30, 2024
@MikeSchulze MikeSchulze linked an issue May 30, 2024 that may be closed by this pull request
@MikeSchulze MikeSchulze force-pushed the GD-483 branch 2 times, most recently from 33d715b to 115b995 Compare May 30, 2024 10:18
@MikeSchulze MikeSchulze changed the title GD-483: Fix crash at exit on macOS GD-483: Hotfix crash at exit on macOS May 30, 2024
@MikeSchulze MikeSchulze changed the title GD-483: Hotfix crash at exit on macOS GD-483: Provide a hotfix crash at exit on macOS May 30, 2024
@MikeSchulze MikeSchulze merged commit f07ffae into master May 30, 2024
@MikeSchulze MikeSchulze deleted the GD-483 branch May 30, 2024 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GD-483: Godot crash at exit on macOS
1 participant