Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug Vulkan crash editor with 2021.3.6f1

Discussion in 'General Graphics' started by JuuJuuJ, Aug 8, 2022.

  1. JuuJuuJ

    JuuJuuJ

    Joined:
    Jul 25, 2022
    Posts:
    1
    The editor crashes constantly when using the Vulkan API.

    It crashes after 2 to 10 mins. After that it crashes immediately on startup if I reopen the editor.

    Rebooting "helps" in that it gives me 2 to 10 mins again to use the Editor.

    Running on Linux Debian Bullseye with AMD Ryzen 7 5800U.

    The console is spammed with this warning before crashing:
    Vulkan - Suboptimal memory type used for image because of low memory

    Here's the error logs:

    Vulkan - Suboptimal memory type used for image because of low memory
    Vulkan - Suboptimal memory type used for image because of low memory
    Vulkan - Out of memory when trying to allocate swapchain staging image

    =================================================================
    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:
    =================================================================
    0x7fc03813e036 - /home/me/Unity/Hub/Editor/2021.3.6f1/Editor/Data/MonoBleedingEdge/MonoEmbedRuntime/libmonobdwgc-2.0.so :
    0x7fc0380e6d12 - /home/me/Unity/Hub/Editor/2021.3.6f1/Editor/Data/MonoBleedingEdge/MonoEmbedRuntime/libmonobdwgc-2.0.so :
    0x7fc03806c250 - /home/me/Unity/Hub/Editor/2021.3.6f1/Editor/Data/MonoBleedingEdge/MonoEmbedRuntime/libmonobdwgc-2.0.so :
    0x55b76c60190c - /home/me/Unity/Hub/Editor/2021.3.6f1/Editor/Unity :
    0x7fc224519140 - /lib/x86_64-linux-gnu/libpthread.so.0 :
    0x7fc1202aa83f - /usr/lib/x86_64-linux-gnu/libvulkan_radeon.so :
    0x7fc120292d4d - /usr/lib/x86_64-linux-gnu/libvulkan_radeon.so :
    0x7fc1202992dd - /usr/lib/x86_64-linux-gnu/libvulkan_radeon.so :
    0x55b76cc30e3b - /home/me/Unity/Hub/Editor/2021.3.6f1/Editor/Unity :
    0x55b76cbff5bd - /home/me/Unity/Hub/Editor/2021.3.6f1/Editor/Unity :
    0x55b76cbff690 - /home/me/Unity/Hub/Editor/2021.3.6f1/Editor/Unity :
    0x55b76cbdec72 - /home/me/Unity/Hub/Editor/2021.3.6f1/Editor/Unity :
    0x55b76cbefccd - /home/me/Unity/Hub/Editor/2021.3.6f1/Editor/Unity :
    0x55b76cbefa01 - /home/me/Unity/Hub/Editor/2021.3.6f1/Editor/Unity :
    0x55b76cbd40e3 - /home/me/Unity/Hub/Editor/2021.3.6f1/Editor/Unity :
    0x55b76e3d2aef - /home/me/Unity/Hub/Editor/2021.3.6f1/Editor/Unity :
    0x55b76e3d793f - /home/me/Unity/Hub/Editor/2021.3.6f1/Editor/Unity :
    0x55b76e3d7907 - /home/me/Unity/Hub/Editor/2021.3.6f1/Editor/Unity :
    0x55b76e3cc3e6 - /home/me/Unity/Hub/Editor/2021.3.6f1/Editor/Unity :
    0x55b76c83af17 - /home/me/Unity/Hub/Editor/2021.3.6f1/Editor/Unity :
    0x7fc22450dea7 - /lib/x86_64-linux-gnu/libpthread.so.0 :
    0x7fc22443ddef - /lib/x86_64-linux-gnu/libc.so.6 : clone

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

    mjc33

    Joined:
    Oct 9, 2019
    Posts:
    26
    I haven't had a crash yet but the console is being spammed every single frame with warnings for "Vulkan - Suboptimal memory type used for image because of low memory", when I'm just in scene view in the editor. Just the console being spammed with 100 warnings a second makes doing anything pretty difficult.

    I can't find any kind of reference or documentation on this warning, this page is literally the single result in google search (if enclosing the warning in quotes) at the time I write this.

    From looking at the system performance monitor, I'm guessing it's because the scene has used up all 8gb VRAM on my 1070ti and is a couple of gb into shared memory (seems to use a bit more memory than DX11/12). A warning about that is fine, but having that warning shown every single frame is not (unless I am misunderstanding what the warning is about).
     
    Genebris likes this.
  3. ehhimes

    ehhimes

    Joined:
    Nov 7, 2022
    Posts:
    1
    I had this issue. I figured out that I was making a bunch of new Texture2D's which are not destroyed automatically - you need to manually destroy them once they are no longer used or they will cause a memory leak. Figured this out by using Unity's Memory Profiler (https://docs.unity3d.com/Packages/com.unity.memoryprofiler@1.0/manual/index.html) (Profiler showed Texture2D size just kept getting bigger the longer the game was running). I know this was my particular situation but hope it helps someone.