Skip to content

Error stack trace not deobfuscated when using codepush bundle (Hermes + codepush)  #3279

@brainbicycle

Description

@brainbicycle

OS:

  • Windows
  • MacOS
  • Linux

Platform:

  • iOS
  • Android

SDK:

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

SDK version: 5.9.1

react-native version: 0.70.13

Are you using Expo?

  • Yes
  • No

Are you using sentry.io or on-premise?

  • sentry.io (SaaS)
  • on-premise

If you are using sentry.io, please post a link to your issue so we can take a look:

Link to issue

Apologies wrong issue, this is the correct one:
Link to issue

Configuration:

(@sentry/react-native)

Sentry.init({
    dsn: sentryDSN,
    release: eigenSentryReleaseName(),
    dist: DeviceInfo.getBuildNumber(),
    enableAutoSessionTracking: true,
    autoSessionTracking: true,
    enableWatchdogTerminationTracking: false,
    ...props,
  })

I have following issue:

When downloading and running a codepush bundle in our application errors generated are showing up with their stack traces not deobfuscated in sentry.

Steps to reproduce:

  • Step 1 - set the codepush release name in the project to be consumed in sentry init
  • Step 2 - bundle javascript and sourcemaps - using command yarn bundle:ios
  • Step 3 - upload the bundle to codepush
  • Step 4 - create a corresponding release and upload sourcemaps to sentry
  • Step 5 - download the bundle in beta
  • Step 6 - trigger a sentry error
  • Step 7 - find the error in sentry and observe the stack trace

Extra context:

Actual result:

The error shows up in sentry attached to the correct release but with a stack trace referencing app:///main.jsbundle rather than the deobfuscated code.

bad-stack

Expected result:

The error shows up in sentry with a clean stack trace referencing our deobfuscated code:

good-stack

Metadata

Metadata

Projects

Status

Waiting for: Community

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions