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

Bug vulkan crash in android

Discussion in 'Android' started by unity_T5aWmdSjQLBw9Q, Jul 25, 2023.

  1. unity_T5aWmdSjQLBw9Q

    unity_T5aWmdSjQLBw9Q

    Joined:
    May 16, 2018
    Posts:
    3
    Hi
    Im suffering vulkan crashes
    is any way we can do to avoid the crashes


    here is one of them.
    Unity 2022.3.5f1

    *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    pid: 0, tid: 28880 >>> com.TalosIndieGames.QuintoSol <<<

    backtrace:
    #00 pc 0x0000000000b46664 /data/app/~~GMgmzG1he608gtqDYPVEEg==/com.TalosIndieGames.QuintoSol-0Ycj7Ux5FAfx6M6T5l9jIA==/lib/arm64/libunity.so (vk::Image::AccessWholeImage(vk::CommandBuffer*, VkImageLayout, unsigned int, unsigned int, bool, bool))
    #01 pc 0x0000000000b05678 /data/app/~~GMgmzG1he608gtqDYPVEEg==/com.TalosIndieGames.QuintoSol-0Ycj7Ux5FAfx6M6T5l9jIA==/lib/arm64/libunity.so (vk::RenderPassSwitcher::InternalApply(vk::CommandBuffer*))
    #02 pc 0x0000000000b353b4 /data/app/~~GMgmzG1he608gtqDYPVEEg==/com.TalosIndieGames.QuintoSol-0Ycj7Ux5FAfx6M6T5l9jIA==/lib/arm64/libunity.so (GfxDeviceVKBase::EnsureCurrentCommandBuffer(vk::CommandBuffer::Type, bool))
    #03 pc 0x0000000000b306d0 /data/app/~~GMgmzG1he608gtqDYPVEEg==/com.TalosIndieGames.QuintoSol-0Ycj7Ux5FAfx6M6T5l9jIA==/lib/arm64/libunity.so (GfxDeviceVKBase::SetShadersThreadable(GpuProgram**, GpuProgramParameters const**, unsigned char const* const*))
    #04 pc 0x0000000000c81a18 /data/app/~~GMgmzG1he608gtqDYPVEEg==/com.TalosIndieGames.QuintoSol-0Ycj7Ux5FAfx6M6T5l9jIA==/lib/arm64/libunity.so (GfxDeviceWorker::RunCommand(ThreadedStreamBuffer&))
    #05 pc 0x0000000000c7e590 /data/app/~~GMgmzG1he608gtqDYPVEEg==/com.TalosIndieGames.QuintoSol-0Ycj7Ux5FAfx6M6T5l9jIA==/lib/arm64/libunity.so (GfxDeviceWorker::RunExt(ThreadedStreamBuffer&))
    #06 pc 0x0000000000c7e2d8 /data/app/~~GMgmzG1he608gtqDYPVEEg==/com.TalosIndieGames.QuintoSol-0Ycj7Ux5FAfx6M6T5l9jIA==/lib/arm64/libunity.so (GfxDeviceWorker::RunGfxDeviceWorker(void*))
    #07 pc 0x00000000005bc734 /data/app/~~GMgmzG1he608gtqDYPVEEg==/com.TalosIndieGames.QuintoSol-0Ycj7Ux5FAfx6M6T5l9jIA==/lib/arm64/libunity.so (Thread::RunThreadWrapper(void*))
    #08 pc 0x00000000000f5298 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208)
    #09 pc 0x000000000008ebdc /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+68)
     
  2. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    10,977
    Disabling Vulkan and Multithreaded Rendering helps eliminate a bunch of crashes.
     
  3. unity_T5aWmdSjQLBw9Q

    unity_T5aWmdSjQLBw9Q

    Joined:
    May 16, 2018
    Posts:
    3
    without vulcan some important game particles are not rendered
     
  4. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    10,977
    Oh, are you using VFX graph? I guess then you have no choice but to live with worse performance and the crashes unfortunately.

    I would still try to disable Multithreaded rendering.
     
  5. unity_T5aWmdSjQLBw9Q

    unity_T5aWmdSjQLBw9Q

    Joined:
    May 16, 2018
    Posts:
    3
    I followed your advice and disabled Vulkan. I simply kept OpenGL ES 3 enabled and made the particles simpler. As a result, the devices stopped crashing
     
    AcidArrow likes this.
  6. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    10,977
    Yup, that's the unfortunate reality of Android + Unity currently.