Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. We are looking for feedback on the experimental Unity Safe Mode which is aiming to help you resolve compilation errors faster during project startup.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

2018.3.0b12 vulkan editor instant crash on linux

Discussion in '2018.3 Beta' started by miniduck, Nov 30, 2018.

  1. miniduck

    miniduck

    Joined:
    Sep 27, 2012
    Posts:
    117
    On Centos 7.4/7.5 Unity crashes when either launching with -force-vulkan or switching to vulkan only graphics API in the editor.

    Code (CSharp):
    1. 2018.3.0b12/Editor/Unity -force-vulkan
    Machine running Unity does not have internet access so cannot run the submit bug tool.

    From unity log:
    Code (CSharp):
    1. ../../third_party/tcmalloc/chromium/src/tcmalloc.cc:289] Attempt to free invalid pointer 0x16d40793cb50
    2. Receiving unhandled NULL exception
    3. Launching bug reporter
    4. #0  0x007fd5da96dfd8 in tcmalloc::Log(tcmalloc::LogMode, char const*, int, tcmalloc::LogItem, tcmalloc::LogItem, tcmalloc::LogItem, tcmalloc::LogItem)
    5. #1  0x007fd5da979a34 in (anonymous namespace)::InvalidFree(void*)
    6. #2  0x00000000c2cad4 in ShaderLab::Program::~Program()
    7. #3  0x00000000c3b240 in ShaderLab::ShaderState::~ShaderState()
    8. #4  0x00000000c2bbe1 in ShaderLab::Pass::~Pass()
    9. #5  0x00000000c2bc97 in ShaderLab::Pass::Release()
    10. #6  0x00000000c3f2fc in ShaderLab::SubShader::~SubShader()
    11. #7  0x00000000c29210 in ShaderLab::IntShader::~IntShader()
    12. #8  0x00000000b9ee7e in Shader::DestroyAllShaders(dynamic_array<Shader*, 0ul>&)
    13. #9  0x00000000ba33e9 in Shader::ReloadAllShaders()
    14. #10 0x00000000db3465 in GfxDevice::CommonReloadResources(unsigned int)
    15. #11 0x0000000175e679 in ColorSpaceLiveSwitch()
    16. #12 0x00000000a613c6 in ColorSpaceUpdate()
    17. #13 0x00000000a61eef in PlayerSettings::SyncCurrentColorSpace()
    18. #14 0x000000019120e6 in Application::InitializeProject()
    19. #15 0x00000001a8bd6c in InitializeUnity(void*)
    20. #16 0x007fd5e1262eed in g_source_get_time
    21. #17 0x007fd5e12624c9 in g_main_context_dispatch
    22. #18 0x007fd5e1262818 in g_main_context_dispatch
    23. #19 0x007fd5e1262aea in g_main_loop_run
    24. #20 0x007fd5e22204b5 in gtk_main
    25. #21 0x000000004f82d3 in main
    26. #22 0x007fd5d810bc05 in __libc_start_main
    27. #23 0x0000000054d689 in _start
     
  2. PJayB

    PJayB

    Unity Technologies

    Joined:
    Apr 24, 2017
    Posts:
    105
    We did a quick check here on CentOS 7.5 and were unable to reproduce this. What version of the driver do you have installed and graphics card are you using? Is it possible you can submit us a minimal reproducible case via the bug reporter on a machine that does have internet access?

    Also, just to manage expectations, we don't officially support CentOS right now, so if this turns out to be a CentOS-specific issue then we may decide not to fix it. However, we're still interested in a bug report in case this is a bug in our Vulkan implementation or if it's something we can help you work around.
     
    LeonhardP likes this.
  3. miniduck

    miniduck

    Joined:
    Sep 27, 2012
    Posts:
    117
    Many thanks, I will try to get a machine with internet and test

    GeForce GTX 1080
    Driver Version: 390.48
    Vulkan 1.1.77.0 and 1.1.92.1 libraries tested
     
    Last edited: Dec 3, 2018
  4. miniduck

    miniduck

    Joined:
    Sep 27, 2012
    Posts:
    117
    Attaching editor log

    I add vulkan lib to LD_LIBRARY_PATH and launch Unity like this:
    /unity_install/2018.3.0b12/Editor/Unity -force-vulkan
     

    Attached Files:

    • log.txt
      File size:
      170.6 KB
      Views:
      540
unityunity