0 votes
by (270 points)

Pico Neo 3 Pro
Unity 2021.3.2
URP 12.1.6
Linear Vulkan
Pico UnityXR SDK 2.0.4
PUI 4.6.3

Problem:
Having an additional overlay camera crashes app on start. Does not happen in OpenGLES

Vulkan Settings:
Multiview (MultiPass shows 1 frame in left eye)
SRGB Write Mode - FALSE
Number of swapchain buffers - 3
Acquire swapchain as late as possible - FALSE
Recycle Command Buffers - TRUE
Apply display rotation during rendering - FALSE

Reproduced in XRToolkit Sample.

0001/01/01 00:00:00.000 -1 -1 Info  --------- beginning of crash
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime FATAL EXCEPTION: main
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime Process: com.UnityTechnologies.XRInteractionToolkitVRExamples, PID: 18355
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime Version '2021.3.2f1 (d6360bedb9a0)', Build type 'Development', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime Build fingerprint: 'Pico/A7H10/PICOA7H10:10/4.6.3/1:user/test-keys'
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime Revision: '0'
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime ABI: 'arm64'
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime Timestamp: 2022-05-26 13:42:03+0100
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime pid: 18355, tid: 18419, name: Vulkan Submissi  >>> com.UnityTechnologies.XRInteractionToolkitVRExamples <<<
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime uid: 10063
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x1e8
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime Cause: null pointer dereference
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime     x0  0000007545100000  x1  00000073b21d0c00  x2  00000000ffffffff  x3  00000073d3472000
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime     x4  00000073d3472000  x5  00000073d3472000  x6  00000000000013a3  x7  0000000000220200
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime     x8  000000754730d6e0  x9  00000073b3711aa0  x10 0000000000000200  x11 00000073b20d06b0
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime     x12 0000000000000000  x13 0000000000000203  x14 0000000000000002  x15 0000000000000000
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime     x16 0000000000000000  x17 00000073fc0a9600  x18 00000073bd63a000  x19 0000007545100010
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime     x20 0000000000000000  x21 00000073b21d0c00  x22 00000000000000a8  x23 0000000000000000
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime     x24 0000007545100000  x25 0000000000000000  x26 00000073b21d0c00  x27 0000000000000090
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime     x28 0000000000000000  x29 00000073bddfe9b0
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime     sp  00000073bddfe640  lr  00000073d35bc9fc  pc  00000073d35bca20
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime 
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime backtrace:
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime       #00 pc 000000000016fa20  /vendor/lib64/hw/vulkan.kona.so (BuildId: de2bd84dbc9f586cec6be83966919ff6)
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime       #01 pc 0000000000107c08  /vendor/lib64/hw/vulkan.kona.so (qglinternal::vkEndCommandBuffer(VkCommandBuffer_T*)+240) (BuildId: de2bd84dbc9f586cec6be83966919ff6)
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime       #02 pc 000000000145a378  /data/app/com.UnityTechnologies.XRInteractionToolkitVRExamples-4f1YPSNOcmlt6ntSjX4Mkg==/lib/arm64/libunity.so (vk::CommandBuffer::End()+456) (BuildId: efb70e10e7b509aa5a842298781c1bee95793473)
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime       #03 pc 000000000144a7c4  /data/app/com.UnityTechnologies.XRInteractionToolkitVRExamples-4f1YPSNOcmlt6ntSjX4Mkg==/lib/arm64/libunity.so (vk::TaskExecutor::DoFlush(VkFence_T*, VkSemaphore_T*, unsigned long, bool)+344) (BuildId: efb70e10e7b509aa5a842298781c1bee95793473)
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime       #04 pc 0000000001448ed4  /data/app/com.UnityTechnologies.XRInteractionToolkitVRExamples-4f1YPSNOcmlt6ntSjX4Mkg==/lib/arm64/libunity.so (vk::TaskExecutor::HandleTaskStream()+1040) (BuildId: efb70e10e7b509aa5a842298781c1bee95793473)
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime       #05 pc 0000000001448994  /data/app/com.UnityTechnologies.XRInteractionToolkitVRExamples-4f1YPSNOcmlt6ntSjX4Mkg==/lib/arm64/libunity.so (vk::TaskExecutor::ThreadEntry(void*)+44) (BuildId: efb70e10e7b509aa5a842298781c1bee95793473)
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime       #06 pc 0000000000b06368  /data/app/com.UnityTechnologies.XRInteractionToolkitVRExamples-4f1YPSNOcmlt6ntSjX4Mkg==/lib/arm64/libunity.so (Thread::RunThreadWrapper(void*)+796) (BuildId: efb70e10e7b509aa5a842298781c1bee95793473)
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime       #07 pc 00000000000e6920  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36) (BuildId: c9ad25a272415816d0f572c8a33665c2)
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime       #08 pc 0000000000084bec  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: c9ad25a272415816d0f572c8a33665c2)
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime 
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime    at vulkan.0x16fa20(Native Method)
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime    at vulkan.qglinternal::vkEndCommandBuffer(VkCommandBuffer_T*)(vkEndCommandBuffer:240)
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime    at libunity.vk::CommandBuffer::End()(End:456)
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime    at libunity.vk::TaskExecutor::DoFlush(VkFence_T*, VkSemaphore_T*, unsigned long, bool)(DoFlush:344)
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime    at libunity.vk::TaskExecutor::HandleTaskStream()(HandleTaskStream:1040)
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime    at libunity.vk::TaskExecutor::ThreadEntry(void*)(ThreadEntry:44)
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime    at libunity.Thread::RunThreadWrapper(void*)(RunThreadWrapper:796)
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime    at libc.__pthread_start(void*)(__pthread_start:36)
2022/05/26 13:42:09.559 18355 18355 Error AndroidRuntime    at libc.__start_thread(__start_thread:64)

1 Answer

0 votes
by (3.8k points)

Vulkan can work out in my project using Unity 2020.3.30 and URP 10.8.1, perhaps your can try lower URP version.

...