-
-
Notifications
You must be signed in to change notification settings - Fork 449
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
io.sentry.android.replay.screenshotrecorder.close android SIGSEGV crash #4228
Comments
@leesoyeon93 thanks for reporting! Could you share details about the SIGSEV you're seeing? Do you have a detailed stacktrace / do you know on which Android OS versions this is happening? |
@markushi The following errors are reported in Firebase Crashlytics
All show similar error reports of this type. In the Google Play Console, the stack trace for Android app crashes and ANR is reported as follows
|
@leesoyeon93 which version of React Native are you using? Also do you use sentry.io and do you see the crashes and ANRs there? If yes, please provide a link here or via email to [email protected] Internal note: I didn't find matches in our internal monitoring tooling. |
I used ***@***.***
my sentry dashboard :
https://ttmik-prod.sentry.io/issues/?project=4508753846599680&statsPeriod=90d
email : ***@***.***
User session replay is working properly in Sentry. However, SIGSEGV errors
are occurring on Android during the process of collecting these session
replays.
```
useEffect(() => {
if (DEPLOY_MODE === 'prod' && SENTRY_DSN && sentryConfig.enableSentry) {
Sentry.init({
dsn: SENTRY_DSN,
tracesSampleRate: sentryConfig.tracesSampleRate ?? 0.1,
profilesSampleRate: sentryConfig.profilesSampleRate ?? 0.0,
replaysSessionSampleRate: sentryConfig.replaysSessionSampleRate ?? 0.0,
replaysOnErrorSampleRate: sentryConfig.replaysOnErrorSampleRate ?? 0.1,
enableAutoSessionTracking: sentryConfig.enableAutoSessionTracking ?? true,
sessionTrackingIntervalMillis:
sentryConfig.sessionTrackingIntervalMillis ?? 30000,
enableAutoPerformanceTracing: sentryConfig.enableAutoPerformanceTracing ??
true,
maxBreadcrumbs: sentryConfig.maxBreadcrumbs ?? 100,
integrations: [
Sentry.hermesProfilingIntegration({
platformProfilers: sentryConfig.platformProfilers ?? true,
}),
Sentry.mobileReplayIntegration({
maskAllImages: sentryConfig.maskAllImages ?? false,
maskAllText: sentryConfig.maskAllText ?? false,
maskAllVectors: sentryConfig.maskAllVectors ?? false,
}),
],
});
Sentry.setUser({
id: auth.user.id ?? '',
email: auth.user.email ?? '',
username: auth.user.nickname ?? '',
});
}
}, [sentryConfig, auth.user]);
```
replaysSessionSampleRate replaysOnErrorSampleRate
The higher this ratio is set, the more excessive SIGSEGV errors occur.
When both are set to 0.0, SIGSEGV does not occur.
|
@leesoyeon93 thank you for the link - we understand the problem and are looking into it. for our investigation: event data indicates RN version |
Integration
sentry-android
Build System
Gradle
AGP Version
8.0.1
Proguard
Enabled
Version
6.5.0
Steps to Reproduce
I introduced Sentry into my React Native project by setting up the following steps:
sentryConfig is a JSON that manages individual values for Sentry settings.
That's it is is very simple process.
The message explains that increasing the ratio for Sentry's session replay functionality causes SIGSEGV errors on Android devices.
Initially, I set it as:
I set the replaysOnErrorSampleRate ratio to 1.0.
After that, abnormal terminations occurred on Android.
So I lowered the replaysOnErrorSampleRate ratio to 0.1, which significantly reduced the proportion of abnormal terminations, but errors are still being reported in the Google Play Console.
Expected Result
Increasing the replaysSessionSampleRate ratio on Android should not cause errors.
Actual Result
[base.apk] io.sentry.android.replay.ScreenshotRecorder.close (SIGSEGV)
i cant slove this issue.
The text was updated successfully, but these errors were encountered: