sentry-react-native icon indicating copy to clipboard operation
sentry-react-native copied to clipboard

Stack Frame Not Matching Artifact Name

Open darwinshameran opened this issue 10 months ago • 1 comments

OS:

  • [ ] Windows
  • [x] MacOS
  • [ ] Linux

Platform:

  • [x] iOS
  • [ ] Android

SDK:

  • [x] @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?

  • [x] Yes
  • [ ] No

Are you using sentry.io or on-premise?

  • [x] 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: '[email protected]+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

darwinshameran avatar Apr 22 '24 14:04 darwinshameran

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.

krystofwoldrich avatar Apr 24 '24 16:04 krystofwoldrich

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

getsantry[bot] avatar May 16 '24 07:05 getsantry[bot]

Closing this due to inactivity. If this is still an issue feel free to comment here or open a new issue if the context changed.

krystofwoldrich avatar May 17 '24 08:05 krystofwoldrich