cancel
Showing results for 
Search instead for 
Did you mean: 

Unity 2021.3.2 Vulkan not working.

Updated to Unity 2021.3.2 and the Oculus v39 intergration package and now Vulkan does not load. App just loads a black screen and then crashes.

 

Switching over to OpenGLES3 and it works just fine.

 

Here's the adb logcat of the crash:

 

05-12 16:20:14.325  6222  6294 E CRASH   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
05-12 16:20:14.325  6222  6294 E CRASH   : Version '2021.3.2f1 (d6360bedb9a0)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
05-12 16:20:14.325  6222  6294 E CRASH   : Build fingerprint: 'oculus/hollywood/hollywood:10/QQ3A.200805.001/26242800497100000:user/release-keys'
05-12 16:20:14.325  6222  6294 E CRASH   : Revision: '0'
05-12 16:20:14.325  6222  6294 E CRASH   : ABI: 'arm64'
05-12 16:20:14.325  6222  6294 E CRASH   : Timestamp: 2022-05-12 16:20:14-0700
05-12 16:20:14.325  6222  6294 E CRASH   : pid: 6222, tid: 6294, name: Vulkan Submissi  >>> com.icefallinteractive.projectname <<<
05-12 16:20:14.325  6222  6294 E CRASH   : uid: 10096
05-12 16:20:14.325  6222  6294 E CRASH   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xe8
05-12 16:20:14.325  6222  6294 E CRASH   : Cause: null pointer dereference
05-12 16:20:14.325  6222  6294 E CRASH   :     x0  0000006fa294d800  x1  0000006ebdbb3200  x2  0000000000000000  x3  0000000000000000
05-12 16:20:14.325  6222  6294 E CRASH   :     x4  0000000000000000  x5  00000000ffffffff  x6  0000006fc2f76000  x7  0000006ebdbb3200
05-12 16:20:14.325  6222  6294 E CRASH   :     x8  00000000000000a8  x9  000000708abaafc0  x10 0000000002220200  x11 0000000000000002
05-12 16:20:14.325  6222  6294 E CRASH   :     x12 00000000000000a8  x13 0000000000000000  x14 0000000000000003  x15 00000000000002d2
05-12 16:20:14.325  6222  6294 E CRASH   :     x16 0000000000000000  x17 000000708a9b6800  x18 0000006faf61c000  x19 0000006ebdbb3200
05-12 16:20:14.325  6222  6294 E CRASH   :     x20 0000006fa294d850  x21 00000000000012d3  x22 0000006fa294d800  x23 0000000000000000
05-12 16:20:14.325  6222  6294 E CRASH   :     x24 0000006fc31dd1f0  x25 000000708abaafc0  x26 0000006faf7fb860  x27 00000000000000a8
05-12 16:20:14.325  6222  6294 E CRASH   :     x28 0000000000000001  x29 0000006faf7fba20
05-12 16:20:14.325  6222  6294 E CRASH   :     sp  0000006faf7fb610  lr  0000006fc3096608  pc  0000006fc309663c
05-12 16:20:14.325  6222  6294 E CRASH   :
05-12 16:20:14.325  6222  6294 E CRASH   : backtrace:
05-12 16:20:14.325  6222  6294 E CRASH   :       #00 pc 000000000014063c  /vendor/lib64/hw/vulkan.kona.so (BuildId: 8637bccd054a5cb587d5cdd46a5449bd)
05-12 16:20:14.325  6222  6294 E CRASH   :       #01 pc 00000000000d7c2c  /vendor/lib64/hw/vulkan.kona.so (qglinternal::vkEndCommandBuffer(VkCommandBuffer_T*)+204) (BuildId: 8637bccd054a5cb587d5cdd46a5449bd)
05-12 16:20:14.325  6222  6294 E CRASH   :       #02 pc 00000000007818d4  /data/app/com.icefallinteractive.projectname-UWubjEnmuCuxACwb8SnYIw==/lib/arm64/libunity.so (BuildId: 7839d2df2cf52918d6e7efd67a07b7d48b274662)
05-12 16:20:14.325  6222  6294 E CRASH   :       #03 pc 0000000000770374  /data/app/com.icefallinteractive.projectname-UWubjEnmuCuxACwb8SnYIw==/lib/arm64/libunity.so (BuildId: 7839d2df2cf52918d6e7efd67a07b7d48b274662)
05-12 16:20:14.325  6222  6294 E CRASH   :       #04 pc 000000000076eab8  /data/app/com.icefallinteractive.projectname-UWubjEnmuCuxACwb8SnYIw==/lib/arm64/libunity.so (BuildId: 7839d2df2cf52918d6e7efd67a07b7d48b274662)
05-12 16:20:14.325  6222  6294 E CRASH   :       #05 pc 000000000076e574  /data/app/com.icefallinteractive.projectname-UWubjEnmuCuxACwb8SnYIw==/lib/arm64/libunity.so (BuildId: 7839d2df2cf52918d6e7efd67a07b7d48b274662)
05-12 16:20:14.325  6222  6294 E CRASH   :       #06 pc 00000000002f10ec  /data/app/com.icefallinteractive.projectname-UWubjEnmuCuxACwb8SnYIw==/lib/arm64/libunity.so (BuildId: 7839d2df2cf52918d6e7efd67a07b7d48b274662)
05-12 16:20:14.325  6222  6294 E CRASH   :       #07 pc 00000000000d4884  /apex/com.android.runtime/lib64/
11 REPLIES 11

aurelag
Level 3

Did you report the bug to Unity too ? 

No not yet, wanted to see if anyone else had the same experience. 

emalafeew
Level 4

I just upgraded to that Unity and Vulkan and am getting the same crash, with slightly different callstack

 

backtrace:
05-24 11:58:19.729 8007 8061 E CRASH : #00 pc 000000000013ea04 /vendor/lib64/hw/vulkan.kona.so (BuildId: ce05fa39e0e87292363b45d31eca00c6)
05-24 11:58:19.729 8007 8061 E CRASH : #01 pc 00000000000ede60 /vendor/lib64/hw/vulkan.kona.so (BuildId: ce05fa39e0e87292363b45d31eca00c6)
05-24 11:58:19.729 8007 8061 E CRASH : #02 pc 00000000000c6f28 /vendor/lib64/hw/vulkan.kona.so (qglinternal::vkCmdEndRenderPass(VkCommandBuffer_T*)+24) (BuildId: ce05fa39e0e87292363b45d31eca00c6)

Same problem with a brand new project.  I'm submitting to Oculus bugs

VTDA
Level 3

Try to disable Symmetric Projection and then build again.

Hombresinombre
Level 2

I have the same problem. The strange part is that yesterday worked fine and the only changes i have done to the project is baking some lights and adding a really small script.

I am in unity 2021.3.3 using URP.

 

And if someone could answer me would be great but... How can I get the logs you posted?

Hombresinombre
Level 2

Alright, I could fix it. Though as VTDA said, Symmetric Projection crashes the app, HDR in the URP Asset does too. I just unchecked it and the app works fine.

That does fix it with Unity 2021.3.2f1.  But I can keep that option on and run builds successfully with Unity 2021.2.19.


@Hombresinombre wrote:

And if someone could answer me would be great but... How can I get the logs you posted?


"adb logcat -d" right after it happens, then search for CRASH in output

So circling back to this. I updated to Unity 2021.3.5 and to Oculus plugin V42. I still had the same crash happening when trying to use Vulkan. OpenGL continued to work fine.

I played around with some settings and found that Graphics Jobs being turned on is the culprit here. If I turn it off app runs just fine with Vulkan.

 

Using Vulkan and with Graphics Jobs is causing the crash.

Can anyone confirm this for me? Or is Vulkan and Graphics Jobs working together for everyone?