sentry-cocoa: NSAlert.runModal causes App Hanging report
Platform
macOS
Installed
Swift Package Manager
Version
8.0.0
Steps to Reproduce
- Call
NSAlert#runModal()
Expected Result
While calling NSAlert#runModal() does block the main thread, it’s not a useful hanging report as calling it is intentional.
Actual Result
It causes “App hanging for at least 2000 ms.” report.
Are you willing to submit a PR?
No
About this issue
- Original URL
- State: open
- Created a year ago
- Reactions: 1
- Comments: 24 (13 by maintainers)
Yes, @akbashev. Not much you can do than turn this off until we find a fix for the root cause.
Hi @philipphofmann!
We also tried app hangs monitoring, and also seeing false positives with NSApp.presentError / runModal, as well as possibly some other false positives.
However, those are not the biggest problem, which is App Hangs are not grouped by stack trace. Therefore it’s impossible to filter them / analyze / close as false-positive, because in every App Hang issue there are a lot of different events with different stack traces.
If app hangs would be grouped by stack trace, false-positives with NSApp would not be an issue, since you could just ignore them, which is currently not possible.
Is there some way to entirely disable the “App hanging for at least 2000 ms” reports? I’m finding them really unhelpful.
Unrelated, but the report also has this warning: