Skip to content

App hangs v2 report very high (and invalid) durations #6345

@ghugues

Description

@ghugues

Platform

iOS

Environment

Production

Installed

Manually

Version

8.54.0

Xcode Version

26.0

Did it work on previous versions?

Yes, before we enabled app hang tracking v2

Steps to Reproduce

Enable App Hang tracking v2.

Expected Result

App hangs report the actual hanging duration, if any.

Actual Result

Sentry reports very high hanging duration when breadcrumbs clearly show the app was not hanging.

Example: https://amoamoamo.sentry.io/issues/6769842273/events/26d3dc95c61642e38eb2bb737bcbbac2

In this example, not only the main thread is not blocked (according to the stack trace), but breadcrumbs show that "App lifecycle foreground" ran just before hang detection. Since this event can only be fired from the main thread, the main thread was not blocked.

Image

This report is a reopen of #5907

Are you willing to submit a PR?

No response

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions