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. Unity 2022.2 is now available as the latest Tech release.
    Dismiss Notice
  3. We are making some changes to the DOTS forums.
    Dismiss Notice
  4. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Bug Android Builds Crash on Startup on Android 13

Discussion in 'Universal Render Pipeline' started by SnowyBacon23, Sep 30, 2022.

  1. SnowyBacon23

    SnowyBacon23

    Joined:
    Oct 29, 2020
    Posts:
    2
    Hi there,

    Four of our developers upgraded to Android 13 a few weeks ago and since the upgrade, three of them have android builds crash on startup and the last one can play but gets absolutely abysmal frame rates (previously was getting 50+ FPS and now gets 10).

    As an experiment, I tried disabling Vulkan (leaving only OpenGLES3) and the 3/4 that previously crashed could now load the app, but the screen stayed black permanently (gameplay and audio seemed to be working, but no visuals rendered) and the last dev's frames dropped to an even more abysmal 4.

    After doing a lot of searching through Unity Answers and the Unity Issue Tracker, it seems like URP and Vulkan have often not played nice together, specifically in the XR realm (which our app does not utilize). We have tried builds with Depth Textures and HDR off and the results were the same.

    We are currently using Unity 2021.2.17f1, but I have tried building on 2021.3.10f1 (LTS) and the results were identical.

    One of the devs grabbed me these logs, but I didn't see much useful within them. I can get more if needed:
    Code (CSharp):
    1. 2022-09-27 16:35:00.008 2971 2971 Warn BcSmartspaceCard No title view to update
    2. 2022-09-27 16:35:00.008 2971 2971 Info BcSmartspaceCard setFormattedContentDescription: textView=SUBTITLE, text=14??C, iconDescription=Cloudy, contentDescription=Cloudy 14??C
    3. 2022-09-27 16:35:00.014 2427 2427 Warn BcSmartspaceCard No title view to update
    4. 2022-09-27 16:35:00.014 2427 2427 Info BcSmartspaceCard setFormattedContentDescription: textView=SUBTITLE, text=14??C, iconDescription=Cloudy, contentDescription=Cloudy 14??C
    5. 2022-09-27 16:35:00.211 27522 27575 Info WM-WorkerWrapper Worker result SUCCESS for Work [ id=a570f6c2-9e90-481d-a103-7e0ccc4b98c5, tags={ com.twitter.repository.hashflags.HashflagRefreshWorker } ]
    6. 2022-09-27 16:35:00.901 1445 1614 Debug CHRE @ 396671.254: [ActivityPlatform] type 4, confidence 41
    7. 2022-09-27 16:35:00.943 1440 1440 Debug AOC A3:MSG: lsm6dsr_device.cc, 755: USF: Lsm6dsrDevice: Sensor 4: Enabled 0, odr_index 0.
    8. 2022-09-27 16:35:00.944 1440 1440 Debug AOC A3:MSG: lsm6dsr_fifo.cc, 758: USF: Lsm6dsrFifo: ODR: XL/G/T/TS: 52/208/13/26 WM: 5 Intr: 60.
    9. 2022-09-27 16:35:00.945 1440 1440 Debug AOC A3:MSG: lsm6dsr_device.cc, 663: USF: Lsm6dsrDevice: Fifo was disabled for 542481ns.
    10. 2022-09-27 16:35:00.947 1440 1440 Debug AOC A3:MSG: usf_sensor.cc, 1330: USF: Received start sampling request for LSM6DSR Motion Detect.
    11. 2022-09-27 16:35:00.947 1440 1440 Debug AOC A3:MSG: lsm6dsr_device.cc, 755: USF: Lsm6dsrDevice: Sensor 3: Enabled 1, odr_index 1.
    12. 2022-09-27 16:35:00.947 1440 1440 Debug AOC A3:MSG: lsm6dsr_fifo.cc, 758: USF: Lsm6dsrFifo: ODR: XL/G/T/TS: 52/208/13/26 WM: 5 Intr: 60.
    13. 2022-09-27 16:35:00.947 1440 1440 Debug AOC A3:MSG: lsm6dsr_device.cc, 663: USF: Lsm6dsrDevice: Fifo was disabled for 519776ns.
    14. 2022-09-27 16:35:00.948 1440 1440 Debug AOC A3:MSG: usf_sensor.cc, 1337: USF: Received stop sampling request for LSM6DSR Stationary Detect.
    15. 2022-09-27 16:35:00.948 1440 1440 Debug AOC A3:ERR: usf_sensor.cc, 1797: USF: Sampling configuration 195509 not found.
    16. 2022-09-27 16:35:01.096 2124 12795 Info ActivityManager Process ******** (pid 29886) has died: fg  TOP
    17. 2022-09-27 16:35:01.096 2124 2499 Info WindowManager WIN DEATH: Window{53248fb u0 *******/com.unity3d.player.UnityPlayerActivity}
    18. 2022-09-27 16:35:01.097 2124 2499 Warn InputManager-JNI Input channel object '53248fb ********/com.unity3d.player.UnityPlayerActivity (client)' was disposed without first being removed with the input manager!
    19. 2022-09-27 16:35:01.097 2124 2165 Info libprocessgroup Successfully killed process cgroup uid 10293 pid 29886 in 0ms
    20. 2022-09-27 16:35:01.098 1249 1249 Debug usf_sensor_hal accelerometer: Enter Batch. period = 200000000, latency = 2000000000.
    21. 2022-09-27 16:35:01.098 1440 1440 Debug AOC A3:MSG: usf_sensor.cc, 1845: USF: Received reconfig sampling request for LSM6DSR Accelerometer.
    22. 2022-09-27 16:35:01.099 1184 1184 Info Zygote Process 29886 exited cleanly (1)
    23. 2022-09-27 16:35:01.099 1440 1440 Debug AOC A3:MSG: lsm6dsr_device.cc, 755: USF: Lsm6dsrDevice: Sensor 0: Enabled 1, odr_index 3.
    24. 2022-09-27 16:35:01.099 1440 1440 Debug AOC A3:MSG: lsm6dsr_fifo.cc, 758: USF: Lsm6dsrFifo: ODR: XL/G/T/TS: 52/208/13/26 WM: 11 Intr: 28.
    25. 2022-09-27 16:35:01.099 1440 1440 Debug AOC A3:MSG: lsm6dsr_device.cc, 663: USF: Lsm6dsrDevice: Fifo was disabled for 434814ns.
    26. 2022-09-27 16:35:01.100 1249 1249 Debug usf_sensor_hal IMU temperature: Enter Batch. period = 615385000, latency = 2000000000.
    27. 2022-09-27 16:35:01.102 1440 1440 Debug AOC A3:MSG: usf_sensor.cc, 1845: USF: Received reconfig sampling request for LSM6DSR Temperature.
    28. 2022-09-27 16:35:01.102 1440 1440 Debug AOC A3:MSG: lsm6dsr_device.cc, 755: USF: Lsm6dsrDevice: Sensor 2: Enabled 1, odr_index 1.
    29. 2022-09-27 16:35:01.102 1440 1440 Debug AOC A3:MSG: lsm6dsr_fifo.cc, 758: USF: Lsm6dsrFifo: ODR: XL/G/T/TS: 52/208/13/26 WM: 11 Intr: 28.
    30. 2022-09-27 16:35:01.102 1440 1440 Debug AOC A3:MSG: lsm6dsr_device.cc, 663: USF: Lsm6dsrDevice: Fifo was disabled for 370605ns.
    31. 2022-09-27 16:35:01.109 644 644 Error BpTransactionCompletedListener Failed to transact (-32)
    32. 2022-09-27 16:35:01.115 2124 12795 Warn ActivityTaskManager Force removing ActivityRecord{d99cd9c u0 *******/com.unity3d.player.UnityPlayerActivity} t3049}: app died, no saved state
    33. 2022-09-27 16:35:01.135 2124 2162 Info GameServiceProviderInstance Failed to remove task overlay. This is expected if the task is already destroyed: GameSessionRecord{mTaskId=3049, mState=GAME_SESSION_ATTACHED, mRootComponentName=ComponentInfo{********/com.unity3d.player.UnityPlayerActivity}, mIGameSession=android.service.games.IGameSession$Stub$Proxy@39a4bf3, mSurfacePackage=android.view.SurfaceControlViewHost$SurfacePackage@cc890b0}
    34. 2022-09-27 16:35:01.135 2124 3063 Warn WindowManager Failed looking up window session=Session{d55692f 5508:u0a10102} callers=com.android.server.wm.WindowManagerService.windowForClientLocked:5893 com.android.server.wm.WindowManagerService.removeWindow:2031 com.android.server.wm.Session.remove:223
    35. 2022-09-27 16:35:01.135 2124 3063 Warn InputManager-JNI Input channel object 'Embedded{} (client)' was disposed without first being removed with the input manager!
     
    Last edited: Sep 30, 2022
  2. ernestask

    ernestask

    Unity Technologies

    Joined:
    Oct 20, 2016
    Posts:
    14
  3. SnowyBacon23

    SnowyBacon23

    Joined:
    Oct 29, 2020
    Posts:
    2
    Hi there,

    I started to submit a bug report, but realized I should have a stripped down project I can send. Since our project is quite massive, this has been no easy feat.

    While stripping the project down though, we found what appears to be the cause: one particular shader that crashes when it loads in (maybe once we solve this, there will be a second shader as well, that remains to be seen). Once we figure out what in that shader is causing the problem, I will follow up (and possibly make a small project with that shader in it for a bug report).

    The devices affected were Pixel 5 (low framerate) and Pixel 6 (crashes)