cancel
Showing results for 
Search instead for 
Did you mean: 

Crash using Vulkan and Unity 2019.3.5f1

BSFishy
Honored Guest
I am using Unity 2019.3.5f1 and Oculus to try to make a game for the Quest. I am getting an issue, though, when I try to build and run it. It works perfectly fine in the editor, but when I try to build and run it, it just crashes. In the headset, it just shows the three loading dots endlessly. Looking at logcat, I see this:

03-17 22:03:01.990 12772 12821 E CRASH   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
03-17 22:03:01.990 12772 12821 E CRASH : Version '2019.3.5f1 (d691e07d38ef)', Build type 'Development', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
03-17 22:03:01.990 12772 12821 E CRASH : Build fingerprint: 'oculus/vr_monterey/monterey:7.1.1/NGI77B/507240.20940.0:user/release-keys'
03-17 22:03:01.990 12772 12821 E CRASH : Revision: '0'
03-17 22:03:01.990 12772 12821 E CRASH : ABI: 'arm64'
03-17 22:03:01.990 12772 12821 E CRASH : Timestamp: 2020-03-17 22:03:01-0500
03-17 22:03:01.990 12772 12821 E CRASH : pid: 12772, tid: 12821, name: Thread-4 >>> [app] <<<
03-17 22:03:01.990 12772 12821 E CRASH : uid: 10085
03-17 22:03:01.990 12772 12821 E CRASH : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x40
03-17 22:03:01.990 12772 12821 E CRASH : Cause: null pointer dereference
03-17 22:03:01.990 12772 12821 E CRASH : x0 0000000000000000 x1 0000000000000001 x2 0000000000000000 x3 0000000000000000
03-17 22:03:01.990 12772 12821 E CRASH : x4 0000000000000000 x5 0000007f4b5cc020 x6 0000000100000001 x7 0000000100000000
03-17 22:03:01.990 12772 12821 E CRASH : x8 0000000000000000 x9 0000000000000001 x10 0000000000000000 x11 0000007f741f7800
03-17 22:03:01.990 12772 12821 E CRASH : x12 0000000000000030 x13 0000000000000000 x14 0000000000000000 x15 0000000000000000
03-17 22:03:01.990 12772 12821 E CRASH : x16 0000000000000000 x17 0000000000000002 x18 0000000000000003 x19 0000007f4cb64700
03-17 22:03:01.990 12772 12821 E CRASH : x20 0000007f495a5df0 x21 0000007f4b5cc020 x22 0000000000000000 x23 0000000000000000
03-17 22:03:01.990 12772 12821 E CRASH : x24 0000000000000000 x25 0000000000000000 x26 0000000000000000 x27 0000000000008600
03-17 22:03:01.990 12772 12821 E CRASH : x28 0000000000000001 x29 0000007f495a5d10
03-17 22:03:01.990 12772 12821 E CRASH : sp 0000007f495a5d10 lr 0000007f4a983d9c pc 0000007f4a983dfc
03-17 22:03:01.990 12772 12821 E CRASH :
03-17 22:03:01.990 12772 12821 E CRASH : backtrace:
03-17 22:03:01.990 12772 12821 E CRASH : #00 pc 0000000000052dfc /system/vendor/lib64/hw/vulkan.msm8998.so (BuildId: 3050a5a136fd0919bd4f51654d5cf42d)
03-17 22:03:01.990 12772 12821 E CRASH : #01 pc 00000000000265e4 /system/vendor/lib64/hw/vulkan.msm8998.so (qglinternal::vkCreateImageView(VkDevice_T*, VkImageViewCreateInfo const*, VkAllocationCallbacks const*, VkImageView_T**)+516) (BuildId: 3050a5a136fd0919bd4f51654d5cf42d)
03-17 22:03:01.990 12772 12821 E CRASH : #02 pc 00000000007abc3c /data/app/[app]-2/lib/arm64/libunity.so (vk::ImageManager::CreateFoveationImageViewFromExternalNativeImage(VkImage_T*, TextureDimension)+168) (BuildId: b819fc4a63b52dfe5e17d34e51f546121a14e50c)
03-17 22:03:01.990 12772 12821 E CRASH : #03 pc 00000000007a2dc4 /data/app/[app]-2/lib/arm64/libunity.so (vk::RenderSurface::CreateColorSurfaceImpl(vk::RenderSurface*, vk::CommandBuffer*, vk::ImageManager&, GraphicsFormat, VkExtent3D, int, bool, VkImage_T*, vk::Image*, vk::Image*)+464) (BuildId: b819fc4a63b52dfe5e17d34e51f546121a14e50c)
03-17 22:03:01.990 12772 12821 E CRASH : #04 pc 00000000007a2be0 /data/app/[app]-2/lib/arm64/libunity.so (vk::RenderSurface::CreateColorSurfacePlatform(vk::RenderSurface*, vk::CommandBuffer*, vk::ImageManager&, GraphicsFormat, bool, VkImage_T*)+116) (BuildId: b819fc4a63b52dfe5e17d34e51f546121a14e50c)
03-17 22:03:01.990 12772 12821 E CRASH : #05 pc 0000000000d5ef08 /data/app/[app]-2/lib/arm64/libunity.so (GfxDeviceWorker::RunCommand(ThreadedStreamBuffer&)+25664) (BuildId: b819fc4a63b52dfe5e17d34e51f546121a14e50c)
03-17 22:03:01.990 12772 12821 E CRASH : #06 pc 0000000000d61054 /data/app/[app]-2/lib/arm64/libunity.so (GfxDeviceWorker::RunExt(ThreadedStreamBuffer&)+44) (BuildId: b819fc4a63b52dfe5e17d34e51f546121a14e50c)
03-17 22:03:01.990 12772 12821 E CRASH : #07 pc 0000000000d6101c /data/app/[app]-2/lib/arm64/libunity.so (GfxDeviceWorker::Run()+136) (BuildId: b819fc4a63b52dfe5e17d34e51f546121a14e50c)
03-17 22:03:01.991 12772 12821 E CRASH : #08 pc 0000000000d58878 /data/app/[app]-2/lib/arm64/libunity.so (GfxDeviceWorker::RunGfxDeviceWorker(void*)+4) (BuildId: b819fc4a63b52dfe5e17d34e51f546121a14e50c)
03-17 22:03:01.991 12772 12821 E CRASH : #09 pc 00000000005e97e8 /data/app/[app]-2/lib/arm64/libunity.so (Thread::RunThreadWrapper(void*)+512) (BuildId: b819fc4a63b52dfe5e17d34e51f546121a14e50c)
03-17 22:03:01.991 12772 12821 E CRASH : #10 pc 0000000000076454 /system/lib64/libc.so (__pthread_start(void*)+204) (BuildId: 0d82b5085cc8358649be6ff5d14ed691)
03-17 22:03:01.991 12772 12821 E CRASH : #11 pc 000000000001e204 /system/lib64/libc.so (__start_thread+16) (BuildId: 0d82b5085cc8358649be6ff5d14ed691)

When I change the graphics API to use OpenGLES3 over Vulkan, it starts perfectly fine.

The Oculus XR Plugin is version 1.2.0 and the SDK is version 1.46.0. Not sure where to go with this... Any help is appreciated!
1 REPLY 1

jpasek
Explorer
Vulkan is experimental for Quest in 2019.3. Refer to this post for more details: forum.unity.com/threads/2019-3-release-xr-updates.821637/