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

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?

=================================================================
    Native Crash Reporting
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

=================================================================
    Native stacktrace:
=================================================================
    0x7fdb4f11550e - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Data/MonoBleedingEdge/MonoEmbedRuntime/libmonobdwgc-2.0.so :
    0x7fdb4f0bdf89 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Data/MonoBleedingEdge/MonoEmbedRuntime/libmonobdwgc-2.0.so :
    0x7fdb4f043410 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Data/MonoBleedingEdge/MonoEmbedRuntime/libmonobdwgc-2.0.so :
    0x563d6b2397cc - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    0x7fdc7c05c9a0 - /lib64/libc.so.6 :
    0x7fdc54da94dc - /lib64/libnvidia-glcore.so.550.54.14 :
    0x7fdc54d12755 - /lib64/libnvidia-glcore.so.550.54.14 :
    0x563d6b8be42f - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    0x563d6b8be273 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    0x563d6b8bc137 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    0x563d6b914992 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    0x563d6b915ec1 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    0x563d6b8d52c8 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    0x563d6d159ac6 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    0x563d6d156eff - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    0x563d6d156e87 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    0x563d6d156bb6 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    0x563d6b4c369b - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    0x7fdc7c0ac897 - /lib64/libc.so.6 :
    0x7fdc7c13380c - /lib64/libc.so.6 :

=================================================================
    Telemetry Dumper:
=================================================================
Thread 0x7fdba0e006c0 may have been prematurely finalized* Assertion at mono-threads.c:702, condition `info' not met, function:mono_thread_info_current,

An error has occured in the native fault reporting. Some diagnostic information will be unavailable.

=================================================================
    Native stacktrace:
=================================================================
    0x7fdb4f11550e - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Data/MonoBleedingEdge/MonoEmbedRuntime/libmonobdwgc-2.0.so :
    0x7fdb4f261972 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Data/MonoBleedingEdge/MonoEmbedRuntime/libmonobdwgc-2.0.so : mono_assertion_message_disabled
    0x7fdb4f256e60 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Data/MonoBleedingEdge/MonoEmbedRuntime/libmonobdwgc-2.0.so :
    0x7fdb4f258338 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Data/MonoBleedingEdge/MonoEmbedRuntime/libmonobdwgc-2.0.so :
    0x7fdb4f2047a6 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Data/MonoBleedingEdge/MonoEmbedRuntime/libmonobdwgc-2.0.so :
    0x7fdb4f1156a1 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Data/MonoBleedingEdge/MonoEmbedRuntime/libmonobdwgc-2.0.so :
    0x7fdb4f0bdf89 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Data/MonoBleedingEdge/MonoEmbedRuntime/libmonobdwgc-2.0.so :
    0x7fdb4f043410 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Data/MonoBleedingEdge/MonoEmbedRuntime/libmonobdwgc-2.0.so :
    0x563d6b2397cc - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    0x7fdc7c05c9a0 - /lib64/libc.so.6 :
    0x7fdc54da94dc - /lib64/libnvidia-glcore.so.550.54.14 :
    0x7fdc54d12755 - /lib64/libnvidia-glcore.so.550.54.14 :
    0x563d6b8be42f - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    0x563d6b8be273 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    0x563d6b8bc137 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    0x563d6b914992 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    0x563d6b915ec1 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    0x563d6b8d52c8 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    0x563d6d159ac6 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    0x563d6d156eff - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    0x563d6d156e87 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    0x563d6d156bb6 - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    0x563d6b4c369b - /var/mnt/Apps/Unity/Editor/2022.3.20f1/Editor/Unity :
    0x7fdc7c0ac897 - /lib64/libc.so.6 :
    0x7fdc7c13380c - /lib64/libc.so.6 :

=================================================================
    External Debugger Dump:
=================================================================
mono_gdb_render_native_backtraces not supported on this platform, unable to find gdb or lldb

Exiting early due to double fault.
7 Likes

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.

2 Likes

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!

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.

I’ve got the same issue as well. My project uses Vulkan. Switching to 545 fixes it.

Also experiencing this on arch, haven’t tried rolling back yet but this sounds like the exact same problem im having.

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 :smile:

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.

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

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.

Same, but strangely not on every project. Driver version: 550.67

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…

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.

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.

I think this may be this upstream bug issue.

1 Like

+1 this appears to have solved my issue as well, on Fedora 40.

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 :face_with_spiral_eyes:

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. :frowning:

2 Likes

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:

9898263–1429419–Editor.log.txt (244 KB)

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.

Any news on this crash? Been this way for months now! Wayland + Nvidia + 555 drivers that have explicit sync is a really nice combo but sadly any drivers >535 are crashing Unity when Vulkan is used or HDRP for that matter.