Forum Discussion
justin.wasilenko
3 years agoProtege
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/13 Replies
Replies have been turned off for this discussion
- aurelagExplorer
Did you report the bug to Unity too ?
- justin.wasilenkoProtege
No not yet, wanted to see if anyone else had the same experience.
- emalafeewProtege
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
- VTDAExplorer
Try to disable Symmetric Projection and then build again.
- emalafeewProtege
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.
- HombresinombreExplorer
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?
- emalafeewProtege
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
- HombresinombreExplorer
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.
- P_SSHonored Guest
Disabling Symmetric Projection worked for me! Also allowed me to keep my textures compression format in ASTC.
- passing.hereExplorer
Is it better to not use Vulkan then to disabling Symmetric Projection?
- justin.wasilenkoProtege
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?
- justin.wasilenkoProtege
Yep here is a Unity developer confirming this:
So this undocumented setting should be better known.
- SeeyamHonored Guest
Turning off Graphics Jobs works for me as well. Thanks a lot! justin.wasilenko
Unity Version: 2021.3.5
Vulkan API
Quest 2
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 5 days ago
- 4 years agoAnonymous
- 5 years ago