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

Fix crash on shutdown on Windows #36

Merged
merged 2 commits into from
Dec 4, 2024
Merged

Conversation

limbonaut
Copy link
Collaborator

@limbonaut limbonaut commented Nov 29, 2024

This PR fixes a crash on Windows related to memory release, adds sanity checks and debug prints.

@limbonaut limbonaut added the bug Something isn't working label Nov 29, 2024
@limbonaut limbonaut force-pushed the fix/shutdown-crash-on-windows branch from 02e8727 to 8739e08 Compare November 29, 2024 21:13
if (p_level == MODULE_INITIALIZATION_LEVEL_CORE) {
memdelete(SentrySDK::get_singleton());
delete SentryOptions::get_singleton();
if (p_level == MODULE_INITIALIZATION_LEVEL_SCENE) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the latest step? Could we uninstall even later?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll see if I can push it to earlier/later stages. It's been problematic with LEVEL_CORE so far.

Copy link
Collaborator Author

@limbonaut limbonaut Dec 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tracking in #39

@limbonaut limbonaut merged commit 4912c35 into main Dec 4, 2024
8 checks passed
@limbonaut limbonaut deleted the fix/shutdown-crash-on-windows branch December 4, 2024 17:03
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.

2 participants