Skip to content

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
@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

4 participants