-
-
Notifications
You must be signed in to change notification settings - Fork 311
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 when call SentryUIApplication in background thread #3855
Conversation
Hello @mlch911, thanks for the help. I need to check tho what is triggering the initialization. because just pushing it to a background thread may not be enough. |
This is not only occurs during initialization. Our app encounter this crash rarely when the network monitoring occurs at background thread just after we init sentry in main thread. Here is the crash stack.
My code fixes crash in this case. There may be other scenarios that can cause similar crashes. More sophisticated consideration may be needed. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3855 +/- ##
=============================================
- Coverage 90.672% 90.608% -0.064%
=============================================
Files 579 579
Lines 45283 45295 +12
Branches 16121 16118 -3
=============================================
- Hits 41059 41041 -18
- Misses 4044 4184 +140
+ Partials 180 70 -110
... and 32 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Fix crash when call SentryUIApplication in background thread. #3836 Co-authored-by: Dhiogo Brustolin <dhiogo.brustolin@sentry.io>
…try#3855) Fix crash when call SentryUIApplication in background thread. getsentry#3836 Co-authored-by: Dhiogo Brustolin <dhiogo.brustolin@sentry.io>
…try#3855) Fix crash when call SentryUIApplication in background thread. getsentry#3836 Co-authored-by: Dhiogo Brustolin <dhiogo.brustolin@sentry.io>
📜 Description
Fix crash when call SentryUIApplication in background thread. #3836
💡 Motivation and Context
💚 How did you test it?
📝 Checklist
You have to check all boxes before merging:
sendDefaultPII
is enabled.🔮 Next steps