-
-
Notifications
You must be signed in to change notification settings - Fork 344
Android Symbolicated Stack Trace points to a wrong line #3121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, thank you for the message, |
@krystofwoldrich i can see |
Are you using RN SDK older than Likely you need this fix #2891 Can you upgrade to the latest SDK version? |
@sentry/react-native version is not older than
|
This is an exception which is triggered to test if the events are being logged in sentry also i can share the event-id |
@HariWarshan Thank you, I see now, the stack trace doesn't point to the correct file and line of code. Are you using Hermes? |
yes, we are using Hermes. @krystofwoldrich |
Okay, I see, 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
node_modules/hermes-engine/{OS-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 More details about the command https://docs.sentry.io/platforms/react-native/manual-setup/hermes/. |
OS:
Platform:
SDK:
@sentry/react-native
(>= 1.0.0)react-native-sentry
(<= 0.43.2)react-native
version: 0.68.2Are you using Expo?
Are you using sentry.io or on-premise?
Configuration:
(
@sentry/react-native
)I have following issue:
[Description]
I did uploaded the stack trace but noticed
The trace for this event cannot be found
Steps to reproduce:
react-native bundle --dev false --platform android --entry-file index.js --bundle-output index.android.bundle --sourcemap-output index.android.bundle.map
./node_modules/@sentry/cli/bin/sentry-cli --log-level=debug releases --org <org_name> --project <project_name> files $APP_NAME@$APP_VERSION upload-sourcemaps --dist $BUILD_NUMBER --strip-prefix index.js --rewrite index.android.bundle index.android.bundle.map
Sentry.captureException("Test Capture Exception")
Actual result:
The trace for this event cannot be found
on that particular eventEvent exception stacktrace selected frame (0) has incorrect abs_path (valid url is required).
Expected result:
sourcemap should be linked to the events and i should be able to identify the exact line where the exception happened
The text was updated successfully, but these errors were encountered: