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: Prevent deadlock in Hub.Dispose #3539

Merged
merged 9 commits into from
Aug 19, 2024
Merged

fix: Prevent deadlock in Hub.Dispose #3539

merged 9 commits into from
Aug 19, 2024

Conversation

bitsandfoxes
Copy link
Contributor

@bitsandfoxes bitsandfoxes commented Aug 16, 2024

Fixes getsentry/sentry-unity#1761

The flush in Dispose causes a deadlock when shutting down the SDK, causing the website that embeds the WebGL player to freeze. The WebGL environment does have some limitations on multithreading.
As far as I can tell: The .Wait() inside the .ContinueWith() is blocking the thread.

@bitsandfoxes bitsandfoxes changed the title no deadlock fix: Prevent deadlock in Hub.Dispose Aug 16, 2024
@bruno-garcia bruno-garcia merged commit 5ff8acc into main Aug 19, 2024
22 checks passed
@bruno-garcia bruno-garcia deleted the fix/dispose-webgl branch August 19, 2024 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WebGL freeze during SDK closing
3 participants