Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Game crashes after splash screen if relaunched after going out of focus at 60fps.

Discussion in 'Android' started by daniel_unity938, May 8, 2019.

  1. daniel_unity938

    daniel_unity938

    Joined:
    Jun 18, 2018
    Posts:
    5
    We came across this weird bug that happens irregularly. Steps to reproduce:
    1. Launch game.
    2. Go out of focus, either by going into Google IAP confirmation or pressing the back button to launch the application list.
    3. Wait a while and then go back to the game.
    4. Quit the game.
    5. Relaunch the game. The game will now be stuck after the splash screen.

    The only logs that are different from a normal launch is as follows:

    Code (CSharp):
    1. 2019-05-08 11:31:57.181 793-2704/? W/SurfaceFlinger: Attempting to set client state on removed layer: Surface(name=AppWindowToken{3159ea2 token=Token{baff26d ActivityRecord{3315a84 u0 com.mightybeargames.mightypetsnpuzzles/com.unity3d.player.UnityPlayerActivity t1042}}})/@0xb1bde7f - animation-leash#0
    We have tested every graphical settings available before discovering these ancient bug reports:
    1. https://answers.unity.com/questions/1309452/unity-550f3-ios-crash-after-screen-sleep.html
    2. https://issuetracker.unity3d.com/is...nt-landscape-orientation-if-running-at-60-fps

    Changing to 30 fps instead of 60 fps proved to mitigate the problem entirely. We are using 2018.3.11f1.