Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Vulkan: Standalone Build crashes, API Compatibility .NET 4.x or Standard 2.0... what to use then?

Discussion in '2019.3 Beta' started by Dreamback, Nov 6, 2019.

  1. Dreamback

    Dreamback

    Joined:
    Jul 29, 2016
    Posts:
    220
    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.
     
  2. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,136
    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.
    https://issuetracker.unity3d.com/product/unity/issues/guid/1193567/
     
  3. Dreamback

    Dreamback

    Joined:
    Jul 29, 2016
    Posts:
    220
    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
     
    Last edited: Nov 7, 2019
  4. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,136
  5. Dreamback

    Dreamback

    Joined:
    Jul 29, 2016
    Posts:
    220
    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)
     
    AwesomeAlexx likes this.
  6. AwesomeAlexx

    AwesomeAlexx

    Joined:
    Jan 30, 2016
    Posts:
    18
    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.
     
  7. canyon_gyh

    canyon_gyh

    Joined:
    Aug 15, 2018
    Posts:
    48
    Hello,
    Did you found a solution ? I get the vulkan crash for android,by unity version 2019-3-7f1
    error:
    Code (CSharp):
    1. 07-08 16:47:13.950  7635  7635 E AndroidRuntime: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xf0
    2. 07-08 16:47:13.950  7635  7635 E AndroidRuntime: Cause: null pointer dereference
    3. 07-08 16:47:13.950  7635  7635 E AndroidRuntime:     x0  0000006ea21b2800  x1  00000000000013a3  x2  0000000000000000  x3  0000000000000002
    4. 07-08 16:47:13.950  7635  7635 E AndroidRuntime:     x4  0000006f534439e0  x5  0000006f534439e0  x6  0000000000004200  x7  0000000000000000
    5. 07-08 16:47:13.950  7635  7635 E AndroidRuntime:     x8  0000006e8df99080  x9  0000000000000002  x10 0000006e5a276ab0  x11 0000000000000000
    6. 07-08 16:47:13.950  7635  7635 E AndroidRuntime:     x12 0000000000000001  x13 0000000000000068  x14 0000000000000002  x15 0000000000000075
    7. 07-08 16:47:13.950  7635  7635 E AndroidRuntime:     x16 0000006e5a292000  x17 00000000ffffffff  x18 00000000ac3b7fa9  x19 0000000000000000
    8. 07-08 16:47:13.950  7635  7635 E AndroidRuntime:     x20 0000000000000000  x21 0000006e5a292000  x22 0000006ea21b2800  x23 0000000000000000
    9. 07-08 16:47:13.950  7635  7635 E AndroidRuntime:     x24 0000006e5a292000  x25 0000006e5a292000  x26 0000000000000000  x27 0000006ea21b2810
    10. 07-08 16:47:13.950  7635  7635 E AndroidRuntime:     x28 00000000ffffffff  x29 0000006ea0efb9a0
    11. 07-08 16:47:13.950  7635  7635 E AndroidRuntime:     sp  0000006ea0efb7b0  lr  0000006ea2f06a54  pc  0000006ea2f06a80
    12. 07-08 16:47:13.950  7635  7635 E AndroidRuntime:
    13. 07-08 16:47:13.950  7635  7635 E AndroidRuntime: backtrace:
    14. 07-08 16:47:13.950  7635  7635 E AndroidRuntime:       #00 pc 00000000000c5a80  /vendor/lib64/hw/vulkan.adreno.so (BuildId: 663114d97fbc9a552f7814467944bb11)
    15. 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)
    16. 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)
    17. 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)
    18. 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)
    19. 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)
    20. 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)
    21. 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)
    22. 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)
    23. 07-08 16:47:13.950  7635  7635 E AndroidRuntime:
    24. 07-08 16:47:13.950  7635  7635 E AndroidRuntime:        at vulkan.0xc5a80(Native Method)
    25. 07-08 16:47:13.950  7635  7635 E AndroidRuntime:        at vulkan.qglinternal::vkEndCommandBuffer(VkCommandBuffer_T*)(vkEndCommandBuffer:388)
    26. 07-08 16:47:13.950  7635  7635 E AndroidRuntime:        at libunity.0x7495d0(Native Method)
    27. 07-08 16:47:13.950  7635  7635 E AndroidRuntime:        at libunity.0x739858(Native Method)
    28. 07-08 16:47:13.950  7635  7635 E AndroidRuntime:        at libunity.0x73889c(Native Method)
    29. 07-08 16:47:13.950  7635  7635 E AndroidRuntime:        at libunity.0x737a2c(Native Method)
    30. 07-08 16:47:13.950  7635  7635 E AndroidRuntime:        at libunity.0x581d1c(Native Method)
    31. 07-08 16:47:13.950  7635  7635 E AndroidRuntime:        at libc.__pthread_start(void*)(__pthread_start:64)
    32. 07-08 16:47:13.950  7635  7635 E AndroidRuntime:        at libc.__start_thread(__start_thread:64)
    33. 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
    34.  
     
    Last edited: Jul 8, 2021