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

Question Untiy 2022.2.2f1 Native Crash in GfxDevice::ExecuteAsync

Discussion in 'Android' started by sunghoon219, Jan 20, 2023.

  1. sunghoon219

    sunghoon219

    Joined:
    Jan 25, 2017
    Posts:
    3
    Used Unity 2022.2.2f1.

    app running in intermittent crashed.

    The call stack is GfxDevice::ExecuteAsync , so it appears to be a rendering problem.
    How can i solve it?

    2023-01-20 18:30:24.673 27316 27386 Error CRASH Version '2022.2.2f1 (c93c5d3acf5b)', Build type 'Development', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
    2023-01-20 18:30:24.673 27316 27386 Error CRASH Build fingerprint: 'samsung/b2qksx/b2q:12/SP2A.220305.013/F711NKSU2DVH9:user/release-keys'
    2023-01-20 18:30:24.673 27316 27386 Error CRASH Revision: '8'
    2023-01-20 18:30:24.673 27316 27386 Error CRASH ABI: 'arm64'
    2023-01-20 18:30:24.673 27316 27386 Error CRASH Timestamp: 2023-01-20 18:30:24.673404682+0900
    2023-01-20 18:30:24.673 27316 27386 Error CRASH pid: 27316, tid: 27386, name: UnityMain >>> com.dragonheart.projectswordshield <<<
    2023-01-20 18:30:24.673 27316 27386 Error CRASH uid: 10846
    2023-01-20 18:30:24.673 27316 27386 Error CRASH signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr --------
    2023-01-20 18:30:24.673 27316 27386 Error CRASH Cause: null pointer dereference
    2023-01-20 18:30:24.673 27316 27386 Error CRASH x0 0000007340415940 x1 000000734037e4f0 x2 0000000000000001 x3 0000000000000000
    2023-01-20 18:30:24.673 27316 27386 Error CRASH x4 000000734037e4f0 x5 000000734037e518 x6 0000003b0000003a x7 000000680000003c
    2023-01-20 18:30:24.673 27316 27386 Error CRASH x8 0000000000000000 x9 0000000000000000 x10 0000000000000018 x11 0000000000000000
    2023-01-20 18:30:24.673 27316 27386 Error CRASH x12 000000680000003c x13 0000000100000002 x14 0000000000000000 x15 0000007407162ae0
    2023-01-20 18:30:24.673 27316 27386 Error CRASH x16 000000746f32bb78 x17 000000783c5e3510 x18 0000007409b00938 x19 000000734037e4f0
    2023-01-20 18:30:24.673 27316 27386 Error CRASH x20 0000007401eddb00 x21 000000746e36afb4 x22 0000007401eddb00 x23 0000007340415940
    2023-01-20 18:30:24.673 27316 27386 Error CRASH x24 0000000000000001 x25 000000746f2d7698 x26 0000007491afac40 x27 000000740249f860
    2023-01-20 18:30:24.673 27316 27386 Error CRASH x28 000000746dda5914 x29 0000007491afad10
    2023-01-20 18:30:24.673 27316 27386 Error CRASH lr 000000746eb27d14 sp 0000007491afaba0 pc 000000746e36aff0 pst 0000000080001000
    2023-01-20 18:30:24.673 27316 27386 Error CRASH backtrace:
    2023-01-20 18:30:24.673 27316 27386 Error CRASH #00 pc 0000000000712ff0 (?? at ??:0) /data/app/~~LhCkpq4XGID5K7t7xRTL-w==/com.dragonheart.projectswordshield-b8HpWDh8GFG8P8TT2nOiDA==/lib/arm64/libunity.so (BuildId: 439afb7ad30fbbf8)
    2023-01-20 18:30:24.673 27316 27386 Error CRASH #01 pc 0000000000ecfd10 (GfxDevice::ExecuteAsync(int, void (*)(GfxDeviceAsyncCommand::ArgScratch*, GfxDeviceAsyncCommand::Arg const*), GfxDeviceAsyncCommand::ArgScratch**, GfxDeviceAsyncCommand::Arg const*, JobFence const&) at ??:0) /data/app/~~LhCkpq4XGID5K7t7xRTL-w==/com.dragonheart.projectswordshield-b8HpWDh8GFG8P8TT2nOiDA==/lib/arm64/libunity.so (GfxDevice::ExecuteAsync(int, void (*)(GfxDeviceAsyncCommand::ArgScratch*, GfxDeviceAsyncCommand::Arg const*), GfxDeviceAsyncCommand::ArgScratch**, GfxDeviceAsyncCommand::Arg const*, JobFence const&)+72) (BuildId: 439afb7ad30fbbf8)
    2023-01-20 18:30:24.673 27316 27386 Error CRASH #02 pc 000000000070764c (?? at ??:0) /data/app/~~LhCkpq4XGID5K7t7xRTL-w==/com.dragonheart.projectswordshield-b8HpWDh8GFG8P8TT2nOiDA==/lib/arm64/libunity.so (BuildId: 439afb7ad30fbbf8)
    2023-01-20 18:30:24.673 27316 27386 Error CRASH #03 pc 00000000007072cc (ExecuteDrawRenderersCommand(ScriptableRenderContextArg*) at ??:0) /data/app/~~LhCkpq4XGID5K7t7xRTL-w==/com.dragonheart.projectswordshield-b8HpWDh8GFG8P8TT2nOiDA==/lib/arm64/libunity.so (ExecuteDrawRenderersCommand(ScriptableRenderContextArg*)+124) (BuildId: 439afb7ad30fbbf8)
    2023-01-20 18:30:24.673 27316 27386 Error CRASH #04 pc 000000000070dc38 (ScriptableRenderContext::ExecuteScriptableRenderLoop() at ??:0) /data/app/~~LhCkpq4XGID5K7t7xRTL-w==/com.dragonheart.projectswordshield-b8HpWDh8GFG8P8TT2nOiDA==/lib/arm64/libunity.so (ScriptableRenderContext::ExecuteScriptableRenderLoop()+1232) (BuildId: 439afb7ad30fbbf8)
    2023-01-20 18:30:24.673 27316 27386 Error CRASH #05 pc 00000000073d9f4c (UniversalRenderPipeline_RenderSingleCamera_mAED46E947EC1009B5D51EE35B156C551A2901A18 at D:/ProjectSS/trunk/Client/Library/Bee/artifacts/Android/il2cppOutput/cpp\Unity.RenderPipelines.Universal.Runtime8.cpp:6618) /data/app/~~LhCkpq4XGID5K7t7xRTL-w==/com.dragonheart.projectswordshield-b8HpWDh8GFG8P8TT2nOiDA==/lib/arm64/libil2cpp.so (BuildId: 8ccf32368164c203)
    2023-01-20 18:30:24.673 27316 27386 Error CRASH #06 pc 00000000073d8050 (UniversalRenderPipeline_RenderCameraStack_m47BBC0B4111D83BB6EE3275C9572BFBF2F5451B9 at D:/ProjectSS/trunk/Client/Library/Bee/artifacts/Android/il2cppOutput/cpp\Unity.RenderPipelines.Universal.Runtime8.cpp:7716) /data/app/~~LhCkpq4XGID5K7t7xRTL-w==/com.dragonheart.projectswordshield-b8HpWDh8GFG8P8TT2nOiDA==/lib/arm64/libil2cpp.so (BuildId: 8ccf32368164c203)
    2023-01-20 18:30:24.673 27316 27386 Error CRASH #07 pc 00000000073d6574 (UniversalRenderPipeline_Render_m15A42AB44C14AB4DCA7EF0B915964D46B643D50E at D:/ProjectSS/trunk/Client/Library/Bee/artifacts/Android/il2cppOutput/cpp\Unity.RenderPipelines.Universal.Runtime8.cpp:5801) /data/app/~~LhCkpq4XGID5K7t7xRTL-w==/com.dragonheart.projectswordshield-b8HpWDh8GFG8P8TT2nOiDA==/lib/arm64/libil2cpp.so (BuildId: 8ccf32368164c203)
    2023-01-20 18:30:24.673 27316 27386 Error CRASH #08 pc 000000000759ca50 (RenderPipelineManager_DoRenderLoop_Internal_mB646C8738F4A9859101F3BE94809E2E10BBDB1FB at D:/ProjectSS/trunk/Client/Library/Bee/artifacts/Android/il2cppOutput/cpp\UnityEngine.CoreModule4.cpp:4917) /data/app/~~LhCkpq4XGID5K7t7xRTL-w==/com.dragonheart.projectswordshield-b8HpWDh8GFG8P8TT2nOiDA==/lib/arm64/libil2cpp.so (BuildId: 8ccf32368164c203)
    2023-01-20 18:30:24.674 27316 27386 Error CRASH #09 pc 0000000003767df0 (il2cpp::vm::Runtime::InvokeWithThrow(MethodInfo const*, void*, void**) at C:/Program Files\Unity\Hub\Editor\2022.2.2f1\Editor\Data\il2cpp\libil2cpp\vm\Runtime.cpp:593) /data/app/~~LhCkpq4XGID5K7t7xRTL-w==/com.dragonheart.projectswordshield-b8HpWDh8GFG8P8TT2nOiDA==/lib/arm64/libil2cpp.so (BuildId: 8ccf32368164c203)
    2023-01-20 18:30:24.674 27316 27386 Error CRASH #10 pc 0000000003767d3c (il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**) at C:/Program Files\Unity\Hub\Editor\2022.2.2f1\Editor\Data\il2cpp\libil2cpp\vm\Runtime.cpp:579) /data/app/~~LhCkpq4XGID5K7t7xRTL-w==/com.dragonheart.projectswordshield-b8HpWDh8GFG8P8TT2nOiDA==/lib/arm64/libil2cpp.so (BuildId: 8ccf32368164c203)
    2023-01-20 18:30:24.674 27316 27386 Error CRASH #11 pc 00000000008d7240 (scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool) at ??:0) /data/app/~~LhCkpq4XGID5K7t7xRTL-w==/com.dragonheart.projectswordshield-b8HpWDh8GFG8P8TT2nOiDA==/lib/arm64/libunity.so (scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool)+176) (BuildId: 439afb7ad30fbbf8)
    2023-01-20 18:30:24.674 27316 27386 Error CRASH #12 pc 00000000008e9730 (ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool) at ??:0) /data/app/~~LhCkpq4XGID5K7t7xRTL-w==/com.dragonheart.projectswordshield-b8HpWDh8GFG8P8TT2nOiDA==/lib/arm64/libunity.so (ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool)+156) (BuildId: 439afb7ad30fbbf8)
    2023-01-20 18:30:24.674 27316 27386 Error CRASH #13 pc 000000000070eb14 (ScriptableRenderContext::ExtractAndExecuteRenderPipeline(dynamic_array<Camera*, 0ul> const&, void (*)(SceneNode const*, AABB const*, IndexList&, SceneCullingParameters const*), void*, ScriptingObjectPtr) at ??:0) /data/app/~~LhCkpq4XGID5K7t7xRTL-w==/com.dragonheart.projectswordshield-b8HpWDh8GFG8P8TT2nOiDA==/lib/arm64/libunity.so (ScriptableRenderContext::ExtractAndExecuteRenderPipeline(dynamic_array<Camera*, 0ul> const&, void (*)(SceneNode const*, AABB const*, IndexList&, SceneCullingParameters const*), void*, ScriptingObjectPtr)+328) (BuildId: 439afb7ad30fbbf8)
    2023-01-20 18:30:24.674 27316 27386 Error CRASH #14 pc 0000000000db4bd4 (RenderManager::RenderCamerasWithScriptableRenderLoop(int) at ??:0) /data/app/~~LhCkpq4XGID5K7t7xRTL-w==/com.dragonheart.projectswordshield-b8HpWDh8GFG8P8TT2nOiDA==/lib/arm64/libunity.so (RenderManager::RenderCamerasWithScriptableRenderLoop(int)+784) (BuildId: 439afb7ad30fbbf8)
    2023-01-20 18:30:24.674 27316 27386 Error CRASH #15 pc 0000000000db5128 (RenderManager::RenderCameras(int, void (*)(), void (*)()) at ??:0) /data/app/~~LhCkpq4XGID5K7t7xRTL-w==/com.dragonheart.projectswordshield-b8HpWDh8GFG8P8TT2nOiDA==/lib/arm64/libunity.so (RenderManager::RenderCameras(int, void (*)(), void (*)())+56) (BuildId: 439afb7ad30fbbf8)
    2023-01-20 18:30:24.674 27316 27386 Error CRASH #16 pc 0000000000742cbc (PlayerRender(bool) at ??:0) /data/app/~~LhCkpq4XGID5K7t7xRTL-w==/com.dragonheart.projectswordshield-b8HpWDh8GFG8P8TT2nOiDA==/lib/arm64/libunity.so (PlayerRender(bool)+728) (BuildId: 439afb7ad30fbbf8)
    2023-01-20 18:30:24.674 27316 27386 Error CRASH #17 pc 0000000000743d90 (?? at ??:0) /data/app/~~LhCkpq4XGID5K7t7xRTL-w==/com.dragonheart.projectswordshield-b8HpWDh8GFG8P8TT2nOiDA==/lib/arm64/libunity.so (BuildId: 439afb7ad30fbbf8)
    2023-01-20 18:30:24.674 27316 27386 Error CRASH #18 pc 0000000000738050 (ExecutePlayerLoop(NativePlayerLoopSystem*) at ??:0) /data/app/~~LhCkpq4XGID5K7t7xRTL-w==/com.dragonheart.projectswordshield-b8HpWDh8GFG8P8TT2nOiDA==/lib/arm64/libunity.so (ExecutePlayerLoop(NativePlayerLoopSystem*)+92) (BuildId: 439afb7ad30fbbf8)
    2023-01-20 18:30:24.674 27316 27386 Error CRASH #19 pc 0000000000738090 (ExecutePlayerLoop(NativePlayerLoopSystem*) at ??:0) /data/app/~~LhCkpq4XGID5K7t7xRTL-w==/com.dragonheart.projectswordshield-b8HpWDh8GFG8P8TT2nOiDA==/lib/arm64/libunity.so (ExecutePlayerLoop(NativePlayerLoopSystem*)+156) (BuildId: 439afb7ad30fbbf8)
    2023-01-20 18:30:24.674 27316 27386 Error CRASH #20 pc 0000000000738388 (PlayerLoop() at ??:0) /data/app/~~LhCkpq4XGID5K7t7xRTL-w==/com.dragonheart.projectswordshield-b8HpWDh8GFG8P8TT2nOiDA==/lib/arm64/libunity.so (PlayerLoop()+324) (BuildId: 439afb7ad30fbbf8)
    2023-01-20 18:30:24.674 27316 27386 Error CRASH #21 pc 0000000000998b5c (UnityPlayerLoop() at ??:0) /data/app/~~LhCkpq4XGID5K7t7xRTL-w==/com.dragonheart.projectswordshield-b8HpWDh8GFG8P8TT2nOiDA==/lib/arm64/libunity.so (UnityPlayerLoop()+812) (BuildId: 439afb7ad30fbbf8)
    2023-01-20 18:30:24.674 27316 27386 Error CRASH #22 pc 00000000009b8304 (nativeRender(_JNIEnv*, _jobject*) at ??:0) /data/app/~~LhCkpq4XGID5K7t7xRTL-w==/com.dragonheart.projectswordshield-b8HpWDh8GFG8P8TT2nOiDA==/lib/arm64/libunity.so (nativeRender(_JNIEnv*, _jobject*)+84) (BuildId: 439afb7ad30fbbf8)
    2023-01-20 18:30:24.674 27316 27386 Error CRASH #23 pc 000000000043dd54 (libart.so not found) /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+148) (BuildId: a49c773ef6221a996ecea990e9753caa)
    2023-01-20 18:30:24.674 27316 27386 Error CRASH #24 pc 000000000020a2b0 (libart.so not found) /apex/com.android.art/lib64/libart.so (nterp_helper+4016) (BuildId: a49c773ef6221a996ecea990e9753caa)
    2023-01-20 18:30:24.674 27316 27386 Error CRASH #25 pc 000000000202027c /memfd:jit-cache (deleted)
    2023-01-20 18:30:25.010 27316 27386 Error CRASH Tombstone written to: /storage/emulated/0/Android/data/com.dragonheart.projectswordshield/files/tombstone_00
     
  2. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,663
    Looks like a legit crash. Could you report a bug with repro project attached? Assuming the crash happens always.
     
  3. sunghoon219

    sunghoon219

    Joined:
    Jan 25, 2017
    Posts:
    3
    It doesn't happen in the editor.
    How can I attach a project?
     
  4. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,663
  5. sunghoon219

    sunghoon219

    Joined:
    Jan 25, 2017
    Posts:
    3
  6. mxweas

    mxweas

    Joined:
    Nov 4, 2015
    Posts:
    15
    We're also hitting this crash. Do you all know if a fix is in the works?

    Max
     
  7. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,663
    I see that IN-29917 is still being reviewed. IN-29918 was duplicate of IN-29917, thus was closed
     
  8. mxweas

    mxweas

    Joined:
    Nov 4, 2015
    Posts:
    15
    @sunghoon219 any chance you can send us your repro project? we've got a project that hits this bug and one that doesn't and we're trying to determine what change causes the bug.

    Max
     
  9. SRJMerge

    SRJMerge

    Joined:
    Aug 2, 2021
    Posts:
    3
    This is happening in 2022.2.1f1 as well. Random crash even when the app is left idle sometimes.
     
  10. SRJMerge

    SRJMerge

    Joined:
    Aug 2, 2021
    Posts:
    3
    Any workaround for this crash in the meanwhile? I'm seeing this happen on Android, iOS and chromebook. Does not happen in the editor for me.
     
  11. psycodex

    psycodex

    Joined:
    Oct 11, 2016
    Posts:
    2
    I am also facing same issue anyone have fix for it?
     
    dchen05 likes this.
  12. OverF1Ow

    OverF1Ow

    Joined:
    Dec 29, 2020
    Posts:
    1
    Similar problem. 2022.2.13f1, 2023.1.0b9, 2023.2.0a8 randomly crash on Android.

    (GfxDevice::ExecuteAsync(int, void (*)(GfxDeviceAsyncCommand::ArgScratch*, GfxDeviceAsyncCommand::Arg const*), GfxDeviceAsyncCommand::ArgScratch**, GfxDeviceAsyncCommand::Arg const*, JobFence const&) at ??:0)
     
    Last edited: Apr 4, 2023
  13. NewCo-Tech

    NewCo-Tech

    Joined:
    Jan 28, 2020
    Posts:
    6
    Same problem here.. Any update?

    On iOS app works fine, but on Android sometimes the app crashes total randomly, on almost all Android devices.
    We are using unity 2022.1.19 and URP 13.1.8.


    AndroidRuntime at libunity.GfxDeviceGLES::DrawBuffersBatchMode(GfxBatchHeader const&)(DrawBuffersBatchMode:336)

    AndroidRuntime at libunity.ScriptableBatchRenderer::RenderMultipleMeshes(RenderNodeQueue const&, BatchInstanceDataSRPB const*, int, VertexInputMasks)(RenderMultipleMeshes:4692)

    AndroidRuntime at libunity.ScriptableBatchRenderer::Flush(BatchBreakCause)(Flush:76)

    AndroidRuntime at libunity.ScriptableRenderLoopDrawSRPBatcher(ScriptableLoopObjectData const*, unsigned long, SharedRendererScene const&, DrawRenderersCommand const&, ShaderPassContext&, GfxDevice&, int)(ScriptableRenderLoopDrawSRPBatcher:1360)

    AndroidRuntime at libunity.ScriptableRenderLoopDrawDispatch(ScriptableLoopObjectData const*, unsigned long, SharedRendererScene const&, DrawRenderersCommand const&, ShaderPassContext&, GfxDevice&, int)(ScriptableRenderLoopDrawDispatch:236)

    AndroidRuntime at libunity.0x2798fc(Native Method)

    AndroidRuntime at libunity.GfxDevice::ExecuteAsync(int, void (*)(GfxDeviceAsyncCommand::ArgScratch*, GfxDeviceAsyncCommand::Arg const*), GfxDeviceAsyncCommand::ArgScratch**, GfxDeviceAsyncCommand::Arg const*, JobFence const&)(ExecuteAsync:72)

    AndroidRuntime at libunity.0x26fc44(Native Method)

    AndroidRuntime at libunity.ExecuteDrawRenderersCommand(ScriptableRenderContextArg*)(ExecuteDrawRenderersCommand:44)

    AndroidRuntime at libunity.ScriptableRenderContext::ExecuteScriptableRenderLoop()(ExecuteScriptableRenderLoop:1288)

    AndroidRuntime at libunity.scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool)(scripting_method_invoke:164)

    AndroidRuntime at libunity.ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool)(Invoke:156)

    AndroidRuntime at libunity.ScriptableRenderContext::ExtractAndExecuteRenderPipeline(dynamic_array<Camera*, 0ul> const&, void (*)(SceneNode const*, AABB const*, IndexList&, SceneCullingParameters const*), void*, ScriptingObjectPtr)(ExtractAndExecuteRenderPipeline:328)

    AndroidRuntime at libunity.RenderManager::RenderCamerasWithScriptableRenderLoop(int)(RenderCamerasWithScriptableRenderLoop:808)

    AndroidRuntime at libunity.RenderManager::RenderCameras(int, void (*)(), void (*)())(RenderCameras:56)

    AndroidRuntime at libunity.PlayerRender(bool)(PlayerRender:720)

    AndroidRuntime at libunity.0x2b611c(Native Method)

    AndroidRuntime at libunity.ExecutePlayerLoop(NativePlayerLoopSystem*)(ExecutePlayerLoop:92)

    AndroidRuntime at libunity.ExecutePlayerLoop(NativePlayerLoopSystem*)(ExecutePlayerLoop:156)

    AndroidRuntime at libunity.PlayerLoop()(PlayerLoop:324)

    AndroidRuntime at libunity.UnityPlayerLoop()(UnityPlayerLoop:812)
     
  14. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,663
    The bug IN-29917 was closed as not reproducible, QA tested on the same set of devices the bug report mentions, but no crash has occurred.

    If you have repro with higher crash probability, please report a bug with project attached. Thank you
     
  15. rhodnius

    rhodnius

    Joined:
    Apr 11, 2012
    Posts:
    1,332
    This is exactly what we are also facing but on Unity 2022.1.24f1, any work around to it?
     
  16. rhodnius

    rhodnius

    Joined:
    Apr 11, 2012
    Posts:
    1,332
    In our case we disabled the SRP Batcher which in result prevents the crash, is the only work around we have found so far, which in our case the performance impact is very small and we can live with it, in case anyone else is having this issue, but definitely is the SRP Batcher that is causing the CRASH
     
  17. Raptcha911

    Raptcha911

    Joined:
    Sep 19, 2014
    Posts:
    24
    @rhodnius The SRP batcher was already disabled in my project. It is still crashing with this same issue. Enabling SRP Batcher did not make any difference either. Does anybody have any more ideas?
     
  18. mops398

    mops398

    Joined:
    Oct 20, 2017
    Posts:
    8
    We have the same native crash. Unity 2022.2.1f
     
  19. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,663
    Please report a bug with repro project attached, thank you!