Skip to content

Mobile Replay crashes on SDK init in Release mode on Android devices #3990

@LucianGalea

Description

@LucianGalea

OS:

  • Windows
  • MacOS
  • Linux

Platform:

  • iOS
  • Android

SDK:

  • @sentry/react-native (>= 1.0.0)
  • react-native-sentry (<= 0.43.2)

SDK version: 5.27.0

react-native version: 0.73.2

Are you using Expo?

  • Yes
  • No

Are you using sentry.io or on-premise?

  • sentry.io (SaaS)
  • on-premise

Configuration:

(@sentry/react-native)

Sentry.init({
  dsn: 'https://...',

  _experiments: {
    replaysSessionSampleRate: 1.0,
    replaysOnErrorSampleRate: 1.0,
  },

  integrations: [
    Sentry.mobileReplayIntegration({
      maskAllText: false,
      maskAllImages: false,
      maskAllVectors: false,
    }),
  ],
});

I have the following issue:

On React Native 0.73.2, replays on Google Pixel Pro 6 don't work. On top of that, reloading the app will freeze it.

Steps to reproduce:

  • Initialise a project with RN 0.73.2: npx @react-native-community/cli@latest init RNSentryTest --version 0.73.2
  • Add sentry: npx @sentry/wizard@latest -s -i reactNative

Actual result:

On Google Pixel 6 Pro (Android version 14), no replays will be captured. On top of that, reloading the app will freeze. Killing the app and restarting it fixes the freeze.

NOTE: disabling the replays doesn't fix the freeze, so it's probably not related to that.

Expected result:

Replays should be saved.
Reload shouldn't freeze.

Metadata

Metadata

Assignees

Projects

Status

Done

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions