Skip to content
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

Stack Frame Not Matching Artifact Name #3773

Open
5 of 11 tasks
darwinshameran opened this issue Apr 22, 2024 · 1 comment
Open
5 of 11 tasks

Stack Frame Not Matching Artifact Name #3773

darwinshameran opened this issue Apr 22, 2024 · 1 comment

Comments

@darwinshameran
Copy link

darwinshameran commented Apr 22, 2024

OS:

  • Windows
  • MacOS
  • Linux

Platform:

  • iOS
  • Android

SDK:

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

SDK version: 5.19.1"

react-native version: 0.73.6

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:

https://fnatic-ltd.sentry.io/issues/5237718755/?project=4504100732600320&query=is%3Aunresolved&referrer=issue-stream&statsPeriod=7d&stream_index=0

Configuration:

Sentry.init({
    dsn: 'redacted',
    enabled: !__DEV__,
    debug: false,
    tracesSampleRate: 0.2,
    normalizeDepth: 10,
    release: 'dev.fnatic.wisp@1.8.0+9997',
    dist: '9997', // Hardcoded for testing
    integrations: [
        new Sentry.ReactNativeTracing({
            routingInstrumentation,
        }),
    ],
})

I have the following issue:

I'm trying to unminify code and make stack frames readable. At the moment, I generate source maps manually and tag them with the appropriate release and dist. On Sentry, I can see the release has two artifacts associated with it. When trying to unminify code for a stack frame, it's displaying "Stack frame path doesn't match a source file artifact name" (see screenshot)

I generate and upload source maps following https://docs.sentry.io/platforms/react-native/sourcemaps/uploading/expo-advanced/

image image (Note: for some reason `~/main.jsbundle` is 0 bytes, even after updating the Sentry SDK to latest version)

Steps to reproduce:

  • Capture a Sentry exception
  • Unminify code in Sentry dashboard

Actual result:

Unable to unminify code

Expected result:

Seeing the original source code for the stack frame

@krystofwoldrich
Copy link
Member

Hi @darwinshameran,
thank you for the message,

what version of the Expo SDK are you using? Are you using CNG? Are you using @sentry/react-native/expo plugin? How does your Bundle React Native code and images build phase looks like?

From the current information you shared, you need to upload the Packager source maps for your iOS builds (even you are using Hermes, as your Hermes bundle include debug information, so JSC source maps will work.) -> https://docs.sentry.io/platforms/react-native/sourcemaps/uploading/expo-advanced/#manual-upload-for-jsc-release

If you share the details about your setup we will be happy to guide you towards working Hermes source maps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Waiting for: Community
Status: Needs More Information
Development

No branches or pull requests

2 participants