✅Unity: Android Vulkan Rendering Crash On Startup
Hi,
We are currently experiencing crashing on a specific set of Androids with the mali based GPU. The error is specific to the initialization of Vulkan itself and getting the physical device properties from the API.
backtrace:
#00 pc 0x0000000000adf100 /vendor/lib64/egl/libGLES_mali.so
#01 pc 0x0000000000022434 /system/lib64/libvulkan.so (vulkan::driver::GetPhysicalDeviceProperties2(VkPhysicalDevice_T*, VkPhysicalDeviceProperties2*)+52) #02 pc 0x00000000003a7e0c /data/app/~~emJYqq_jr99okHIOSC-WiQ==/PROJECT==/lib/arm64/librive.so (rive::RiveRendererVulkan::processDeviceEvent(UnityGfxDeviceEventType, IUnityInterfaces*)+692) /
Looks like it most likely tied to this part of the c++ library
https://github.com/rive-app/rive-runtime/blob/main/renderer/rive_vk_bootstrap/src/vulkan_device.cpp
While switching to OpenGLES3 fixes the issue on device we are sadly unable to do that as a solution for our project.
Unity 2022.3
Rive Package: 0.4.2 (was originally on 0.3.8 but upgrading yielded the same results)
Android 16 (we have seen this how on other android versions as well)
Samsung Galaxy A06 (Should crash on any android running the Mali gpu)