Skip to content

fix(native): Fall back to the debug image name for frames without a package - #131456

Merged
scttcper merged 6 commits into
getsentry:masterfrom
SaltGardenia:fix/frame-binary-name-fallback
Nov 19, 2026
Merged

scttcper merged 6 commits into
getsentry:masterfrom
SaltGardenia:fix/frame-binary-name-fallback

Conversation

@SaltGardenia

@SaltGardenia SaltGardenia commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Native frames from debug images without a file name showed <unknown> instead of the binary, even when the frame symbolicated. This happens with MetricKit frames when Apple leaves out the binary name.

Frames now show their debug image's name when they have no package, and frames in images without a size match the same way Symbolicator matches them. getsentry/symbolicator#2201 adds the dSYM's name to those images.

fixes #108356

@SaltGardenia
SaltGardenia requested review from a team as code owners November 17, 2026 15:35
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 17, 2026
@SaltGardenia
SaltGardenia force-pushed the fix/frame-binary-name-fallback branch from 6bd3050 to 1f2d5ed Compare November 17, 2026 15:38

@cursor cursor Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

@SaltGardenia
SaltGardenia force-pushed the fix/frame-binary-name-fallback branch from bf9a67d to 611c253 Compare November 17, 2026 16:36
@scttcper

scttcper commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

i think this might make more sense to fix in symbolicator, asking the team

edit: maybe a little of both

@scttcper scttcper added the Trigger: getsentry tests Once code is reviewed: apply label to PR to trigger getsentry tests label Nov 17, 2026
@scttcper
scttcper enabled auto-merge (squash) November 17, 2026 19:48
…ackage

Frames symbolicated via debug_id can end up without a `package`, so the
frame title showed no binary name (and nothing but <unknown> when no
symbol was resolved either). When the frame carries no package, look up
the debug image whose address range contains the frame's instruction
address and display its code file name.

Fixes getsentry#108356
Native crash frames render through NativeFrame, which has the matched
debug image in scope; use its code file name when the frame is stored
without a package, mirroring the DefaultTitle fallback.
auto-merge was automatically disabled November 18, 2026 15:42

Head branch was pushed to by a user without write access

@SaltGardenia
SaltGardenia force-pushed the fix/frame-binary-name-fallback branch from 2d5e165 to c124227 Compare November 18, 2026 15:42
@github-actions github-actions Bot removed the Trigger: getsentry tests Once code is reviewed: apply label to PR to trigger getsentry tests label Nov 18, 2026
@SaltGardenia

Copy link
Copy Markdown
Contributor Author

Thanks for the review! Sounds good — happy for this to be the UI half of "a little of both": the native frame view (NativeFrame) and the generic frame title both fall back to the matched debug image's code_file when the frame is stored without a package, so users see the binary name regardless of whether symbolicator learns to set package itself. If the team decides it's fully a symbolicator-side fix, closing this is fine too.

@cursor cursor Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

scttcper and others added 3 commits November 19, 2026 11:28
Moves the image lookup out of the DefaultTitle props into a
`getImageName` helper that both frame views share. The deprecated line
also checks `debug_file` now, same as NativeFrame, since MetricKit
images can be missing `code_file`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@scttcper scttcper added the Trigger: getsentry tests Once code is reviewed: apply label to PR to trigger getsentry tests label Nov 19, 2026
@scttcper
scttcper enabled auto-merge (squash) November 19, 2026 19:33
joshuarli added a commit that referenced this pull request Nov 19, 2026
Since #131408, a label event other than `Trigger: Override Selective
Testing` starts an acceptance run where every job skips and the
aggregator reports as `Acceptance (ignored label event)`. If that run is
the newest acceptance run on a commit, the merge box keeps waiting for
the required `Acceptance` check, even though an older run on the same
commit passed. Re-running the older run doesn't help, because it is
still not the newest run.

This hits PRs where a person adds a label after the last push. The
common case is Seer and bot PRs that need `Trigger: getsentry tests`
added again after each push. #131004, reported by @gggritso, is one
example: `Acceptance` passed twice on its head commit, the PR is
approved, and it still shows as blocked. #131456 shows the same pattern.

This change handles label events the way `backend.yml` already does:
- They share the PR's concurrency group.
- They run selective acceptance as usual.
- They report `Acceptance`.

The override label keeps working, because `skip_selective_testing` still
reads the PR's labels.

Trade-off: each manual label added to a PR now starts a selective
acceptance run and cancels any run in progress, just like backend.
#131408 used the ignored-label path to avoid that cost.

Open question: the claim that the merge box only counts the newest run
per workflow is inferred from the check and merge state of the PRs
above, not from GitHub docs.

Refs DI-2885

<!-- junior-request-attribution:start -->
via @joshuarli.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:slack%3ACTJL7358X%3A1795105768.817939 -->

--

[View
Session](https://junior-prod.sentry.dev/conversations/slack%3ACTJL7358X%3A1795105768.817939)
[[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3ACTJL7358X%3A1795105768.817939/?project=4510944073809921)

<!-- junior-session-footer:end -->

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Joshua Li <[email protected]>
@scttcper
scttcper disabled auto-merge November 19, 2026 23:33
@scttcper
scttcper requested a review from a team November 19, 2026 23:35
@github-actions github-actions Bot removed the Trigger: getsentry tests Once code is reviewed: apply label to PR to trigger getsentry tests label Nov 19, 2026
@scttcper scttcper added the Trigger: getsentry tests Once code is reviewed: apply label to PR to trigger getsentry tests label Nov 19, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want fixes drafted automatically? Bugbot Autofix can create code changes for findings. A team admin can enable Autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit df05c17. Configure here.

const addressTooltip = getAddressTooltip();
const functionName = getFunctionName();
const status = getStatus();
const packageName = frame.package ?? getImageName(image);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unsized debug images still do not match

Medium Severity

The new package fallback only runs after findImageForAddress returns an image, but that helper still treats a missing image_size as a zero-width range, so no instruction address matches. MetricKit debug images often omit size (Sentry then treats the image as spanning to the next one), so those frames can still render as <unknown> even when Symbolicator has filled in debug_file.

Additional Locations (2)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit df05c17. Configure here.

@scttcper
scttcper merged commit e65e7fe into getsentry:master Nov 19, 2026
92 of 98 checks passed
scttcper added a commit that referenced this pull request Nov 21, 2026
Went through native issues side by side with the legacy stack trace
after merging master and fixed what had drifted.

Traces with no system frames are forced to the full view, same rule as
legacy, and "Most Relevant" is disabled while that applies. The
selection is kept so it comes back on a thread that can be filtered.

Frames without a package fall back to the debug image name, matching
#131456.

The frame header lays out by its own container now. Under 320px the
function, package + address and actions each get a line, up to 768px
the function gets its own line, and above that it's one row of columns
that widen with the container.

Missing traces all say "No stack trace available" in the new component.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components Trigger: getsentry tests Once code is reviewed: apply label to PR to trigger getsentry tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing binary name in issue stacktrace when identified with debug_id

2 participants