Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug [Unity 2021.2.10][Android 11] release build crashes(?) on startup

Discussion in 'Android' started by MaskedMouse, Feb 4, 2022.

  1. MaskedMouse

    MaskedMouse

    Joined:
    Jul 8, 2014
    Posts:
    1,058
    I'm trying to run a release build on a new Samsung S7 FE (Android 11) tablet. However, upon launching the app it just returns back to home.

    When I build and launch a development build, it opens and runs normally.
    I did a sanity check and tried building a new empty URP core project. It has the same problem.

    This is the LogCat when launching a release build. (replaced the bundle ID with ---)
    Code (CSharp):
    1. 0001/01/01 00:00:00.000 -1 -1 Info  --------- beginning of main
    2. 2022/02/04 15:42:15.135 22010 22010 Info m.------ Late-enabling -Xcheck:jni
    3. 2022/02/04 15:42:15.137 22010 22010 Error m.----- Not starting debugger since process cannot load the jdwp agent.
    4. 2022/02/04 15:42:15.140 22010 22010 Debug ActivityThread setConscryptValidator
    5. 2022/02/04 15:42:15.140 22010 22010 Debug ActivityThread setConscryptValidator - put
    6. 0001/01/01 00:00:00.000 -1 -1 Info  --------- beginning of system
    7. 2022/02/04 15:42:15.150 22010 22010 Debug ActivityThread handleBindApplication()++ app=-------
    8. 2022/02/04 15:42:15.174 22010 22010 Debug LoadedApk LoadedApk::makeApplication() appContext=android.app.ContextImpl@4aeca5 appContext.mOpPackageName=---- appContext.mBasePackageName=------- appContext.mPackageInfo=android.app.LoadedApk@9f387a
    9. 2022/02/04 15:42:15.175 22010 22010 Debug NetworkSecurityConfig No Network Security Config specified, using platform default
    10. 2022/02/04 15:42:15.181 22010 22010 Debug NetworkSecurityConfig No Network Security Config specified, using platform default
    11. 2022/02/04 15:42:15.181 22010 22010 Debug ActivityThread handleBindApplication() -- skipGraphicsSupport=false
    12. 2022/02/04 15:42:15.213 22010 22010 Info DecorView [INFO] isPopOver=false, config=true
    13. 2022/02/04 15:42:15.213 22010 22010 Info DecorView updateCaptionType >> DecorView@b285cd2[], isFloating=false, isApplication=true, hasWindowDecorCaption=false, hasWindowControllerCallback=true
    14. 2022/02/04 15:42:15.213 22010 22010 Debug DecorView setCaptionType = 0, this = DecorView@b285cd2[]
    15. 2022/02/04 15:42:15.263 22010 22010 Info IL2CPP JNI_OnLoad
    16. 2022/02/04 15:42:15.287 22010 22010 Debug InputTransport Input channel constructed: '60ffc10', fd=66
    17. 2022/02/04 15:42:15.289 22010 22010 Info ViewRootImpl@a094915[UnityPlayerActivity] setView = com.android.internal.policy.DecorView@b285cd2 TM=true
    18. 2022/02/04 15:42:15.295 22010 22010 Debug ViewRootImpl@a094915[UnityPlayerActivity] controlInsetsForCompatibility: hideByFlags=0x3, showByFlags=0x0, flags=0x80810500, sysUiVis=0x7, matchParent=true, nonAttachedAppWindow=true
    19. 2022/02/04 15:42:15.295 22010 22010 Debug InsetsSourceConsumer setRequestedVisible: visible=false, type=15, host=-------/com.unity3d.player.UnityPlayerActivity, from=android.view.InsetsSourceConsumer.hide:233 android.view.InsetsController.collectSourceControls:1180 android.view.InsetsController.controlAnimationUnchecked:1057 android.view.InsetsController.applyAnimation:1431 android.view.InsetsController.hide:992 android.view.InsetsController.hide:975 android.view.ViewRootImpl.controlInsetsForCompatibility:2903 android.view.ViewRootImpl.performTraversals:3369 android.view.ViewRootImpl.doTraversal:2669 android.view.ViewRootImpl$TraversalRunnable.run:10092
    20. 2022/02/04 15:42:15.296 22010 22010 Debug InsetsSourceConsumer setRequestedVisible: visible=false, type=1, host=-------/com.unity3d.player.UnityPlayerActivity, from=android.view.InsetsSourceConsumer.hide:233 android.view.InsetsController.collectSourceControls:1180 android.view.InsetsController.controlAnimationUnchecked:1057 android.view.InsetsController.applyAnimation:1431 android.view.InsetsController.hide:992 android.view.InsetsController.hide:975 android.view.ViewRootImpl.controlInsetsForCompatibility:2903 android.view.ViewRootImpl.performTraversals:3369 android.view.ViewRootImpl.doTraversal:2669 android.view.ViewRootImpl$TraversalRunnable.run:10092
    21. 2022/02/04 15:42:15.296 22010 22010 Debug InsetsSourceConsumer setRequestedVisible: visible=false, type=0, host=-------/com.unity3d.player.UnityPlayerActivity, from=android.view.InsetsSourceConsumer.hide:233 android.view.InsetsController.collectSourceControls:1180 android.view.InsetsController.controlAnimationUnchecked:1057 android.view.InsetsController.applyAnimation:1431 android.view.InsetsController.hide:992 android.view.InsetsController.hide:975 android.view.ViewRootImpl.controlInsetsForCompatibility:2903 android.view.ViewRootImpl.performTraversals:3369 android.view.ViewRootImpl.doTraversal:2669 android.view.ViewRootImpl$TraversalRunnable.run:10092
    22. 2022/02/04 15:42:15.299 22010 22010 Info SurfaceControl assignNativeObject: nativeObject = 0 Surface(name=null)/@0xebb21b / android.view.SurfaceControl.readFromParcel:1117 android.view.IWindowSession$Stub$Proxy.relayout:1810 android.view.ViewRootImpl.relayoutWindow:9130 android.view.ViewRootImpl.performTraversals:3420 android.view.ViewRootImpl.doTraversal:2669 android.view.ViewRootImpl$TraversalRunnable.run:10092 android.view.Choreographer$CallbackRecord.run:1010 android.view.Choreographer.doCallbacks:809 android.view.Choreographer.doFrame:744 android.view.Choreographer$FrameDisplayEventReceiver.run:995
    23. 2022/02/04 15:42:15.300 22010 22010 Info SurfaceControl assignNativeObject: nativeObject = 0 Surface(name=null)/@0x813fb8 / android.view.SurfaceControl.readFromParcel:1117 android.view.IWindowSession$Stub$Proxy.relayout:1820 android.view.ViewRootImpl.relayoutWindow:9130 android.view.ViewRootImpl.performTraversals:3420 android.view.ViewRootImpl.doTraversal:2669 android.view.ViewRootImpl$TraversalRunnable.run:10092 android.view.Choreographer$CallbackRecord.run:1010 android.view.Choreographer.doCallbacks:809 android.view.Choreographer.doFrame:744 android.view.Choreographer$FrameDisplayEventReceiver.run:995
    24. 2022/02/04 15:42:15.301 22010 22010 Info ViewRootImpl@a094915[UnityPlayerActivity] Relayout returned: old=(0,0,2560,1600) new=(0,0,2560,1600) req=(2560,1600)8 dur=4 res=0x1 s={false 0} ch=false fn=-1
    25. 2022/02/04 15:42:15.301 22010 22010 Info SurfaceView updateSurface: releaseSurfaces() #1
    26. 2022/02/04 15:42:15.303 22010 22010 Info ViewRootImpl@a094915[UnityPlayerActivity] stopped(true) old=false
    27. 2022/02/04 15:42:15.306 22010 22010 Info SurfaceView updateSurface: releaseSurfaces() #1
    28. 2022/02/04 15:42:20.171 22010 22032 Info m.------ Waiting for a blocking GC ProfileSaver
    29. 2022/02/04 15:42:20.186 22010 22032 Info m.------- WaitForGcToComplete blocked ProfileSaver on ClassLinker for 14.969ms
    30. 2022/02/04 15:42:20.195 22010 22022 Info m.-------- WaitForGcToComplete blocked RunEmptyCheckpoint on ProfileSaver for 8.170ms
    Since it ends with GC, I tried to turn off "Use incremental GC". But this had no effect.
    I'm not sure what is causing this.

    Build Settings: IL2CPP, ARM64, API level 24 minimal. Those are the only things that I changed.
     
    Last edited: Feb 4, 2022
  2. ChangFaseR

    ChangFaseR

    Joined:
    Feb 20, 2019
    Posts:
    7
    I also had the same problem...
     
  3. MaskedMouse

    MaskedMouse

    Joined:
    Jul 8, 2014
    Posts:
    1,058
    QA wasn't able to reproduce the issue because they don't have the specific tablet in possession.

    @ChangFaseR Are you using the same device or do you have the same Logcat stopping at WaitForGcToComplete?
    Is this happening to you too when you build an empty URP core project with just a cube?