Search Unity

Unity 2019.4 Android/iOS Native crash that happen to most users at some point

Discussion in 'Android' started by Suduckgames, Jul 3, 2020.

  1. Suduckgames

    Suduckgames

    Joined:
    Nov 28, 2016
    Posts:
    218
    Hi there,

    I have updated my project to 2019.4 LTS and tried the build with a group of closed alpha testers.

    1. Some users in my game reported that they were unable to enter in my game.

    2. After some digging and implementing firebase crashylitics to receive insights about what is happening, I discovered that is related to the save system. I encode the user data and store it in the player prefs.

    2. I implemented custom crash reports with try-catch to see what is happening and the problem is that the json that I load from PlayerPrefs is

    JsonEncrypted ��
    Crashed decoding the json EncodedJSON:��

    3 Users first experience a crash, and then after loading the app again they problem appears. It appears to be random crash since users have experienced it on different stages of the game (Maybe, its related to write in the player prefs, but this is just a thought)

    4. After a lot of trying to reproduce the problem on my device, I have finally reproduced it (I tried more times but only happen once and it was just after leaving the app and open it again), and the problem appears just after a native crash that I attach here



    Code (CSharp):
    1. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime FATAL EXCEPTION: UnityMain
    2. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime Process: com.suduck.upgradethegame4, PID: 29339
    3. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    4. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime Version '2019.4.1f1 (e6c045e14e4e)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
    5. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime Revision: '0'
    6. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime ABI: 'arm64'
    7. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime Timestamp: 2020-07-03 12:55:26+0200
    8. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime pid: 29339, tid: 29773, name: callback_queue  >>> com.suduck.upgradethegame4 <<<
    9. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime uid: 10264
    10. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
    11. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime Cause: null pointer dereference
    12. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime     x0  0000007e7fa0dcf8  x1  0000000000000028  x2  0000007e7c6ecb4c  x3  0000000000000009
    13. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime     x4  0000000000000019  x5  0000000000000000  x6  0000000000000000  x7  0000000000000000
    14. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime     x8  0000000000000000  x9  0000000000000000  x10 0000000000000000  x11 00000000ffffffff
    15. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime     x12 0000000000000025  x13 000000000000000c  x14 0000000000000000  x15 0000007e135a3ea8
    16. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime     x16 0000007e7c85abc0  x17 0000007e7c6d709c  x18 0000007e135a7000  x19 0000007d700bdfd0
    17. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime     x20 0000007e7fa0dcf8  x21 0000007d7006f1b0  x22 0000000000000055  x23 0000000000000030
    18. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime     x24 0000007e7c249d50  x25 0000007e7c249d50  x26 0000007e7c24a020  x27 0000007e7c99c020
    19. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime     x28 0000000000000001  x29 0000007e7c249d10
    20. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime     sp  0000007e7c249bb0  lr  0000007e7c6ecb94  pc  0000000000000000
    21. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime
    Any more is having such crashes?
     
  2. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,900
    Logcat is missing a backtrace, is there more info?
     
  3. Suduckgames

    Suduckgames

    Joined:
    Nov 28, 2016
    Posts:
    218
    Thank you for the reply, I have recollected more info.

    The ram doesn't seem to be the issue since all of the affected devices have at least 500mb of free ram.

    The OS having this issue is Android 8,9,10 but I have 1 user reporting the same error on iOs (I can imagine that the issue is related since it reported the same problem, crash and then infinite loading, I can't confirm since I didn't receive the crash)

    The issue has been reproduced in (after implementing the firebase crashylitics, so more devices have experienced it) Xiami red mi note 6, red mi note 9 T pro, Huawei P10,Galaxy S20 Ultra 5G, moto g(6) play and CUBOT King kong 3.

    Let me know if you need more information.

    There is the full stack trace of the device where I was able to reproduce the crash.
    Code (CSharp):
    1. 0001/01/01 00:00:00.000 -1 -1 Info  --------- beginning of crash
    2. 0001/01/01 00:00:00.000 -1 -1 Info  --------- beginning of system
    3. 2020/06/30 11:35:22.001 26801 26801 Warn Activity Slow Operation: Activity com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity onPause took 89ms
    4. 2020/06/30 13:37:16.504 4778 4778 Warn Activity Slow Operation: Activity com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity onPause took 80ms
    5. 2020/06/30 13:40:52.159 8517 8517 Warn Activity Slow Operation: Activity com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity onPause took 61ms
    6. 2020/07/01 12:17:52.281 25620 25620 Warn Activity Slow Operation: Activity com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity onPause took 58ms
    7. 2020/07/01 12:24:12.225 25620 25620 Warn Activity Slow Operation: Activity com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity onPause took 52ms
    8. 2020/07/01 12:27:44.629 25620 25620 Warn Activity Slow Operation: Activity com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity onPause took 64ms
    9. 2020/07/01 14:33:32.267 27643 27643 Warn Activity Slow Operation: Activity com.plarium.raidlegends/com.plarium.unity_app.UnityMainActivity onPause took 52ms
    10. 2020/07/01 18:21:57.386 13907 13907 Warn Activity Slow Operation: Activity ocean.nomad.survival.simulator/.UnityPlayerActivity onPause took 95ms
    11. 2020/07/02 13:58:03.750 14813 14813 Warn Activity Slow Operation: Activity com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity onPause took 68ms
    12. 2020/07/02 14:47:49.717 23294 23294 Warn Activity Slow Operation: Activity com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity onPause took 55ms
    13. 2020/07/02 14:49:25.001 23294 23294 Warn Activity Slow Operation: Activity com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity onPause took 57ms
    14. 2020/07/03 12:30:59.397 2002 2035 Debug Boost hostingType=backup, hostingName={com.plarium.raidlegends/com.plarium.cloud_storage.UnityBackupAgent}, callerPackage=Backup, isSystem=true, isBoostNeeded=false.
    15. 2020/07/03 12:30:59.398 2002 2035 Info ActivityManager Start proc 26953:com.plarium.raidlegends/u0a284 for backup {com.plarium.raidlegends/com.plarium.cloud_storage.UnityBackupAgent} caller=Backup
    16. 2020/07/03 12:54:40.398 2002 7562 Info ActivityTaskManager START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity bnds=[842,147][1010,315] (has extras)} from uid 10040
    17. 2020/07/03 12:54:40.444 2002 2035 Debug Boost hostingType=activity, hostingName={com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity}, callerPackage=com.miui.home, isSystem=true, isBoostNeeded=false.
    18. 2020/07/03 12:54:40.445 2002 2035 Info ActivityManager Start proc 28704:com.suduck.upgradethegame4/u0a264 for activity {com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity} caller=com.miui.home
    19. 2020/07/03 12:54:40.672 2002 7306 Debug WindowManager Input focus has changed to Window{a6698b7 u0 com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity}
    20. 2020/07/03 12:54:40.968 2002 7306 Info Timeline Timeline: Activity_windows_visible id: ActivityRecord{aaab9c9 u0 com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity t1793} time:51340149
    21. 2020/07/03 12:55:13.522 2002 2026 Warn ActivityTaskManager Activity pause timeout for ActivityRecord{aaab9c9 u0 com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity t1793}
    22. 2020/07/03 12:55:13.560 28704 28704 Warn Activity Slow Operation: Activity com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity onPause took 534ms
    23. 2020/07/03 12:55:15.396 2002 8698 Info WindowManager WIN DEATH: Window{a6698b7 u0 com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity}
    24. 2020/07/03 12:55:15.693 2002 3827 Info ActivityTaskManager START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity bnds=[842,147][1010,315] (has extras)} from uid 10040
    25. 2020/07/03 12:55:15.738 2002 2035 Debug Boost hostingType=activity, hostingName={com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity}, callerPackage=com.miui.home, isSystem=true, isBoostNeeded=false.
    26. 2020/07/03 12:55:15.739 2002 2035 Info ActivityManager Start proc 29339:com.suduck.upgradethegame4/u0a264 for activity {com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity} caller=com.miui.home
    27. 2020/07/03 12:55:15.906 2002 3827 Debug WindowManager Input focus has changed to Window{ed438f2 u0 com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity}
    28. 2020/07/03 12:55:16.249 2002 9660 Info Timeline Timeline: Activity_windows_visible id: ActivityRecord{255bea9 u0 com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity t1794} time:51375430
    29. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime FATAL EXCEPTION: UnityMain
    30. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime Process: com.suduck.upgradethegame4, PID: 29339
    31. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    32. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime Version '2019.4.1f1 (e6c045e14e4e)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
    33. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime Build fingerprint: 'Xiaomi/raphael_eea/raphael:10/QKQ1.190825.002/V12.0.1.0.QFKEUXM:user/release-keys'
    34. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime Revision: '0'
    35. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime ABI: 'arm64'
    36. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime Timestamp: 2020-07-03 12:55:26+0200
    37. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime pid: 29339, tid: 29773, name: callback_queue  >>> com.suduck.upgradethegame4 <<<
    38. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime uid: 10264
    39. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
    40. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime Cause: null pointer dereference
    41. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime     x0  0000007e7fa0dcf8  x1  0000000000000028  x2  0000007e7c6ecb4c  x3  0000000000000009
    42. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime     x4  0000000000000019  x5  0000000000000000  x6  0000000000000000  x7  0000000000000000
    43. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime     x8  0000000000000000  x9  0000000000000000  x10 0000000000000000  x11 00000000ffffffff
    44. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime     x12 0000000000000025  x13 000000000000000c  x14 0000000000000000  x15 0000007e135a3ea8
    45. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime     x16 0000007e7c85abc0  x17 0000007e7c6d709c  x18 0000007e135a7000  x19 0000007d700bdfd0
    46. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime     x20 0000007e7fa0dcf8  x21 0000007d7006f1b0  x22 0000000000000055  x23 0000000000000030
    47. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime     x24 0000007e7c249d50  x25 0000007e7c249d50  x26 0000007e7c24a020  x27 0000007e7c99c020
    48. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime     x28 0000000000000001  x29 0000007e7c249d10
    49. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime     sp  0000007e7c249bb0  lr  0000007e7c6ecb94  pc  0000000000000000
    50. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime
    51. 2020/07/03 12:55:27.056 2002 7638 Warn ActivityTaskManager   Force finishing activity com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity
    52. 2020/07/03 12:55:27.374 2002 2019 Info WindowManager WIN DEATH: Window{ed438f2 u0 com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity}
    53. 2020/07/03 12:55:36.253 2002 2509 Info ActivityTaskManager START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity bnds=[842,147][1010,315] (has extras)} from uid 10040
    54. 2020/07/03 12:55:36.292 2002 2035 Debug Boost hostingType=activity, hostingName={com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity}, callerPackage=com.miui.home, isSystem=true, isBoostNeeded=false.
    55. 2020/07/03 12:55:36.293 2002 2035 Info ActivityManager Start proc 30538:com.suduck.upgradethegame4/u0a264 for activity {com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity} caller=com.miui.home
    56. 2020/07/03 12:55:36.417 2002 8698 Debug WindowManager Input focus has changed to Window{106a102 u0 com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity}
    57. 2020/07/03 12:55:36.810 2002 7562 Info Timeline Timeline: Activity_windows_visible id: ActivityRecord{98839f u0 com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity t1795} time:51395991
    58. 2020/07/03 12:55:47.791 2002 7563 Info WindowManager WIN DEATH: Window{106a102 u0 com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity}
    59. 2020/07/03 12:55:56.070 2002 8836 Info ActivityTaskManager START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity bnds=[842,147][1010,315] (has extras)} from uid 10040
    60. 2020/07/03 12:55:56.112 2002 2035 Debug Boost hostingType=activity, hostingName={com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity}, callerPackage=com.miui.home, isSystem=true, isBoostNeeded=false.
    61. 2020/07/03 12:55:56.113 2002 2035 Info ActivityManager Start proc 31541:com.suduck.upgradethegame4/u0a264 for activity {com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity} caller=com.miui.home
    62. 2020/07/03 12:55:56.247 2002 4133 Debug WindowManager Input focus has changed to Window{218bb56 u0 com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity}
    63. 2020/07/03 12:55:56.625 2002 7563 Info Timeline Timeline: Activity_windows_visible id: ActivityRecord{7d455a0 u0 com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity t1797} time:51415806
    64. 2020/07/03 12:56:29.837 2002 9660 Info WindowManager WIN DEATH: Window{218bb56 u0 com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity}
    65. 2020/07/03 12:56:30.081 2002 9660 Info ActivityTaskManager START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity bnds=[840,143][1008,311] (has extras)} from uid 10040
    66. 2020/07/03 12:56:30.124 2002 2035 Debug Boost hostingType=activity, hostingName={com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity}, callerPackage=com.miui.home, isSystem=true, isBoostNeeded=false.
    67. 2020/07/03 12:56:30.124 2002 2035 Info ActivityManager Start proc 32168:com.suduck.upgradethegame4/u0a264 for activity {com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity} caller=com.miui.home
    68. 2020/07/03 12:56:30.312 2002 7633 Debug WindowManager Input focus has changed to Window{1cbf7a u0 com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity}
    69. 2020/07/03 12:56:30.638 2002 9660 Info Timeline Timeline: Activity_windows_visible id: ActivityRecord{175b512 u0 com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity t1798} time:51449820
    70. 2020/07/03 12:56:37.343 2002 7563 Debug WindowManager Input focus has changed to Window{1cbf7a u0 com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity}
    71. 2020/07/03 12:56:57.527 32168 32168 Warn Activity Slow Operation: Activity com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity onPause took 56ms
    72. 2020/07/03 12:57:06.273 2002 2509 Info ActivityTaskManager START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity bnds=[845,151][1013,319] (has extras)} from uid 10040
    73. 2020/07/03 12:57:06.326 2002 7633 Debug WindowManager Input focus has changed to Window{1cbf7a u0 com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity}
    74. 2020/07/03 12:57:06.801 2002 13118 Info Timeline Timeline: Activity_windows_visible id: ActivityRecord{175b512 u0 com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity t1798} time:51485982
    75. 2020/07/03 12:57:09.878 2002 7638 Info ActivityTaskManager START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity bnds=[842,147][1010,315] (has extras)} from uid 10040
    76. 2020/07/03 12:57:10.162 2002 7638 Info WindowManager WIN DEATH: Window{1cbf7a u0 com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity}
    77. 2020/07/03 12:57:10.249 2002 2035 Debug Boost hostingType=activity, hostingName={com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity}, callerPackage=com.miui.home, isSystem=true, isBoostNeeded=false.
    78. 2020/07/03 12:57:10.252 2002 2035 Info ActivityManager Start proc 2223:com.suduck.upgradethegame4/u0a264 for activity {com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity} caller=com.miui.home
    79. 2020/07/03 12:57:10.504 2002 7606 Debug WindowManager Input focus has changed to Window{6bfe281 u0 com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity}
    80. 2020/07/03 12:57:10.536 2002 2027 Info Timeline Timeline: Activity_windows_visible id: ActivityRecord{81d2ea9 u0 com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity t1799} time:51489717
    81. 2020/07/03 12:57:26.506 2002 10031 Debug WindowManager Input focus has changed to Window{6bfe281 u0 com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity}
    82. 2020/07/03 12:57:26.929 2002 4133 Info Timeline Timeline: Activity_windows_visible id: ActivityRecord{81d2ea9 u0 com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity t1799} time:51506111
    83. 2020/07/03 12:57:29.863 2002 2509 Info WindowManager WIN DEATH: Window{6bfe281 u0 com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity}
    84. 2020/07/03 12:57:30.179 2002 4133 Info ActivityTaskManager START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity bnds=[845,151][1013,319] (has extras)} from uid 10040
    85. 2020/07/03 12:57:30.244 2002 2035 Debug Boost hostingType=activity, hostingName={com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity}, callerPackage=com.miui.home, isSystem=true, isBoostNeeded=false.
    86. 2020/07/03 12:57:30.245 2002 2035 Info ActivityManager Start proc 3280:com.suduck.upgradethegame4/u0a264 for activity {com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity} caller=com.miui.home
    87. 2020/07/03 12:57:30.547 2002 3827 Debug WindowManager Input focus has changed to Window{22d39c7 u0 com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity}
    88. 2020/07/03 12:57:30.791 2002 7604 Info Timeline Timeline: Activity_windows_visible id: ActivityRecord{28fc2f6 u0 com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity t1800} time:51509972
    89. 2020/07/03 12:57:49.123 2002 4133 Debug WindowManager Input focus has changed to Window{22d39c7 u0 com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity}
    90. 2020/07/03 12:58:02.364 2002 7621 Info WindowManager WIN DEATH: Window{22d39c7 u0 com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity}
    91. 2020/07/03 13:01:23.309 2002 2509 Info ActivityTaskManager START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity bnds=[849,157][1017,325] (has extras)} from uid 10040
    92. 2020/07/03 13:01:23.347 2002 2035 Debug Boost hostingType=activity, hostingName={com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity}, callerPackage=com.miui.home, isSystem=true, isBoostNeeded=false.
    93. 2020/07/03 13:01:23.347 2002 2035 Info ActivityManager Start proc 5190:com.suduck.upgradethegame4/u0a264 for activity {com.suduck.upgradethegame4/com.unity3d.player.UnityPlayerActivity} caller=com.miui.home
    94.  
    95.  
     
  4. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,900
    I don't see any stacktraces, but the OS does say your app is spending a lot of time in UI thread. There's a restriction if app is spending too much time in UI thread, the OS will decide to kill the app.

    Unity itself is running in its own thread, so the question is - are you doing some lengthy operation in UI thread?
     
    ROBYER1 likes this.
  5. Suduckgames

    Suduckgames

    Joined:
    Nov 28, 2016
    Posts:
    218
    Thank you for taking the time to answer the question.

    The only thing I can think of using the UI thread is Google play services ( Since this is related to the save system, I can guess that the app get killed while using google play cloud saving feature?). Other than that, there is nothing that uses the UI thread.

    The only lengthy operation that can be there is the save system saving the game online to the google play services cloud.

    Shouldn't be this handled by google correctly?

    Regarding the stack traces, I have the symbols ( I am using IL2CPP) for this app version. If I use the symbols on the error I can retrieve the stack trace right?

    This should be converted to stack trace
    Code (CSharp):
    1. Cause: null pointer dereference
    2. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime     x0  0000007e7fa0dcf8  x1  0000000000000028  x2  0000007e7c6ecb4c  x3  0000000000000009
    3. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime     x4  0000000000000019  x5  0000000000000000  x6  0000000000000000  x7  0000000000000000
    4. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime     x8  0000000000000000  x9  0000000000000000  x10 0000000000000000  x11 00000000ffffffff
    5. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime     x12 0000000000000025  x13 000000000000000c  x14 0000000000000000  x15 0000007e135a3ea8
    6. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime     x16 0000007e7c85abc0  x17 0000007e7c6d709c  x18 0000007e135a7000  x19 0000007d700bdfd0
    7. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime     x20 0000007e7fa0dcf8  x21 0000007d7006f1b0  x22 0000000000000055  x23 0000000000000030
    8. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime     x24 0000007e7c249d50  x25 0000007e7c249d50  x26 0000007e7c24a020  x27 0000007e7c99c020
    9. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime     x28 0000000000000001  x29 0000007e7c249d10
    10. 2020/07/03 12:55:26.973 29339 29398 Error AndroidRuntime     sp  0000007e7c249bb0  lr  0000007e7c6ecb94  pc  0000000000000000