sentry-cocoa icon indicating copy to clipboard operation
sentry-cocoa copied to clipboard

The stack frame entry point is incorrect

Open sindresorhus opened this issue 4 years ago • 9 comments

Environment

SaaS (https://sentry.io/)

Version

Sentry Cocoa 7.5.2

Steps to Reproduce

  • Go to: https://sentry.io/organizations/sindresorhus/issues/2833675135/events/8f9b4afd74da49fbb3e3fef911c4433e/

Expected Result

I expected the entry point stack frame to show the correct filename.

Actual Result

It seemingly shows a random filename. It's definitely not correct. The entry point file is named App.swift.

Screen Shot 2021-12-06 at 18 13 40

I can reproduce this with multiple apps on both macOS and iOS.

Another one: https://sentry.io/organizations/sindresorhus/issues/2833181729/events/4c1a55204ca04e07b7da235a41cfff8c/ Screen Shot 2021-12-06 at 18 15 56

sindresorhus avatar Dec 06 '21 17:12 sindresorhus

Routing to @getsentry/team-mobile for triage. ⏲️

getsentry-release avatar Dec 06 '21 19:12 getsentry-release

Thanks for reporting this, @sindresorhus. I can reproduce this quickly. We have to investigate what is causing this.

philipphofmann avatar Dec 14 '21 08:12 philipphofmann

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 label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


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

github-actions[bot] avatar Jan 19 '22 15:01 github-actions[bot]

Please keep this open.

sindresorhus avatar Jan 20 '22 02:01 sindresorhus

Another example: https://sentry.io/organizations/sindresorhus/issues/3025018889/events/30edbfd0224d4d2f98ad3d2139c49370/

Screen Shot 2022-02-18 at 13 58 44

sindresorhus avatar Feb 18 '22 06:02 sindresorhus

Doesn't only happen for SwiftUI, also happens for the iOS-Swift sample app: https://sentry-sdks.sentry.io/issues/3607568922/events/7d47da9a7cb54db18fa384bcd5709a6d/

Screenshot 2023-03-29 at 14 10 55

philipphofmann avatar Mar 29 '23 12:03 philipphofmann

It could be that we don't have to fix this in the SDK, but we should fix this in Sentry by maybe even just hiding this unknown stack frame as it's before main.

philipphofmann avatar Mar 29 '23 12:03 philipphofmann

@philipphofmann It's not just the unknown one though. The first frame after that is sometimes incorrect too, as shown in the screenshots in the issue description.

sindresorhus avatar Mar 29 '23 12:03 sindresorhus

Thanks for the update, @sindresorhus. We increased the priority on our backlog for fixing this.

philipphofmann avatar Apr 04 '23 10:04 philipphofmann