Vulkan Rendering Crash on Android in Unity 6.0.25f1 (URP)

I’m experiencing a crash on Android devices with Unity 6.0.25f1 :

[libunity.so] vk::RenderSurface::CreateDepthSurfaceImpl(vk::RenderSurface*, vk::CommandBuffer*, vk::ImageManager&, GraphicsFormat, VkExtent3D, int)

Issue

The crash occurs during Vulkan rendering

  • Unity Version: 6.0.25f1
  • Using: Universal Render Pipeline (URP)
  • Platform: Android

Settings

Devices Affected



Stack Traces

  1. Stack Trace 1
    samsung m33x (Galaxy Jump2)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 2373 >>> com.TrinityGames.AntSim <<<

backtrace:
  #00  pc 0x0000000000d8bce8  /data/app/~~gvNj8v4s1t67TS0KLNC5FQ==/com.TrinityGames.AntSim--n4Q4Mn1JTG78766Y_TZSQ==/lib/arm64/libunity.so (vk::RenderSurface::CreateDepthSurfaceImpl(vk::RenderSurface*, vk::CommandBuffer*, vk::ImageManager&, GraphicsFormat, VkExtent3D, int)) (BuildId: 5b731334bb985c07)
  #01  pc 0x0000000000d8c25c  /data/app/~~gvNj8v4s1t67TS0KLNC5FQ==/com.TrinityGames.AntSim--n4Q4Mn1JTG78766Y_TZSQ==/lib/arm64/libunity.so (vk::RenderSurface::UpdateDepthBackbufferSurface(vk::RenderSurface*, vk::CommandBuffer*, vk::ImageManager&, GraphicsFormat, int, vk::PresentationSurface*, MemLabelId)) (BuildId: 5b731334bb985c07)
  #02  pc 0x0000000000db4e0c  /data/app/~~gvNj8v4s1t67TS0KLNC5FQ==/com.TrinityGames.AntSim--n4Q4Mn1JTG78766Y_TZSQ==/lib/arm64/libunity.so (GfxDeviceVK::UpdateBackbufferSurfaces(vk::SwapChainConfiguration const&)) (BuildId: 5b731334bb985c07)
  #03  pc 0x0000000000db9770  /data/app/~~gvNj8v4s1t67TS0KLNC5FQ==/com.TrinityGames.AntSim--n4Q4Mn1JTG78766Y_TZSQ==/lib/arm64/libunity.so (GfxDeviceVK::UpdatePrimarySwapChain(vk::SwapChainConfiguration const&)) (BuildId: 5b731334bb985c07)
  #04  pc 0x0000000000db960c  /data/app/~~gvNj8v4s1t67TS0KLNC5FQ==/com.TrinityGames.AntSim--n4Q4Mn1JTG78766Y_TZSQ==/lib/arm64/libunity.so (GfxDeviceVK::AdjustPrimarySwapChain(ANativeWindow*, int, int, int, int, RefreshRate, bool, bool, int, int, bool, GraphicsFormat, VkPresentModeKHR, int&, int&, int&)) (BuildId: 5b731334bb985c07)
  #05  pc 0x0000000000d96fd8  /data/app/~~gvNj8v4s1t67TS0KLNC5FQ==/com.TrinityGames.AntSim--n4Q4Mn1JTG78766Y_TZSQ==/lib/arm64/libunity.so (vk::InitializeOrResetSwapChain(ANativeWindow*, int, int, int, int, RefreshRate, bool, bool, int, int, bool, bool, int&, int&, int&)) (BuildId: 5b731334bb985c07)
  #06  pc 0x00000000007a3648  /data/app/~~gvNj8v4s1t67TS0KLNC5FQ==/com.TrinityGames.AntSim--n4Q4Mn1JTG78766Y_TZSQ==/lib/arm64/libunity.so (AndroidDisplayManagerVulkan::UpdateVulkanPrimarySwapChain()) (BuildId: 5b731334bb985c07)
  #07  pc 0x00000000007a3e9c  /data/app/~~gvNj8v4s1t67TS0KLNC5FQ==/com.TrinityGames.AntSim--n4Q4Mn1JTG78766Y_TZSQ==/lib/arm64/libunity.so (AndroidDisplayManagerVulkan::Update(bool)) (BuildId: 5b731334bb985c07)
  #08  pc 0x00000000007a3c70  /data/app/~~gvNj8v4s1t67TS0KLNC5FQ==/com.TrinityGames.AntSim--n4Q4Mn1JTG78766Y_TZSQ==/lib/arm64/libunity.so (AndroidDisplayManagerVulkan::AndroidDisplayManagerVulkan(ANativeWindow*)) (BuildId: 5b731334bb985c07)
  #09  pc 0x00000000007a8c68  /data/app/~~gvNj8v4s1t67TS0KLNC5FQ==/com.TrinityGames.AntSim--n4Q4Mn1JTG78766Y_TZSQ==/lib/arm64/libunity.so (AndroidDisplayManager::Startup(AndroidGraphics::AndroidGraphicsApi, ANativeWindow*)) (BuildId: 5b731334bb985c07)
  #10  pc 0x000000000079eb68  /data/app/~~gvNj8v4s1t67TS0KLNC5FQ==/com.TrinityGames.AntSim--n4Q4Mn1JTG78766Y_TZSQ==/lib/arm64/libunity.so (AndroidGraphics::Startup()) (BuildId: 5b731334bb985c07)
  #11  pc 0x00000000007ba8bc  /data/app/~~gvNj8v4s1t67TS0KLNC5FQ==/com.TrinityGames.AntSim--n4Q4Mn1JTG78766Y_TZSQ==/lib/arm64/libunity.so (UnityInitApplication()) (BuildId: 5b731334bb985c07)
  #12  pc 0x00000000007bb46c  /data/app/~~gvNj8v4s1t67TS0KLNC5FQ==/com.TrinityGames.AntSim--n4Q4Mn1JTG78766Y_TZSQ==/lib/arm64/libunity.so (UnityPlayerLoop()) (BuildId: 5b731334bb985c07)
  #13  pc 0x00000000007bc5f8  /data/app/~~gvNj8v4s1t67TS0KLNC5FQ==/com.TrinityGames.AntSim--n4Q4Mn1JTG78766Y_TZSQ==/lib/arm64/libunity.so (nativeRender(_JNIEnv*, _jobject*)) (BuildId: 5b731334bb985c07)
  #14  pc 0x000000000033a5a0  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (art_jni_trampoline+112)
  #15  pc 0x0000000000227adc  /data/app/~~gvNj8v4s1t67TS0KLNC5FQ==/com.TrinityGames.AntSim--n4Q4Mn1JTG78766Y_TZSQ==/oat/arm64/base.odex (com.unity3d.player.z0.handleMessage+748)
  #16  pc 0x0000000000972e0c  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (android.os.Handler.dispatchMessage+124)
  #17  pc 0x0000000000976794  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (android.os.Looper.loopOnce+980)
  #18  pc 0x0000000000976324  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (android.os.Looper.loop+916)
  #19  pc 0x000000000021fd78  /data/app/~~gvNj8v4s1t67TS0KLNC5FQ==/com.TrinityGames.AntSim--n4Q4Mn1JTG78766Y_TZSQ==/oat/arm64/base.odex (com.unity3d.player.B0.run+616)
  #20  pc 0x000000000036db74  /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+612)
  #21  pc 0x0000000000359324  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+132)
  #22  pc 0x0000000000944438  /apex/com.android.art/lib64/libart.so (art::detail::ShortyTraits<(char)86>::Type art::ArtMethod::InvokeInstance<(char)86>(art::Thread*, art::ObjPtr<art::mirror::Object>, art::detail::ShortyTraits<>::Type...)+60)
  #23  pc 0x00000000006209f4  /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1344)
  #24  pc 0x00000000006204a4  /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallbackWithUffdGc(void*)+8)
  #25  pc 0x00000000000be888  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208)
  #26  pc 0x000000000005b370  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
  1. Stack Trace 2
    vivo V2333 (Y03)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 10190 >>> com.TrinityGames.AntSim <<<

backtrace:
  #00  pc 0x0000000000d8bce8  /data/app/~~BuX9ejlKxWkRNPksGMmm5g==/com.TrinityGames.AntSim-S018kUvHQmoiENkssbYKPg==/lib/arm64/libunity.so (vk::RenderSurface::CreateDepthSurfaceImpl(vk::RenderSurface*, vk::CommandBuffer*, vk::ImageManager&, GraphicsFormat, VkExtent3D, int)) (BuildId: 5b731334bb985c07)
  #01  pc 0x0000000000d8c25c  /data/app/~~BuX9ejlKxWkRNPksGMmm5g==/com.TrinityGames.AntSim-S018kUvHQmoiENkssbYKPg==/lib/arm64/libunity.so (vk::RenderSurface::UpdateDepthBackbufferSurface(vk::RenderSurface*, vk::CommandBuffer*, vk::ImageManager&, GraphicsFormat, int, vk::PresentationSurface*, MemLabelId)) (BuildId: 5b731334bb985c07)
  #02  pc 0x0000000000db4e0c  /data/app/~~BuX9ejlKxWkRNPksGMmm5g==/com.TrinityGames.AntSim-S018kUvHQmoiENkssbYKPg==/lib/arm64/libunity.so (GfxDeviceVK::UpdateBackbufferSurfaces(vk::SwapChainConfiguration const&)) (BuildId: 5b731334bb985c07)
  #03  pc 0x0000000000db9770  /data/app/~~BuX9ejlKxWkRNPksGMmm5g==/com.TrinityGames.AntSim-S018kUvHQmoiENkssbYKPg==/lib/arm64/libunity.so (GfxDeviceVK::UpdatePrimarySwapChain(vk::SwapChainConfiguration const&)) (BuildId: 5b731334bb985c07)
  #04  pc 0x0000000000db960c  /data/app/~~BuX9ejlKxWkRNPksGMmm5g==/com.TrinityGames.AntSim-S018kUvHQmoiENkssbYKPg==/lib/arm64/libunity.so (GfxDeviceVK::AdjustPrimarySwapChain(ANativeWindow*, int, int, int, int, RefreshRate, bool, bool, int, int, bool, GraphicsFormat, VkPresentModeKHR, int&, int&, int&)) (BuildId: 5b731334bb985c07)
  #05  pc 0x0000000000d96fd8  /data/app/~~BuX9ejlKxWkRNPksGMmm5g==/com.TrinityGames.AntSim-S018kUvHQmoiENkssbYKPg==/lib/arm64/libunity.so (vk::InitializeOrResetSwapChain(ANativeWindow*, int, int, int, int, RefreshRate, bool, bool, int, int, bool, bool, int&, int&, int&)) (BuildId: 5b731334bb985c07)
  #06  pc 0x00000000007a3648  /data/app/~~BuX9ejlKxWkRNPksGMmm5g==/com.TrinityGames.AntSim-S018kUvHQmoiENkssbYKPg==/lib/arm64/libunity.so (AndroidDisplayManagerVulkan::UpdateVulkanPrimarySwapChain()) (BuildId: 5b731334bb985c07)
  #07  pc 0x00000000007a3e9c  /data/app/~~BuX9ejlKxWkRNPksGMmm5g==/com.TrinityGames.AntSim-S018kUvHQmoiENkssbYKPg==/lib/arm64/libunity.so (AndroidDisplayManagerVulkan::Update(bool)) (BuildId: 5b731334bb985c07)
  #08  pc 0x00000000007a3c70  /data/app/~~BuX9ejlKxWkRNPksGMmm5g==/com.TrinityGames.AntSim-S018kUvHQmoiENkssbYKPg==/lib/arm64/libunity.so (AndroidDisplayManagerVulkan::AndroidDisplayManagerVulkan(ANativeWindow*)) (BuildId: 5b731334bb985c07)
  #09  pc 0x00000000007a8c68  /data/app/~~BuX9ejlKxWkRNPksGMmm5g==/com.TrinityGames.AntSim-S018kUvHQmoiENkssbYKPg==/lib/arm64/libunity.so (AndroidDisplayManager::Startup(AndroidGraphics::AndroidGraphicsApi, ANativeWindow*)) (BuildId: 5b731334bb985c07)
  #10  pc 0x000000000079eb68  /data/app/~~BuX9ejlKxWkRNPksGMmm5g==/com.TrinityGames.AntSim-S018kUvHQmoiENkssbYKPg==/lib/arm64/libunity.so (AndroidGraphics::Startup()) (BuildId: 5b731334bb985c07)
  #11  pc 0x00000000007ba8bc  /data/app/~~BuX9ejlKxWkRNPksGMmm5g==/com.TrinityGames.AntSim-S018kUvHQmoiENkssbYKPg==/lib/arm64/libunity.so (UnityInitApplication()) (BuildId: 5b731334bb985c07)
  #12  pc 0x00000000007bb46c  /data/app/~~BuX9ejlKxWkRNPksGMmm5g==/com.TrinityGames.AntSim-S018kUvHQmoiENkssbYKPg==/lib/arm64/libunity.so (UnityPlayerLoop()) (BuildId: 5b731334bb985c07)
  #13  pc 0x00000000007bc5f8  /data/app/~~BuX9ejlKxWkRNPksGMmm5g==/com.TrinityGames.AntSim-S018kUvHQmoiENkssbYKPg==/lib/arm64/libunity.so (nativeRender(_JNIEnv*, _jobject*)) (BuildId: 5b731334bb985c07)
  #14  pc 0x00000000004ba5a0  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (art_jni_trampoline+112)
  #15  pc 0x00000000002161fc  /data/app/~~BuX9ejlKxWkRNPksGMmm5g==/com.TrinityGames.AntSim-S018kUvHQmoiENkssbYKPg==/oat/arm64/base.odex (com.unity3d.player.z0.handleMessage+748)
  #16  pc 0x0000000000cabc6c  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (android.os.Handler.dispatchMessage+124)
  #17  pc 0x0000000000cafe48  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (android.os.Looper.loopOnce+1016)
  #18  pc 0x0000000000caf998  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (android.os.Looper.loop+936)
  #19  pc 0x000000000020e7f4  /data/app/~~BuX9ejlKxWkRNPksGMmm5g==/com.TrinityGames.AntSim-S018kUvHQmoiENkssbYKPg==/oat/arm64/base.odex (com.unity3d.player.B0.run+644)
  #20  pc 0x0000000000362774  /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+612)
  #21  pc 0x000000000034def0  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+132)
  #22  pc 0x0000000000943da8  /apex/com.android.art/lib64/libart.so (art::detail::ShortyTraits<(char)86>::Type art::ArtMethod::InvokeInstance<(char)86>(art::Thread*, art::ObjPtr<art::mirror::Object>, art::detail::ShortyTraits<>::Type...)+60)
  #23  pc 0x000000000063eb64  /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1344)
  #24  pc 0x000000000063e614  /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallbackWithUffdGc(void*)+8)
  #25  pc 0x00000000000cb040  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+224)
  #26  pc 0x000000000005ec90  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
  1. Stack Trace 3
    samsung a05m (Galaxy A05)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 31521 >>> com.TrinityGames.AntSim <<<

backtrace:
  #00  pc 0x0000000000d8bce8  /data/app/~~8s7dm9iQ7oTHFy1MmVO43A==/com.TrinityGames.AntSim-3-7a9mm5rLdmlrRFiJ-RBg==/lib/arm64/libunity.so (vk::RenderSurface::CreateDepthSurfaceImpl(vk::RenderSurface*, vk::CommandBuffer*, vk::ImageManager&, GraphicsFormat, VkExtent3D, int)) (BuildId: 5b731334bb985c07)
  #01  pc 0x0000000000d8c25c  /data/app/~~8s7dm9iQ7oTHFy1MmVO43A==/com.TrinityGames.AntSim-3-7a9mm5rLdmlrRFiJ-RBg==/lib/arm64/libunity.so (vk::RenderSurface::UpdateDepthBackbufferSurface(vk::RenderSurface*, vk::CommandBuffer*, vk::ImageManager&, GraphicsFormat, int, vk::PresentationSurface*, MemLabelId)) (BuildId: 5b731334bb985c07)
  #02  pc 0x0000000000db4e0c  /data/app/~~8s7dm9iQ7oTHFy1MmVO43A==/com.TrinityGames.AntSim-3-7a9mm5rLdmlrRFiJ-RBg==/lib/arm64/libunity.so (GfxDeviceVK::UpdateBackbufferSurfaces(vk::SwapChainConfiguration const&)) (BuildId: 5b731334bb985c07)
  #03  pc 0x0000000000db9770  /data/app/~~8s7dm9iQ7oTHFy1MmVO43A==/com.TrinityGames.AntSim-3-7a9mm5rLdmlrRFiJ-RBg==/lib/arm64/libunity.so (GfxDeviceVK::UpdatePrimarySwapChain(vk::SwapChainConfiguration const&)) (BuildId: 5b731334bb985c07)
  #04  pc 0x0000000000db960c  /data/app/~~8s7dm9iQ7oTHFy1MmVO43A==/com.TrinityGames.AntSim-3-7a9mm5rLdmlrRFiJ-RBg==/lib/arm64/libunity.so (GfxDeviceVK::AdjustPrimarySwapChain(ANativeWindow*, int, int, int, int, RefreshRate, bool, bool, int, int, bool, GraphicsFormat, VkPresentModeKHR, int&, int&, int&)) (BuildId: 5b731334bb985c07)
  #05  pc 0x0000000000d96fd8  /data/app/~~8s7dm9iQ7oTHFy1MmVO43A==/com.TrinityGames.AntSim-3-7a9mm5rLdmlrRFiJ-RBg==/lib/arm64/libunity.so (vk::InitializeOrResetSwapChain(ANativeWindow*, int, int, int, int, RefreshRate, bool, bool, int, int, bool, bool, int&, int&, int&)) (BuildId: 5b731334bb985c07)
  #06  pc 0x00000000007a3648  /data/app/~~8s7dm9iQ7oTHFy1MmVO43A==/com.TrinityGames.AntSim-3-7a9mm5rLdmlrRFiJ-RBg==/lib/arm64/libunity.so (AndroidDisplayManagerVulkan::UpdateVulkanPrimarySwapChain()) (BuildId: 5b731334bb985c07)
  #07  pc 0x00000000007a3e9c  /data/app/~~8s7dm9iQ7oTHFy1MmVO43A==/com.TrinityGames.AntSim-3-7a9mm5rLdmlrRFiJ-RBg==/lib/arm64/libunity.so (AndroidDisplayManagerVulkan::Update(bool)) (BuildId: 5b731334bb985c07)
  #08  pc 0x00000000007a3c70  /data/app/~~8s7dm9iQ7oTHFy1MmVO43A==/com.TrinityGames.AntSim-3-7a9mm5rLdmlrRFiJ-RBg==/lib/arm64/libunity.so (AndroidDisplayManagerVulkan::AndroidDisplayManagerVulkan(ANativeWindow*)) (BuildId: 5b731334bb985c07)
  #09  pc 0x00000000007a8c68  /data/app/~~8s7dm9iQ7oTHFy1MmVO43A==/com.TrinityGames.AntSim-3-7a9mm5rLdmlrRFiJ-RBg==/lib/arm64/libunity.so (AndroidDisplayManager::Startup(AndroidGraphics::AndroidGraphicsApi, ANativeWindow*)) (BuildId: 5b731334bb985c07)
  #10  pc 0x000000000079eb68  /data/app/~~8s7dm9iQ7oTHFy1MmVO43A==/com.TrinityGames.AntSim-3-7a9mm5rLdmlrRFiJ-RBg==/lib/arm64/libunity.so (AndroidGraphics::Startup()) (BuildId: 5b731334bb985c07)
  #11  pc 0x00000000007ba8bc  /data/app/~~8s7dm9iQ7oTHFy1MmVO43A==/com.TrinityGames.AntSim-3-7a9mm5rLdmlrRFiJ-RBg==/lib/arm64/libunity.so (UnityInitApplication()) (BuildId: 5b731334bb985c07)
  #12  pc 0x00000000007bb46c  /data/app/~~8s7dm9iQ7oTHFy1MmVO43A==/com.TrinityGames.AntSim-3-7a9mm5rLdmlrRFiJ-RBg==/lib/arm64/libunity.so (UnityPlayerLoop()) (BuildId: 5b731334bb985c07)
  #13  pc 0x00000000007bc5f8  /data/app/~~8s7dm9iQ7oTHFy1MmVO43A==/com.TrinityGames.AntSim-3-7a9mm5rLdmlrRFiJ-RBg==/lib/arm64/libunity.so (nativeRender(_JNIEnv*, _jobject*)) (BuildId: 5b731334bb985c07)
  #14  pc 0x000000000006a6c4  /data/app/~~8s7dm9iQ7oTHFy1MmVO43A==/com.TrinityGames.AntSim-3-7a9mm5rLdmlrRFiJ-RBg==/oat/arm64/base.odex (art_jni_trampoline+116)
  #15  pc 0x00000000000b26c0  /data/app/~~8s7dm9iQ7oTHFy1MmVO43A==/com.TrinityGames.AntSim-3-7a9mm5rLdmlrRFiJ-RBg==/oat/arm64/base.odex (com.unity3d.player.z0.handleMessage+1040)
  #16  pc 0x00000000006619d4  /system/framework/arm64/boot-framework.oat (android.os.Handler.dispatchMessage+148)
  #17  pc 0x0000000000665164  /system/framework/arm64/boot-framework.oat (android.os.Looper.loopOnce+1044)
  #18  pc 0x0000000000664cb0  /system/framework/arm64/boot-framework.oat (android.os.Looper.loop+560)
  #19  pc 0x00000000000a92c4  /data/app/~~8s7dm9iQ7oTHFy1MmVO43A==/com.TrinityGames.AntSim-3-7a9mm5rLdmlrRFiJ-RBg==/oat/arm64/base.odex (com.unity3d.player.B0.run+676)
  #20  pc 0x00000000003607a4  /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+612)
  #21  pc 0x000000000034bac4  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+144)
  #22  pc 0x00000000004f3fa4  /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1888)
  #23  pc 0x0000000000101c2c  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204)
  #24  pc 0x0000000000095a00  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
  1. Stack Trace 4
    Redmi gale (Redmi 13C)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 7600 >>> com.TrinityGames.AntSim <<<

backtrace:
  #00  pc 0x0000000000d8bce8  /data/app/~~PsIIAUCNZ37jLWg9JWuIAg==/com.TrinityGames.AntSim-lYrhItpAc0FiR3cub5caig==/lib/arm64/libunity.so (vk::RenderSurface::CreateDepthSurfaceImpl(vk::RenderSurface*, vk::CommandBuffer*, vk::ImageManager&, GraphicsFormat, VkExtent3D, int)) (BuildId: 5b731334bb985c07)
  #01  pc 0x0000000000d8c25c  /data/app/~~PsIIAUCNZ37jLWg9JWuIAg==/com.TrinityGames.AntSim-lYrhItpAc0FiR3cub5caig==/lib/arm64/libunity.so (vk::RenderSurface::UpdateDepthBackbufferSurface(vk::RenderSurface*, vk::CommandBuffer*, vk::ImageManager&, GraphicsFormat, int, vk::PresentationSurface*, MemLabelId)) (BuildId: 5b731334bb985c07)
  #02  pc 0x0000000000db4e0c  /data/app/~~PsIIAUCNZ37jLWg9JWuIAg==/com.TrinityGames.AntSim-lYrhItpAc0FiR3cub5caig==/lib/arm64/libunity.so (GfxDeviceVK::UpdateBackbufferSurfaces(vk::SwapChainConfiguration const&)) (BuildId: 5b731334bb985c07)
  #03  pc 0x0000000000db9770  /data/app/~~PsIIAUCNZ37jLWg9JWuIAg==/com.TrinityGames.AntSim-lYrhItpAc0FiR3cub5caig==/lib/arm64/libunity.so (GfxDeviceVK::UpdatePrimarySwapChain(vk::SwapChainConfiguration const&)) (BuildId: 5b731334bb985c07)
  #04  pc 0x0000000000db960c  /data/app/~~PsIIAUCNZ37jLWg9JWuIAg==/com.TrinityGames.AntSim-lYrhItpAc0FiR3cub5caig==/lib/arm64/libunity.so (GfxDeviceVK::AdjustPrimarySwapChain(ANativeWindow*, int, int, int, int, RefreshRate, bool, bool, int, int, bool, GraphicsFormat, VkPresentModeKHR, int&, int&, int&)) (BuildId: 5b731334bb985c07)
  #05  pc 0x0000000000d96fd8  /data/app/~~PsIIAUCNZ37jLWg9JWuIAg==/com.TrinityGames.AntSim-lYrhItpAc0FiR3cub5caig==/lib/arm64/libunity.so (vk::InitializeOrResetSwapChain(ANativeWindow*, int, int, int, int, RefreshRate, bool, bool, int, int, bool, bool, int&, int&, int&)) (BuildId: 5b731334bb985c07)
  #06  pc 0x00000000007a3648  /data/app/~~PsIIAUCNZ37jLWg9JWuIAg==/com.TrinityGames.AntSim-lYrhItpAc0FiR3cub5caig==/lib/arm64/libunity.so (AndroidDisplayManagerVulkan::UpdateVulkanPrimarySwapChain()) (BuildId: 5b731334bb985c07)
  #07  pc 0x00000000007a3e9c  /data/app/~~PsIIAUCNZ37jLWg9JWuIAg==/com.TrinityGames.AntSim-lYrhItpAc0FiR3cub5caig==/lib/arm64/libunity.so (AndroidDisplayManagerVulkan::Update(bool)) (BuildId: 5b731334bb985c07)
  #08  pc 0x00000000007a3c70  /data/app/~~PsIIAUCNZ37jLWg9JWuIAg==/com.TrinityGames.AntSim-lYrhItpAc0FiR3cub5caig==/lib/arm64/libunity.so (AndroidDisplayManagerVulkan::AndroidDisplayManagerVulkan(ANativeWindow*)) (BuildId: 5b731334bb985c07)
  #09  pc 0x00000000007a8c68  /data/app/~~PsIIAUCNZ37jLWg9JWuIAg==/com.TrinityGames.AntSim-lYrhItpAc0FiR3cub5caig==/lib/arm64/libunity.so (AndroidDisplayManager::Startup(AndroidGraphics::AndroidGraphicsApi, ANativeWindow*)) (BuildId: 5b731334bb985c07)
  #10  pc 0x000000000079eb68  /data/app/~~PsIIAUCNZ37jLWg9JWuIAg==/com.TrinityGames.AntSim-lYrhItpAc0FiR3cub5caig==/lib/arm64/libunity.so (AndroidGraphics::Startup()) (BuildId: 5b731334bb985c07)
  #11  pc 0x00000000007ba8bc  /data/app/~~PsIIAUCNZ37jLWg9JWuIAg==/com.TrinityGames.AntSim-lYrhItpAc0FiR3cub5caig==/lib/arm64/libunity.so (UnityInitApplication()) (BuildId: 5b731334bb985c07)
  #12  pc 0x00000000007bb46c  /data/app/~~PsIIAUCNZ37jLWg9JWuIAg==/com.TrinityGames.AntSim-lYrhItpAc0FiR3cub5caig==/lib/arm64/libunity.so (UnityPlayerLoop()) (BuildId: 5b731334bb985c07)
  #13  pc 0x00000000007bc5f8  /data/app/~~PsIIAUCNZ37jLWg9JWuIAg==/com.TrinityGames.AntSim-lYrhItpAc0FiR3cub5caig==/lib/arm64/libunity.so (nativeRender(_JNIEnv*, _jobject*)) (BuildId: 5b731334bb985c07)
  #14  pc 0x0000000000396d20  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (art_jni_trampoline+112)
  #15  pc 0x000000000023f39c  /data/app/~~PsIIAUCNZ37jLWg9JWuIAg==/com.TrinityGames.AntSim-lYrhItpAc0FiR3cub5caig==/oat/arm64/base.odex (com.unity3d.player.z0.handleMessage+956)
  #16  pc 0x0000000000a9979c  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (android.os.Handler.dispatchMessage+140)
  #17  pc 0x0000000000a9d428  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (android.os.Looper.loopOnce+1048)
  #18  pc 0x0000000000a9cf5c  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (android.os.Looper.loop+1132)
  #19  pc 0x00000000002367ec  /data/app/~~PsIIAUCNZ37jLWg9JWuIAg==/com.TrinityGames.AntSim-lYrhItpAc0FiR3cub5caig==/oat/arm64/base.odex (com.unity3d.player.B0.run+492)
  #20  pc 0x0000000000362774  /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+612)
  #21  pc 0x000000000034def0  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+132)
  #22  pc 0x0000000000943e28  /apex/com.android.art/lib64/libart.so (art::detail::ShortyTraits<(char)86>::Type art::ArtMethod::InvokeInstance<(char)86>(art::Thread*, art::ObjPtr<art::mirror::Object>, art::detail::ShortyTraits<>::Type...)+60)
  #23  pc 0x000000000063ebd4  /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1344)
  #24  pc 0x00000000000fbbcc  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204)
  #25  pc 0x000000000008e670  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)

Any guidance on resolving this issue or insights into a possible patch would be appreciated. Thank you!

  1. Vulkan drivers are buggy on Android for old or low end devices
  2. It seems to be depth related. Could you file a bug report from within the editor with the logs or this thread attached? Maybe it’s a bug and can be fixed.
  3. Disable depth ind the URP asset if not used
  4. Tune down settings if you want to support low end devices. ETC2 instead of ASTC, XYZ normal maps, drop multithreaded rendering, use CPU skinning. This does hurt high end devices
  5. Try OpenGLES (sadly the easiest option until this is fixed…)
1 Like

Hi :slight_smile:

With Unity 6000.0.5f1, we added the possibility to “Allow or deny Vulkan API usage”. Maybe you could filter out these particular devices?

Our new release notes system (currently in alpha) could also be interesting for you. You can find the differences between the releases, and then search in your browser for example for “Vulkan”: Unity Release Notes (Alpha) - Search

Best,
Oliver

2 Likes

I’m having the same issue. Sadly, the Vulkan Deny Filter is giving me even more errors. In the documentation, it’s not clear what kind of regex I should use. In one page says “You can use C# regular expressions for all the parameters, except the Vulkan API version and Driver version. For example, \[A|a\]dreno .\*6\[0-9\]\[0-9\], Qual\*, \[S|s\]amsung” but in the other you have a image with ((G|g)oogle). Any regex error crashes the game for everybody at the start. I was not having this issue with Unity 2022.x.

I also had a problem recently with the Xiaomi Mi 9 SE, and I used your approach to deny the Vulkan API for that brand (since I don’t know exactly which devices are problematic). It worked like a charm, thank you @oliverschnabel!