sentry-react-native: EXC_BAD_ACCESS RCTModalHostViewController New Issue Unhandled addObject: > numberWithInteger: > Attempted to dereference garbage pointer 0x2bd270000000010

Environment

OS - Mac OS

Platform: iOS

How do you use Sentry? Sentry SaaS (sentry.io)

Which SDK and version? Sentry React Native - 3.2.8

react-native version: 0.64.2

I am using sentry.io, please post a link to your issue so we can take a look:

issue link

Configuration:

Sentry.init({
      dsn: "https://xxxxxxxxx.xxxx.sentry.io/xxxxx",
      //Enable Instrumentation
      integrations: [
        new Sentry.ReactNativeTracing({
          routingInstrumentation: reactNavigationV4Instrumentation,
          tracingOrigins: ['localhost', 'xxxxx.xxx.xxx', /^\//, /^https:\/\//],
        }),
      ],
      tracesSampleRate: 1,
      environment: isEmulator ? `${Config.SENTRY_ENV}_simulator` : Config.SENTRY_ENV,
    });

Steps to Reproduce

Previously we were using v2.6.2 and after upgrading to @sentry/react-native v3.2.3, we are experiencing a hard application crash when launching our application with the above Sentry.init

I tried all the version from 3.2.3 to 3.2.8 but issue is still happening. After downgrading to 2.6.2 I am not observing this issue.Because of this I am not able to upgrade to 3.x

issue is only happening on iOS (easily reproducible on iOS 12.5.5 )and its not consistent. If I launch the application 4 to 5 times then one of the launch is crashing. We are observing this issue on iOS 12 and iOS 14

Expected Result

Application runs as normal

Actual Result

Application closes immediately upon load of the compiled JS bundle. I have shared the issue link

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 21 (10 by maintainers)

Most upvoted comments

@marandaneto Give me weeks time. I will provide the minimal reproducible example repo.