unity-game-enginesentry

Unity - Sentry ApplicationNotResponding


I'm using Sentry package 3.1.0 in Unity (6000.0.42f1) and for every user it's reporting a Sentry.Unity.ApplicationNotResponding (Application not responding for at least 10000 ms) everytime the game opens. I have tried to increase the ANR timeout and still fails no matter what time I set.

Also tried to open the game in different operating systems but still the same issue. The game has an splash screen before getting into the main scene but that splash screen takes only 9s to complete.


Solution

  • You can read more about this feature on this page: https://docs.sentry.io/platforms/unity/configuration/app-not-responding/

    On this page you'll see how to change the configuration values or to disable it programatically or via the Sentry editor configuration window.

    If you accept that the screen can be blocked for upwards of 9 seconds, you can:

    1. Disable this feature altogether

    2. Increase the timeout to, say 12 or 15 seconds (how long are you OK with it being blocked?)

    Note that when I say 'blocked' I mean not an animated splash screen running, but the actual rendering thread bring completely blocked. That's what this ANR detection is looking for, and the motivation behind it is that people tend to kill the game if it seems like nothing is happening for several seconds.

    If you think the detection logic has bugs, please open a GitHub ticket here