Skip to content

Android: Crashes are not reported sometimes #4841

Open
@pavel-zaletski

Description

@pavel-zaletski

What React Native libraries do you use?

Hermes, React Navigation

Are you using sentry.io or on-premise?

on-premise (Self-Hosted)

@sentry/react-native SDK Version

6.11.0

How does your development environment look like?

System:
  OS: macOS 15.4.1
  CPU: (8) arm64 Apple M2
  Memory: 241.48 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 22.14.0
    path: /usr/local/bin/node
  Yarn:
    version: 1.22.22
    path: /usr/local/bin/yarn
  npm:
    version: 10.9.2
    path: /usr/local/bin/npm
  Watchman:
    version: 2025.04.14.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.16.2
    path: /opt/homebrew/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.2
      - iOS 18.2
      - macOS 15.2
      - tvOS 18.2
      - visionOS 2.2
      - watchOS 11.2
  Android SDK: Not Found
IDEs:
  Android Studio: 2024.3 AI-243.24978.46.2431.13363775
  Xcode:
    version: 16.2/16C5032a
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.15
    path: /usr/bin/javac
  Ruby:
    version: 3.4.3
    path: /opt/homebrew/opt/ruby/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react: Not Found
  react-native: Not Found
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false


Sentry.init()

 Sentry.init({
      release: RELEASE_NAME,
      dist: BUILD_NUMBER,
      dsn: CONFIG.DSN,
      environment: ENV_GLOBAL.toLowerCase(),
      enabled: true,
      tracesSampleRate: 1.0,
      attachStacktrace: true,
      enableNativeFramesTracking: true,
      enableNativeCrashHandling: true,
      enableAutoSessionTracking: true,
      sessionTrackingIntervalMillis: 30000,
      beforeBreadcrumb(breadcrumb, hint) {
        ...
      },
      replaysSessionSampleRate: 1.0,
      replaysOnErrorSampleRate: 1.0,
      integrations: [
        Sentry.mobileReplayIntegration({
          ...
        }),
      ],
    });

Steps to Reproduce

Crashes example in Embrace:
Image
Crashes are not reported in Sentry:

Image

Expected Result

On iOS everything is working fine.

Example in Embrace:
Image

Crashes in Sentry:

Image

Actual Result

Crashes are reported in Sentry only when there is a message after crash - [App] keeps stopping

Image

Metadata

Metadata

Assignees

Type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions