-
-
Notifications
You must be signed in to change notification settings - Fork 324
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
Sentry Watchdog causes a crashes writing to disk on the main thread #3770
Comments
Hey @sena-mike thanks for the report and the context, we'll investigate! Does this happen randomly or do you have a specific way to reproduce this? |
FYI, why the Cocoa SDK writes breadcrumbs to disk on the calling thread, which can be the main thread (SDK docs):
|
We see this crash happen mostly in TestFlight distribution, however it doesn't happen consistently for all users. Notably TestFlight will alert users that the crash occurred with a system notification even when the app is terminated by the CPU watch dog in the background.
Re the docs, it seems like opting out of watchdog termination tracking might prevent this from happening. Will investigate opting out on our end. |
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you remove the label "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
OS:
Platform:
SDK:
react-native-sentry
(<= 0.43.2)SDK version: 5.6.0
react-native
version: 0.71.8Are you using Expo?
Are you using sentry.io or on-premise?
If you are using sentry.io, please post a link to your issue so we can take a look:
[Link to issue]
Configuration:
(
@sentry/react-native
)or
(
react-native-sentry
)I have the following issue:
[Description]
We get sentry crashes coming to the foreground due to the iOS watchdog. It seems the root cause of this is that Sentry writes to
SentryWatchdogTerminationScopeObserver
on the main queue:This is because the
RNSentry
native module uses the main queue and no dispatches to a background queue or background thread happens.Writing to the main thread while transitioning to the background may cause crashes.
The text was updated successfully, but these errors were encountered: