Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Bug Unity editor crashes frequently on Linux+Vulkan after updating GPU drivers

Discussion in 'Editor & General Support' started by ivarhill, Mar 3, 2024.

  1. ivarhill

    ivarhill

    Joined:
    Dec 20, 2012
    Posts:
    10
    After updating my GPU drivers today, the Unity editor crashes very frequently - sometimes right as soon as it opens, sometimes after switching layouts, and every time if trying to open a window such as the project settings.

    My system and Unity setup is as follows:
    • OS: Fedora Silverblue 39, GNOME 45, Wayland (though issue occurs on X11 as well)
    • GPU: Nvidia RTX 3090Ti with proprietary drivers version 550.54.14
    • Unity Hub through Flatpak, Unity Pro license activated
    • Editor using Vulkan
    • Editor versions 2022.3.0f1 and 2022.3.20f1 have both been tested with the same issue
    At the end of this post, I have included the output I get when running the editor in a terminal with `-LogFile` right as it crashes. There are no relevant lines before this segment, but if there's a way to enable more verbose logging I'd happily do so!

    I have also tried creating a new, empty project, and the issue occurs there as well. It does _not_ seem to crash - or at least not as often - under OpenGL, but for unrelated reasons that is not an option in my case.

    Does anyone have any thoughts as to what initial steps to troubleshoot this might be?

    Code (CSharp):
    1. =================================================================
    2.     Native Crash Reporting
    3. =================================================================
    4. Got a SIGSEGV while executing native code. This usually indicates
    5. a fatal error in the mono runtime or one of the native libraries
    6. used by your application.
    7. =================================================================
    8.  
    9. =================================================================
    10.     Native stacktrace:
    11. =================================================================
    12.     0x7fdb4f11550e - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Data/MonoBleedingEdge/MonoEmbedRuntime/libmonobdwgc-2.0.so :
    13.     0x7fdb4f0bdf89 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Data/MonoBleedingEdge/MonoEmbedRuntime/libmonobdwgc-2.0.so :
    14.     0x7fdb4f043410 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Data/MonoBleedingEdge/MonoEmbedRuntime/libmonobdwgc-2.0.so :
    15.     0x563d6b2397cc - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    16.     0x7fdc7c05c9a0 - /lib64/libc.so.6 :
    17.     0x7fdc54da94dc - /lib64/libnvidia-glcore.so.550.54.14 :
    18.     0x7fdc54d12755 - /lib64/libnvidia-glcore.so.550.54.14 :
    19.     0x563d6b8be42f - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    20.     0x563d6b8be273 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    21.     0x563d6b8bc137 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    22.     0x563d6b914992 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    23.     0x563d6b915ec1 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    24.     0x563d6b8d52c8 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    25.     0x563d6d159ac6 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    26.     0x563d6d156eff - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    27.     0x563d6d156e87 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    28.     0x563d6d156bb6 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    29.     0x563d6b4c369b - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    30.     0x7fdc7c0ac897 - /lib64/libc.so.6 :
    31.     0x7fdc7c13380c - /lib64/libc.so.6 :
    32.  
    33. =================================================================
    34.     Telemetry Dumper:
    35. =================================================================
    36. Thread 0x7fdba0e006c0 may have been prematurely finalized* Assertion at mono-threads.c:702, condition `info' not met, function:mono_thread_info_current,
    37.  
    38. An error has occured in the native fault reporting. Some diagnostic information will be unavailable.
    39.  
    40. =================================================================
    41.    Native stacktrace:
    42. =================================================================
    43.    0x7fdb4f11550e - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Data/MonoBleedingEdge/MonoEmbedRuntime/libmonobdwgc-2.0.so :
    44.    0x7fdb4f261972 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Data/MonoBleedingEdge/MonoEmbedRuntime/libmonobdwgc-2.0.so : mono_assertion_message_disabled
    45.    0x7fdb4f256e60 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Data/MonoBleedingEdge/MonoEmbedRuntime/libmonobdwgc-2.0.so :
    46.    0x7fdb4f258338 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Data/MonoBleedingEdge/MonoEmbedRuntime/libmonobdwgc-2.0.so :
    47.    0x7fdb4f2047a6 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Data/MonoBleedingEdge/MonoEmbedRuntime/libmonobdwgc-2.0.so :
    48.    0x7fdb4f1156a1 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Data/MonoBleedingEdge/MonoEmbedRuntime/libmonobdwgc-2.0.so :
    49.    0x7fdb4f0bdf89 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Data/MonoBleedingEdge/MonoEmbedRuntime/libmonobdwgc-2.0.so :
    50.    0x7fdb4f043410 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Data/MonoBleedingEdge/MonoEmbedRuntime/libmonobdwgc-2.0.so :
    51.    0x563d6b2397cc - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    52.    0x7fdc7c05c9a0 - /lib64/libc.so.6 :
    53.    0x7fdc54da94dc - /lib64/libnvidia-glcore.so.550.54.14 :
    54.    0x7fdc54d12755 - /lib64/libnvidia-glcore.so.550.54.14 :
    55.    0x563d6b8be42f - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    56.    0x563d6b8be273 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    57.    0x563d6b8bc137 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    58.    0x563d6b914992 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    59.    0x563d6b915ec1 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    60.    0x563d6b8d52c8 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    61.    0x563d6d159ac6 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    62.    0x563d6d156eff - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    63.    0x563d6d156e87 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    64.    0x563d6d156bb6 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    65.    0x563d6b4c369b - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    66.    0x7fdc7c0ac897 - /lib64/libc.so.6 :
    67.    0x7fdc7c13380c - /lib64/libc.so.6 :
    68.  
    69. =================================================================
    70.    External Debugger Dump:
    71. =================================================================
    72. mono_gdb_render_native_backtraces not supported on this platform, unable to find gdb or lldb
    73.  
    74. Exiting early due to double fault.
    75.  
     
    Last edited: Mar 4, 2024
  2. ivan-trackman

    ivan-trackman

    Joined:
    Jul 22, 2016
    Posts:
    8
    My dev team also experience this issue on Arch Linux (yes, it's not officially supported).
    For now had to downgrade packages to previous nvidia driver.
     
    LunarPenguin and ivarhill like this.
  3. ivarhill

    ivarhill

    Joined:
    Dec 20, 2012
    Posts:
    10
    Thanks for confirming this is not an isolated issue! Indeed rolling back the drivers does work, or simply switching to OpenGL temporarily. From what I've seen this might be fixed in an upcoming Vulkan SDK update, so hoping it will be resolved soon!
     
  4. LunarPenguin

    LunarPenguin

    Joined:
    Jul 9, 2017
    Posts:
    2
    Same issue here (also on Arch), but I get the crash regardless of whether I'm using OpenGL or Vulkan.
    However, rolling back the nvidia drivers to 545.29.06 fixed it for me for now as well.
     
  5. makidrone

    makidrone

    Joined:
    Apr 23, 2018
    Posts:
    3
    I've got the same issue as well. My project uses Vulkan. Switching to 545 fixes it.
     
  6. yumio7

    yumio7

    Joined:
    Oct 8, 2022
    Posts:
    1
    Also experiencing this on arch, haven't tried rolling back yet but this sounds like the exact same problem im having.
     
  7. dvoidis_irongate

    dvoidis_irongate

    Joined:
    Apr 7, 2021
    Posts:
    1
    Same on Manjaro, holding back any system updates until this is resolved. Are we sure this is for nvidia to fix and not unity? I guess its a driver issue, but you never know :D
     
  8. ivarhill

    ivarhill

    Joined:
    Dec 20, 2012
    Posts:
    10
    Can confirm this issue remains on driver version 550.67. Still can't pin down why it seems to sometimes work and sometimes not - at times it doesn't happen for an hour or two, then is back to happening all the time.
     
  9. superblack-yaser

    superblack-yaser

    Joined:
    May 16, 2019
    Posts:
    1
    Can confirm this problem randomly started occurring while using 2023.2.6f1, and no i did not upgrade or change my display driver during this time. It crashes on opening.

    I will note:
    1. I extracted a new copy of unity and the crash occurs on new or existing projects.
    2. I am on ubuntu mantic.
    3. It was working a few days ago just fine.

    Drivers:

    | NVIDIA-SMI 550.54.14 Driver Version: 550.54.14 CUDA Version: 12.4
     
  10. NoTuxNoBux

    NoTuxNoBux

    Joined:
    Oct 2, 2020
    Posts:
    35
    Has someone perhaps already reported this as a Unity bug using the in-editor reporting tool?

    Might take some time for them to look at it, but I don't know if a lot of devs look at the forums for issues like these.
     
  11. Vlandemart

    Vlandemart

    Joined:
    Dec 4, 2016
    Posts:
    4
    Same, but strangely not on every project. Driver version: 550.67
     
  12. tomix1024

    tomix1024

    Joined:
    May 5, 2017
    Posts:
    8
    Nice, downgrading the Nvidia driver from 550 to 545 worked for me as well.

    Do you mind testing to run your project on 550 with `-force-vulkan-layers`?
    In my case, the destruction of an invalid VkImage was attempted during swapchain recreation...
     
  13. kzkkei1201

    kzkkei1201

    Joined:
    Sep 1, 2018
    Posts:
    2
    Had the same problem on EndeavourOS + driver 550.78 on both Wayland and X11 and downgrading to 545 fixed the issue.

    One thing for EndeavourOS users is that you also need to downgrade the kernel. I had to go up to 5.15.
     
  14. unity_02BD60C6EE35B6C98B0A

    unity_02BD60C6EE35B6C98B0A

    Joined:
    Mar 23, 2024
    Posts:
    1
    Tried adding this on 550.40.61 (RTX 3060 on EndeavourOS with Linux kernel 6.9.2-arch1-1, Unity 2022.3.30f1), and surprisingly enough it works! Had some issues downgrading to 545, so tried using `-force-vulkan-layers`, and it works on 550.

    Edit: Some windows still manage to crash unity such as the ProBuilder window, but it's far more stable than it was before adding this.
     
    Last edited: May 29, 2024
  15. NoTuxNoBux

    NoTuxNoBux

    Joined:
    Oct 2, 2020
    Posts:
    35
  16. FortisVenaliter

    FortisVenaliter

    Joined:
    Mar 23, 2013
    Posts:
    51
    +1 this appears to have solved my issue as well, on Fedora 40.
     
  17. LukeStoneHm

    LukeStoneHm

    Joined:
    Oct 24, 2023
    Posts:
    2
    I'm experiencing this. Pop_OS 22.04, 550.67. The `-force-vulkan-layers` flag doesn't seem to do anything.

    Once per boot, I can open my project in OpenGL, then switch to Vulkan within the Editor. That tends to work, but only once per boot :confused:

    If I close the project, it won't open under Vulkan again, and after a reboot, it still won't open. I have to edit the project settings to revert it back to OpenGL.

    So my currently 'workflow' is:
    - ensure project settings is set to OpenGL
    - restart PC
    - start the project (in OpenGL)
    - switch to Vulkan in editor

    Tends to work, but boy is it making sad. :(
     
    patrickalima98 and Vlandemart like this.
  18. patrickalima98

    patrickalima98

    Joined:
    Jul 6, 2023
    Posts:
    3
    I'm using the Pop_OS 22.04, 550.90.07. The `-force-vulkan-layers` flag doesn't seem to do anything for me too, But I can use with -force-glcore. The HIGH Definition don't work with OpenGL.

    I see this erros in my logs:
     

    Attached Files:

  19. morphex

    morphex

    Joined:
    Dec 18, 2012
    Posts:
    115
    Same, vulkan does not work on my side either, same double segfault error. The vulkan layers also seem to not do anything. I am able to randomly open a empty project, but anything other than that , it just insta crashes.
     
  20. Enzi

    Enzi

    Joined:
    Jan 28, 2013
    Posts:
    984
    Any news on this crash? Been this way for months now! Wayland + Nvidia + 555 drivers that have explicit sync is sadly still crashing Unity when Vulkan is used or HDRP for that matter.
     
  21. sloganfett

    sloganfett

    Joined:
    Nov 8, 2021
    Posts:
    1
    Im still experiencing this issue on nvidia 555.42.02 on my debian machine with HDRP projects that are Vulkan dependent.