Skip to content

Conversation

@limbonaut
Copy link
Collaborator

Increase app hang timeout on Apple platforms to 5 seconds since it can give false positives with 2s.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 14, 2025

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 7ee2d8a

@jpnurmi
Copy link
Collaborator

jpnurmi commented Oct 17, 2025

Out of curiosity, what kind of platforms/devices/environments can give false positives with 2s, and during which phase of the game lifecycle? 5s sounds like quite a long time for a game not to respond, except perhaps during startup? In the end, both 2s and 5s are arbitrary numbers, but how do they compare to other platforms and SDKs?

@limbonaut
Copy link
Collaborator Author

I noticed this behavior on macOS during occasional project startup: the app hanging event is sent, and it looks as a normal load otherwise. I believe you can also trigger it if you load heavy resources synchronously on the main thread. Perhaps, we could completely disable app hanging integration during debug runs. I'm not sure how this issue affects the average release export out there. But in this case, I believe it is spam.

@bitsandfoxes mentioned that Unity also has 5s as the default. I don’t think Native has such integration, and I haven’t seen this event triggering on Android.

Copy link
Collaborator

@jpnurmi jpnurmi left a comment

Choose a reason for hiding this comment

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

I wish the ANR configuration had support for relaxed startup conditions similar to #423.

@limbonaut limbonaut merged commit b25f290 into main Oct 23, 2025
46 checks passed
@limbonaut limbonaut deleted the fix/apple-app-hang-timeout branch October 23, 2025 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants