2018.3.0b12 vulkan editor instant crash on linux

On Centos 7.4/7.5 Unity crashes when either launching with -force-vulkan or switching to vulkan only graphics API in the editor.

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:

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

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.

1 Like

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

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

3953854–338908–log.txt (171 KB)