This known issue “Vulkan: Standalone Build crashes when the build is made with API Compatibility Level with .NET 4.x or .NET Standard 2.0” - aren’t those the only two options now? We’ve been trying to solve Vulkan crashes in our Linux builds, just switched to 2019.3 to see if that helps, but then I see this, and am perplexed. The bug doesn’t list a workaround or anything.
Did you submit bug reports for the crashes that you’re experiencing yet? This particular crash bug was introduced in 2019.3.0b8 and 2020.1.0a10. We have a fix that should be landing in 2019.3 and 2020.1 soon. The workaround for now would be to use a previous version of 2019.3 or 2020.1.
Ah - then the known issue should really be “Vulkan: Standalone Build crashes”, which API compatibility doesn’t matter when the only two ones cause crashes. That’s where my confusion came from (“which is the third API I can choose to not crash, if those two crash?”)
Unfortunately, I cannot submit a bug report yet for the crashes we get in Linux, because I have no idea at all what causes them yet so I can’t create a small project to replicate them (and I can’t send our full project). Our project is very complicated and not only like 15GB but also very sensitive. All I know right now is that it crashes in Unity 2019.1 and 2019.2 with no error but a Vulkan call as the top call in the call stack (though a null exception in Vulkan is mentioned in 2019.1), and it happens when the resolution is too high, or the quality settings too high, or when the app is full screen, or when what we are rendering gets too intensive, or if the editor is running (acting as if it were a memory issue, but doesn’t happen in Windows, and the machine in question has a 1080ti and 128GB RAM).
My current test was to try upgrading to Unity 2019.3 to see if the new HDRP or Vulkan bugfixes will help with the situtation
Here are some related issues that might be the ones you’re experiencing:
Unity Issue Tracker - [Linux] [Vulkan] [HDRP] Crash on DynamicHeapAllocator::Allocate when creating a new project or opening an existing one (fixed in b10)
Unity Issue Tracker - [Vulkan] [Linux] Crash on _nv043glcore when opening an empty HDRP project by forcing Vulkan
I’ve narrowed the Vulkan crash down, happens when there are more than one camera active at the same time. And this particular project can have 3 cameras going at once, including one rendering to a rendertexture, one aimed at a UI RawImage rendering that rendertexture, and a normal camera (all of the cameras have background color sky or solid color)
Hello,
Did you found a solution ?
I’ve got a project using between 2 and 6 cameras and project doesn’t work, but a simple project using HDRP doesn’t work too.
I’ve upgrade from 2019.4.4 to 2020.1.1f1 and HDRP too but nothing changed.
Hello,
Did you found a solution ? I get the vulkan crash for android,by unity version 2019-3-7f1
error:
07-08 16:47:13.950 7635 7635 E AndroidRuntime: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xf0
07-08 16:47:13.950 7635 7635 E AndroidRuntime: Cause: null pointer dereference
07-08 16:47:13.950 7635 7635 E AndroidRuntime: x0 0000006ea21b2800 x1 00000000000013a3 x2 0000000000000000 x3 0000000000000002
07-08 16:47:13.950 7635 7635 E AndroidRuntime: x4 0000006f534439e0 x5 0000006f534439e0 x6 0000000000004200 x7 0000000000000000
07-08 16:47:13.950 7635 7635 E AndroidRuntime: x8 0000006e8df99080 x9 0000000000000002 x10 0000006e5a276ab0 x11 0000000000000000
07-08 16:47:13.950 7635 7635 E AndroidRuntime: x12 0000000000000001 x13 0000000000000068 x14 0000000000000002 x15 0000000000000075
07-08 16:47:13.950 7635 7635 E AndroidRuntime: x16 0000006e5a292000 x17 00000000ffffffff x18 00000000ac3b7fa9 x19 0000000000000000
07-08 16:47:13.950 7635 7635 E AndroidRuntime: x20 0000000000000000 x21 0000006e5a292000 x22 0000006ea21b2800 x23 0000000000000000
07-08 16:47:13.950 7635 7635 E AndroidRuntime: x24 0000006e5a292000 x25 0000006e5a292000 x26 0000000000000000 x27 0000006ea21b2810
07-08 16:47:13.950 7635 7635 E AndroidRuntime: x28 00000000ffffffff x29 0000006ea0efb9a0
07-08 16:47:13.950 7635 7635 E AndroidRuntime: sp 0000006ea0efb7b0 lr 0000006ea2f06a54 pc 0000006ea2f06a80
07-08 16:47:13.950 7635 7635 E AndroidRuntime:
07-08 16:47:13.950 7635 7635 E AndroidRuntime: backtrace:
07-08 16:47:13.950 7635 7635 E AndroidRuntime: #00 pc 00000000000c5a80 /vendor/lib64/hw/vulkan.adreno.so (BuildId: 663114d97fbc9a552f7814467944bb11)
07-08 16:47:13.950 7635 7635 E AndroidRuntime: #01 pc 00000000000731d4 /vendor/lib64/hw/vulkan.adreno.so (qglinternal::vkEndCommandBuffer(VkCommandBuffer_T*)+388) (BuildId: 663114d97fbc9a552f7814467944bb11)
07-08 16:47:13.950 7635 7635 E AndroidRuntime: #02 pc 00000000007495d0 /data/app/~~wQXoYYTyC4ttjWWRaWRXGA==/com.dianyuegame.kesulu--784OVDvSmuS7wMvvP-t3w==/lib/arm64/libunity.so (BuildId: 14b8e251dbf5787f84afd8e222769dab16e9ad52)
07-08 16:47:13.950 7635 7635 E AndroidRuntime: #03 pc 0000000000739858 /data/app/~~wQXoYYTyC4ttjWWRaWRXGA==/com.dianyuegame.kesulu--784OVDvSmuS7wMvvP-t3w==/lib/arm64/libunity.so (BuildId: 14b8e251dbf5787f84afd8e222769dab16e9ad52)
07-08 16:47:13.950 7635 7635 E AndroidRuntime: #04 pc 000000000073889c /data/app/~~wQXoYYTyC4ttjWWRaWRXGA==/com.dianyuegame.kesulu--784OVDvSmuS7wMvvP-t3w==/lib/arm64/libunity.so (BuildId: 14b8e251dbf5787f84afd8e222769dab16e9ad52)
07-08 16:47:13.950 7635 7635 E AndroidRuntime: #05 pc 0000000000737a2c /data/app/~~wQXoYYTyC4ttjWWRaWRXGA==/com.dianyuegame.kesulu--784OVDvSmuS7wMvvP-t3w==/lib/arm64/libunity.so (BuildId: 14b8e251dbf5787f84afd8e222769dab16e9ad52)
07-08 16:47:13.950 7635 7635 E AndroidRuntime: #06 pc 0000000000581d1c /data/app/~~wQXoYYTyC4ttjWWRaWRXGA==/com.dianyuegame.kesulu--784OVDvSmuS7wMvvP-t3w==/lib/arm64/libunity.so (BuildId: 14b8e251dbf5787f84afd8e222769dab16e9ad52)
07-08 16:47:13.950 7635 7635 E AndroidRuntime: #07 pc 00000000000da1b8 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+64) (BuildId: 43df7afeeed62339c206f194d0f2ac61)
07-08 16:47:13.950 7635 7635 E AndroidRuntime: #08 pc 000000000007a488 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 43df7afeeed62339c206f194d0f2ac61)
07-08 16:47:13.950 7635 7635 E AndroidRuntime:
07-08 16:47:13.950 7635 7635 E AndroidRuntime: at vulkan.0xc5a80(Native Method)
07-08 16:47:13.950 7635 7635 E AndroidRuntime: at vulkan.qglinternal::vkEndCommandBuffer(VkCommandBuffer_T*)(vkEndCommandBuffer:388)
07-08 16:47:13.950 7635 7635 E AndroidRuntime: at libunity.0x7495d0(Native Method)
07-08 16:47:13.950 7635 7635 E AndroidRuntime: at libunity.0x739858(Native Method)
07-08 16:47:13.950 7635 7635 E AndroidRuntime: at libunity.0x73889c(Native Method)
07-08 16:47:13.950 7635 7635 E AndroidRuntime: at libunity.0x737a2c(Native Method)
07-08 16:47:13.950 7635 7635 E AndroidRuntime: at libunity.0x581d1c(Native Method)
07-08 16:47:13.950 7635 7635 E AndroidRuntime: at libc.__pthread_start(void*)(__pthread_start:64)
07-08 16:47:13.950 7635 7635 E AndroidRuntime: at libc.__start_thread(__start_thread:64)
07-08 16:47:13.950 3326 3326 D Launcher.Quickstep-TouchInteractionService: onInputEvent: (x,y) = (1130.8594,737.49023), navmode = NO_BUTTON, offsetState = false, displayRotation = 1