Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Resolved [2022.2.0b16] Android build crash

Discussion in 'Graphics for ECS' started by optimise, Nov 23, 2022.

  1. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    2,133
    I believe it's regression at Unity 2022.2.0b16 that Unity 2022.3.x dun have such issue. Not really sure but maybe it's caused by huge brg changes at Unity 2022.2. It crash when I try to play my android game build for awhile

    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime FATAL EXCEPTION: UnityMain
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime Process: com.game.test, PID: 9244
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime Version '2022.2.0b16 (3c3b3e6cd1d7)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime Build fingerprint: 'Xiaomi/raphael_eea/raphael:11/RKQ1.200826.002/V12.5.1.0.RFKEUXM:user/release-keys'
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime Revision: '0'
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime ABI: 'arm64'
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime Timestamp: 2022-11-23 15:33:07.017142920+0800
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime pid: 9244, tid: 9267, name: UnityMain >>> com.game.test <<<
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime uid: 11121
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr --------
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime Cause: null pointer dereference
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime x0 00000079a02a9d00 x1 00000079a01d15c0 x2 0000000000000001 x3 0000000000000000
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime x4 00000079a01d15c0 x5 00000079a01d15e0 x6 0000003a00000039 x7 000000630000003b
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime x8 0000000000000000 x9 0000000000000000 x10 0000000000000018 x11 0000000000000000
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime x12 00000039ffffffff x13 0000003b0000003a x14 0000000000000000 x15 0000007a58a27d40
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime x16 0000007aa6aaf740 x17 0000007b9574dc40 x18 b4000079b0de9a00 x19 00000079a01d15c0
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime x20 0000007a50918600 x21 0000007aa5d0f27c x22 0000007a50918600 x23 00000079a02a9d00
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime x24 0000000000000001 x25 0000007aa7cda020 x26 0000007a50918600 x27 0000007a508abaf0
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime x28 0000007aa58d219e x29 0000007aa7cda0b0
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime lr 0000007aa62efeb0 sp 0000007aa7cd9f80 pc 0000007aa5d0f2b8 pst 0000000080000000
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime backtrace:
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime #00 pc 000000000058d2b8 (?? at ??:0) /data/app/~~yESKWlYjgWmWevmTnfsyTA==/com.game.test-1luEMjn_agA40DH3SP-B8g==/lib/arm64/libunity.so (BuildId: a0d2d65ee95b7e47)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime #01 pc 0000000000b6deac (GfxDevice::ExecuteAsync(int, void (*)(GfxDeviceAsyncCommand::ArgScratch*, GfxDeviceAsyncCommand::Arg const*), GfxDeviceAsyncCommand::ArgScratch**, GfxDeviceAsyncCommand::Arg const*, JobFence const&) at ??:0) /data/app/~~yESKWlYjgWmWevmTnfsyTA==/com.game.test-1luEMjn_agA40DH3SP-B8g==/lib/arm64/libunity.so (BuildId: a0d2d65ee95b7e47)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime #02 pc 00000000005821e8 (?? at ??:0) /data/app/~~yESKWlYjgWmWevmTnfsyTA==/com.game.test-1luEMjn_agA40DH3SP-B8g==/lib/arm64/libunity.so (BuildId: a0d2d65ee95b7e47)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime #03 pc 0000000000581f24 (ExecuteDrawRenderersCommand(ScriptableRenderContextArg*) at ??:0) /data/app/~~yESKWlYjgWmWevmTnfsyTA==/com.game.test-1luEMjn_agA40DH3SP-B8g==/lib/arm64/libunity.so (BuildId: a0d2d65ee95b7e47)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime #04 pc 0000000000588124 (ScriptableRenderContext::ExecuteScriptableRenderLoop() at ??:0) /data/app/~~yESKWlYjgWmWevmTnfsyTA==/com.game.test-1luEMjn_agA40DH3SP-B8g==/lib/arm64/libunity.so (BuildId: a0d2d65ee95b7e47)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime #05 pc 0000000008880184 (UniversalRenderPipeline_RenderSingleCamera_mAED46E947EC1009B5D51EE35B156C551A2901A18 at C:/xxx/Library/Bee/artifacts/Android/il2cppOutput/cpp\Unity.RenderPipelines.Universal.Runtime7.cpp:16368) /data/app/~~yESKWlYjgWmWevmTnfsyTA==/com.game.test-1luEMjn_agA40DH3SP-B8g==/lib/arm64/libil2cpp.so (BuildId: 3445df81454b472a)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime #06 pc 000000000887e9bc (UniversalRenderPipeline_RenderCameraStack_m47BBC0B4111D83BB6EE3275C9572BFBF2F5451B9 at C:/xxx/Library/Bee/artifacts/Android/il2cppOutput/cpp\Unity.RenderPipelines.Universal.Runtime7.cpp:17127) /data/app/~~yESKWlYjgWmWevmTnfsyTA==/com.game.test-1luEMjn_agA40DH3SP-B8g==/lib/arm64/libil2cpp.so (BuildId: 3445df81454b472a)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime #07 pc 000000000887d45c (UniversalRenderPipeline_Render_m15A42AB44C14AB4DCA7EF0B915964D46B643D50E at C:/xxx/Library/Bee/artifacts/Android/il2cppOutput/cpp\Unity.RenderPipelines.Universal.Runtime7.cpp:15699) /data/app/~~yESKWlYjgWmWevmTnfsyTA==/com.game.test-1luEMjn_agA40DH3SP-B8g==/lib/arm64/libil2cpp.so (BuildId: 3445df81454b472a)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime #08 pc 0000000008ac2684 (RenderPipelineManager_DoRenderLoop_Internal_mB646C8738F4A9859101F3BE94809E2E10BBDB1FB at C:/xxx/Library/Bee/artifacts/Android/il2cppOutput/cpp\UnityEngine.CoreModule3.cpp:33333) /data/app/~~yESKWlYjgWmWevmTnfsyTA==/com.game.test-1luEMjn_agA40DH3SP-B8g==/lib/arm64/libil2cpp.so (BuildId: 3445df81454b472a)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime #09 pc 00000000044da158 (il2cpp::vm::Runtime::InvokeWithThrow(MethodInfo const*, void*, void**) at C:/Program Files/Unity/Hub/Editor/2022.2.0b16/Editor/Data/il2cpp/libil2cpp/vm\Runtime.cpp:593) /data/app/~~yESKWlYjgWmWevmTnfsyTA==/com.game.test-1luEMjn_agA40DH3SP-B8g==/lib/arm64/libil2cpp.so (BuildId: 3445df81454b472a)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime #10 pc 00000000044da0a4 (il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**) at C:/Program Files/Unity/Hub/Editor/2022.2.0b16/Editor/Data/il2cpp/libil2cpp/vm\Runtime.cpp:579) /data/app/~~yESKWlYjgWmWevmTnfsyTA==/com.game.test-1luEMjn_agA40DH3SP-B8g==/lib/arm64/libil2cpp.so (BuildId: 3445df81454b472a)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime #11 pc 00000000006a62bc (scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool) at ??:0) /data/app/~~yESKWlYjgWmWevmTnfsyTA==/com.game.test-1luEMjn_agA40DH3SP-B8g==/lib/arm64/libunity.so (BuildId: a0d2d65ee95b7e47)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime #12 pc 00000000006b583c (ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool) at ??:0) /data/app/~~yESKWlYjgWmWevmTnfsyTA==/com.game.test-1luEMjn_agA40DH3SP-B8g==/lib/arm64/libunity.so (BuildId: a0d2d65ee95b7e47)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime #13 pc 0000000000588ff0 (ScriptableRenderContext::ExtractAndExecuteRenderPipeline(dynamic_array<Camera*, 0ul> const&, void (*)(SceneNode const*, AABB const*, IndexList&, SceneCullingParameters const*), void*, ScriptingObjectPtr) at ??:0) /data/app/~~yESKWlYjgWmWevmTnfsyTA==/com.game.test-1luEMjn_agA40DH3SP-B8g==/lib/arm64/libunity.so (BuildId: a0d2d65ee95b7e47)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime #14 pc 0000000000adb9bc (RenderManager::RenderCamerasWithScriptableRenderLoop(int) at ??:0) /data/app/~~yESKWlYjgWmWevmTnfsyTA==/com.game.test-1luEMjn_agA40DH3SP-B8g==/lib/arm64/libunity.so (BuildId: a0d2d65ee95b7e47)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime #15 pc 0000000000adbf14 (RenderManager::RenderCameras(int, void (*)(), void (*)()) at ??:0) /data/app/~~yESKWlYjgWmWevmTnfsyTA==/com.game.test-1luEMjn_agA40DH3SP-B8g==/lib/arm64/libunity.so (BuildId: a0d2d65ee95b7e47)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime #16 pc 00000000005b6540 (PlayerRender(bool) at ??:0) /data/app/~~yESKWlYjgWmWevmTnfsyTA==/com.game.test-1luEMjn_agA40DH3SP-B8g==/lib/arm64/libunity.so (BuildId: a0d2d65ee95b7e47)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime #17 pc 00000000005ad1d0 (ExecutePlayerLoop(NativePlayerLoopSystem*) at ??:0) /data/app/~~yESKWlYjgWmWevmTnfsyTA==/com.game.test-1luEMjn_agA40DH3SP-B8g==/lib/arm64/libunity.so (BuildId: a0d2d65ee95b7e47)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime #18 pc 00000000005ad210 (ExecutePlayerLoop(NativePlayerLoopSystem*) at ??:0) /data/app/~~yESKWlYjgWmWevmTnfsyTA==/com.game.test-1luEMjn_agA40DH3SP-B8g==/lib/arm64/libunity.so (BuildId: a0d2d65ee95b7e47)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime #19 pc 00000000005ad49c (PlayerLoop() at ??:0) /data/app/~~yESKWlYjgWmWevmTnfsyTA==/com.game.test-1luEMjn_agA40DH3SP-B8g==/lib/arm64/libunity.so (BuildId: a0d2d65ee95b7e47)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime #20 pc 0000000000735ee4 (UnityPlayerLoop() at ??:0) /data/app/~~yESKWlYjgWmWevmTnfsyTA==/com.game.test-1luEMjn_agA40DH3SP-B8g==/lib/arm64/libunity.so (BuildId: a0d2d65ee95b7e47)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime #21 pc 000000000074c2fc (nativeRender(_JNIEnv*, _jobject*) at ??:0) /data/app/~~yESKWlYjgWmWevmTnfsyTA==/com.game.test-1luEMjn_agA40DH3SP-B8g==/lib/arm64/libunity.so (BuildId: a0d2d65ee95b7e47)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime #22 pc 00000000000041fc /data/app/~~yESKWlYjgWmWevmTnfsyTA==/com.game.test-1luEMjn_agA40DH3SP-B8g==/oat/arm64/base.odex
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime at libunity.0x58d2b8 (?? at ??:0)(Native Method)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime at libunity.0xb6deac (GfxDevice::ExecuteAsync(int, void (*)(GfxDeviceAsyncCommand::ArgScratch*, GfxDeviceAsyncCommand::Arg const*), GfxDeviceAsyncCommand::ArgScratch**, GfxDeviceAsyncCommand::Arg const*, JobFence const&) at ??:0)(Native Method)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime at libunity.0x5821e8 (?? at ??:0)(Native Method)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime at libunity.0x581f24 (ExecuteDrawRenderersCommand(ScriptableRenderContextArg*) at ??:0)(Native Method)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime at libunity.0x588124 (ScriptableRenderContext::ExecuteScriptableRenderLoop() at ??:0)(Native Method)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime at libil2cpp.0x8880184 (UniversalRenderPipeline_RenderSingleCamera_mAED46E947EC1009B5D51EE35B156C551A2901A18 at C:/xxx/Library/Bee/artifacts/Android/il2cppOutput/cpp\Unity.RenderPipelines.Universal.Runtime7.cpp:16368)(Native Method)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime at libil2cpp.0x887e9bc (UniversalRenderPipeline_RenderCameraStack_m47BBC0B4111D83BB6EE3275C9572BFBF2F5451B9 at C:/xxx/Library/Bee/artifacts/Android/il2cppOutput/cpp\Unity.RenderPipelines.Universal.Runtime7.cpp:17127)(Native Method)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime at libil2cpp.0x887d45c (UniversalRenderPipeline_Render_m15A42AB44C14AB4DCA7EF0B915964D46B643D50E at C:/xxx/Library/Bee/artifacts/Android/il2cppOutput/cpp\Unity.RenderPipelines.Universal.Runtime7.cpp:15699)(Native Method)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime at libil2cpp.0x8ac2684 (RenderPipelineManager_DoRenderLoop_Internal_mB646C8738F4A9859101F3BE94809E2E10BBDB1FB at C:/xxx/Library/Bee/artifacts/Android/il2cppOutput/cpp\UnityEngine.CoreModule3.cpp:33333)(Native Method)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime at libil2cpp.0x44da158 (il2cpp::vm::Runtime::InvokeWithThrow(MethodInfo const*, void*, void**) at C:/Program Files/Unity/Hub/Editor/2022.2.0b16/Editor/Data/il2cpp/libil2cpp/vm\Runtime.cpp:593)(Native Method)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime at libil2cpp.0x44da0a4 (il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**) at C:/Program Files/Unity/Hub/Editor/2022.2.0b16/Editor/Data/il2cpp/libil2cpp/vm\Runtime.cpp:579)(Native Method)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime at libunity.0x6a62bc (scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool) at ??:0)(Native Method)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime at libunity.0x6b583c (ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool) at ??:0)(Native Method)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime at libunity.0x588ff0 (ScriptableRenderContext::ExtractAndExecuteRenderPipeline(dynamic_array<Camera*, 0ul> const&, void (*)(SceneNode const*, AABB const*, IndexList&, SceneCullingParameters const*), void*, ScriptingObjectPtr) at ??:0)(Native Method)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime at libunity.0xadb9bc (RenderManager::RenderCamerasWithScriptableRenderLoop(int) at ??:0)(Native Method)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime at libunity.0xadbf14 (RenderManager::RenderCameras(int, void (*)(), void (*)()) at ??:0)(Native Method)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime at libunity.0x5b6540 (PlayerRender(bool) at ??:0)(Native Method)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime at libunity.0x5ad1d0 (ExecutePlayerLoop(NativePlayerLoopSystem*) at ??:0)(Native Method)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime at libunity.0x5ad210 (ExecutePlayerLoop(NativePlayerLoopSystem*) at ??:0)(Native Method)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime at libunity.0x5ad49c (PlayerLoop() at ??:0)(Native Method)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime at libunity.0x735ee4 (UnityPlayerLoop() at ??:0)(Native Method)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime at libunity.0x74c2fc (nativeRender(_JNIEnv*, _jobject*) at ??:0)(Native Method)
    2022/11/23 15:33:07.349 9244 9267 Error AndroidRuntime at base.0x41fc(Native Method)
     
  2. JussiKnuuttila

    JussiKnuuttila

    Unity Technologies

    Joined:
    Jun 7, 2019
    Posts:
    352
    There is a known BatchRendererGroup crash issue in b15 and b16, related to fixing a performance problem. That crash should be fixed in 2022.2.0f1, so if your crash is caused by the same reason, it should hopefully be gone with 2022.2.0f1.
     
    optimise likes this.
  3. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    2,133
    Awesome. Btw let u also know that I didn't use Entities Graphics package.