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

ANR Events not Symbolicating #1011

Open
3 tasks done
kpujjigit opened this issue Nov 5, 2024 · 2 comments
Open
3 tasks done

ANR Events not Symbolicating #1011

kpujjigit opened this issue Nov 5, 2024 · 2 comments
Assignees

Comments

@kpujjigit
Copy link

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Electron SDK Version

5.6.0

Electron Version

32.1.2

What platform are you using?

Windows

Link to Sentry event

https://openai.sentry.io/issues/6020361972/?environment=development&project=4507771614265344&query=is%3Aunresolved%20issue.priority%3A%5Bhigh%2C%20medium%5D&referrer=issue-stream&sort=date&statsPeriod=30m&stream_index=1

Steps to Reproduce

  1. Build typescript with vite framework and use sentryVitePlugin configured as so:
sentryVitePlugin({
      org: "Redacted",
      project: "Redacted",
      authToken: process.env["SENTRY_AUTH_TOKEN"],
      telemetry: false,
      release: {
        name: pkg.version,
        inject: false,
      },
      sourcemaps: {
        filesToDeleteAfterUpload: [".vite/build/*.map"],
      },
    }),
  1. Upload Native Symbols via a speerate script configured in package.json as:
    "symbol-upload": "sentry-cli debug-files upload -o Redacted -p Redacted packages"

  2. Simulate ANR issue in Electron-based application and send event to Sentry

Expected Result

Error's callstack should symbolicate. Debug Symbols mapping to the issue are present in its release, verified built via Source Map Upload Report.

Actual Result

ALL ANRs are unsymbolicated and claims that stack frame doesn't have Debug IDs when expanding the "unminify code" buttons for any stack frame.

Non-ANR events which are symbolicated contain a debug_meta/images key with the debug ids of the sourcemaps needed to symbolicate the event. By contrast, ANRs simply can't reference the images, even though we've verified they're there.

@timfish
Copy link
Collaborator

timfish commented Nov 6, 2024

Is this with a hang in the main process or in a renderer?

@kpujjigit
Copy link
Author

Is this with a hang in the main process or in a renderer?

@timfish This concerns main process ANRs.

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Nov 6, 2024
AbhiPrasad pushed a commit to getsentry/sentry-javascript that referenced this issue Nov 7, 2024
In the process of fixing
getsentry/sentry-electron#1011 I was looking
for a way to get a `Map<Filename, DebugId>`. I found that there was
already some code duplication for parsing and caching of debug ids from
the polyfilled globals.

This PR moves the common code to `@sentry/utils` which will be useful
for fixing the above.
@getsantry getsantry bot removed the status in GitHub Issues with 👀 3 Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

4 participants