sentry-react-native: cannot read full stack trace when manual sourcemap uploading with hermes

OS:

  • Windows
  • [O] MacOS
  • Linux

Platform:

  • [O] iOS
  • [O] Android

SDK:

SDK version: 0.0.0

react-native version: 0.0.0

"react-native": "0.70.6",

Are you using Expo?

  • Yes
  • [O] No

Are you using sentry.io or on-premise?

  • [O] 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]

Configuration:

(@sentry/react-native)

Sentry.init({
  dsn: Config.SENTRY_DSN,
  debug: true,
  release: test123,
  dist: t123,
  environment: Config.ENV,
  tracesSampleRate: 0.1,
  sampleRate: 0.8,
  // other options
});

or

(react-native-sentry)

Sentry.config(
  'https://...@sentry.io/...'
  // other options
 ).install();

I have following issue:

[Description]

Steps to reproduce:

  • Step 1
  • Step 2

i did manual sourcemap upload this is command

`npx react-native bundle --platform ios --dev false --entry-file index.js --reset-cache --bundle-output main.jsbundle --sourcemap-output main.jsbundle.map --minify false

npx react-native bundle --platform android --dev false --entry-file index.js --reset-cache --bundle-output index.android.bundle --sourcemap-output index.android.bundle.packager.map --minify false

chmod 777 index.android.bundle node_modules/react-native/sdks/hermesc/osx-bin/hermesc -O -emit-binary -output-source-map -out=index.android.bundle.hbc index.android.bundle rm -f index.android.bundle mv index.android.bundle.hbc index.android.bundle

node node_modules/react-native/scripts/compose-source-maps.js index.android.bundle.packager.map index.android.bundle.hbc.map -o index.android.bundle.map

node_modules/@sentry/cli/bin/sentry-cli releases files 3.33.3+334 upload-sourcemaps --dist 334 --strip-prefix /path/to/project/root main.jsbundle main.jsbundle.map --org myOrg --project myProject node_modules/@sentry/cli/bin/sentry-cli releases files 3.33.3+334 upload-sourcemaps --dist 334 --strip-prefix /path/to/project/root index.android.bundle index.android.bundle.map --org myOrg --project myProject

`

release and dist are exactly as same as sentry init options

Actual result:

i cannot read the code line the error ocurred

스크린샷 2023-02-09 오후 5 06 37

[Actual result]

Expected result:

i can read the code line like below

[Expected result] 스크린샷 2023-02-09 오전 11 56 09

btw i use hermes

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 25 (8 by maintainers)

Most upvoted comments

@taehyun-kim-tenuto Thank you for all the details. I’m looking into it. That is good news that Android works. I’ll keep you posted.