UE4Editor crashing on Ubuntu 18.04

Hi everyone, I get this error when I start the UE4Editor.
Do you know why ?

Fatal error: [File:/home/lambert/Projects/UnrealEngine-release/Engine/Source/Runtime/VulkanRHI/Private/VulkanUtil.cpp] [Line: 799] VulkanRHI::vkGetPhysicalDeviceSurfaceFormatsKHR(Device.GetPhysicalHandle(), Surface, &NumFormats, nullptr) failed, VkResult=-3 at /home/lambert/Projects/UnrealEngine-release/Engine/Source/Runtime/VulkanRHI/Private/VulkanSwapChain.cpp:137 with error VK_ERROR_INITIALIZATION_FAILED 0x00007fb78ec4fd3e libUE4Editor-VulkanRHI.so!FVulkanSwapChain::FVulkanSwapChain(VkInstance_T*, FVulkanDevice&, void*, EPixelFormat&, unsigned int, unsigned int, unsigned int*, TArray&, signed char) [/home/lambert/Projects/UnrealEngine-release/Engine/Source/Runtime/VulkanRHI/Private/VulkanSwapChain.cpp:137] 0x00007fb78ec8a159 libUE4Editor-VulkanRHI.so!FVulkanViewport::CreateSwapchain() [/home/lambert/Projects/UnrealEngine-release/Engine/Source/Runtime/VulkanRHI/Private/VulkanViewport.cpp:543] 0x00007fb78ec89d9b libUE4Editor-VulkanRHI.so!FVulkanViewport::FVulkanViewport(FVulkanDynamicRHI*, FVulkanDevice*, void*, unsigned int, unsigned int, bool, EPixelFormat) [/home/lambert/Projects/UnrealEngine-release/Engine/Source/Runtime/VulkanRHI/Private/VulkanViewport.cpp:76] 0x00007fb78ec8f191 libUE4Editor-VulkanRHI.so!FVulkanDynamicRHI::RHICreateViewport(void*, unsigned int, unsigned int, bool, EPixelFormat) [/home/lambert/Projects/UnrealEngine-release/Engine/Source/Runtime/VulkanRHI/Private/VulkanViewport.cpp:809] 0x00007fb791ff510e libUE4Editor-SlateRHIRenderer.so!FSlateRHIRenderer::CreateViewport(TSharedRef) [/home/lambert/Projects/UnrealEngine-release/Engine/Source/Runtime/SlateRHIRenderer/Private/SlateRHIRenderer.cpp:307] 0x00007fb7b8032639 libUE4Editor-SlateCore.so!SWindow::ShowWindow() [/home/lambert/Projects/UnrealEngine-release/Engine/Source/Runtime/SlateCore/Private/Widgets/SWindow.cpp:1302] 0x00007fb74ca451ab libUE4Editor-MainFrame.so!FMainFrameHandler::ShowMainFrameWindow(TSharedRef, bool, bool) const [/home/lambert/Projects/UnrealEngine-release/Engine/Source/Editor/MainFrame/Private/Frame/MainFrameHandler.h:243] 0x00007fb74ca2c8d1 libUE4Editor-MainFrame.so!FMainFrameModule::CreateDefaultMainFrame(bool, bool) [/home/lambert/Projects/UnrealEngine-release/Engine/Source/Editor/MainFrame/Private/MainFrameModule.cpp:228] 0x00007fb7b5ffc35e libUE4Editor-UnrealEd.so!EditorInit(IEngineLoop&) [/home/lambert/Projects/UnrealEngine-release/Engine/Source/Editor/UnrealEd/Private/UnrealEdGlobals.cpp:124] 0x0000000000241980 UE4Editor!GuardedMain(char16_t const*) [/home/lambert/Projects/UnrealEngine-release/Engine/Source/Runtime/Launch/Private/Launch.cpp:156] 0x00007fb7b4307eea libUE4Editor-UnixCommonStartup.so!CommonUnixMain(int, char**, int ()(char16_t const)) [/home/lambert/Projects/UnrealEngine-release/Engine/Source/Runtime/Unix/UnixCommonStartup/Private/UnixCommonStartup.cpp:245] 0x00007fb7b3d2db97 libc.so.6!__libc_start_main(+0xe6) 0x000000000022d029 UE4Editor!_start()

libUE4Editor-Core.so!FGenericPlatformMisc::RaiseException(unsigned int) [/home/lambert/Projects/UnrealEngine-release/Engine/Source/Runtime/Core/Private/GenericPlatform/GenericPlatformMisc.cpp:411]
libUE4Editor-Core.so!FUnixErrorOutputDevice::Serialize(char16_t const*, ELogVerbosity::Type, FName const&) [/home/lambert/Projects/UnrealEngine-release/Engine/Source/Runtime/Core/Private/Unix/UnixErrorOutputDevice.cpp:56]
libUE4Editor-Core.so!FOutputDevice::LogfImpl(char16_t const*, …) [/home/lambert/Projects/UnrealEngine-release/Engine/Source/Runtime/Core/Private/Misc/OutputDevice.cpp:71]
libUE4Editor-Core.so!FDebug::AssertFailed(char const*, char const*, int, char16_t const*, …) [/home/lambert/Projects/UnrealEngine-release/Engine/Source/Runtime/Core/Private/Misc/AssertionMacros.cpp:417]
libUE4Editor-VulkanRHI.so!VulkanRHI::VerifyVulkanResult(VkResult, char const*, char const*, unsigned int) [/home/lambert/Projects/UnrealEngine-release/Engine/Source/Runtime/VulkanRHI/Private/VulkanUtil.cpp:798]
libUE4Editor-VulkanRHI.so!FVulkanSwapChain::FVulkanSwapChain(VkInstance_T*, FVulkanDevice&, void*, EPixelFormat&, unsigned int, unsigned int, unsigned int*, TArray&, signed char) [/home/lambert/Projects/UnrealEngine-release/Engine/Source/Runtime/VulkanRHI/Private/VulkanSwapChain.cpp:137]
libUE4Editor-VulkanRHI.so!FVulkanViewport::CreateSwapchain() [/home/lambert/Projects/UnrealEngine-release/Engine/Source/Runtime/VulkanRHI/Private/VulkanViewport.cpp:543]
libUE4Editor-VulkanRHI.so!FVulkanViewport::FVulkanViewport(FVulkanDynamicRHI*, FVulkanDevice*, void*, unsigned int, unsigned int, bool, EPixelFormat) [/home/lambert/Projects/UnrealEngine-release/Engine/Source/Runtime/VulkanRHI/Private/VulkanViewport.cpp:76]
libUE4Editor-VulkanRHI.so!FVulkanDynamicRHI::RHICreateViewport(void*, unsigned int, unsigned int, bool, EPixelFormat) [/home/lambert/Projects/UnrealEngine-release/Engine/Source/Runtime/VulkanRHI/Private/VulkanViewport.cpp:809]
libUE4Editor-SlateRHIRenderer.so!FSlateRHIRenderer::CreateViewport(TSharedRef) [/home/lambert/Projects/UnrealEngine-release/Engine/Source/Runtime/SlateRHIRenderer/Private/SlateRHIRenderer.cpp:307]
libUE4Editor-SlateCore.so!SWindow::ShowWindow() [/home/lambert/Projects/UnrealEngine-release/Engine/Source/Runtime/SlateCore/Private/Widgets/SWindow.cpp:1302]
libUE4Editor-MainFrame.so!FMainFrameHandler::ShowMainFrameWindow(TSharedRef, bool, bool) const [/home/lambert/Projects/UnrealEngine-release/Engine/Source/Editor/MainFrame/Private/Frame/MainFrameHandler.h:243]
libUE4Editor-MainFrame.so!FMainFrameModule::CreateDefaultMainFrame(bool, bool) [/home/lambert/Projects/UnrealEngine-release/Engine/Source/Editor/MainFrame/Private/MainFrameModule.cpp:228]
libUE4Editor-UnrealEd.so!EditorInit(IEngineLoop&) [/home/lambert/Projects/UnrealEngine-release/Engine/Source/Editor/UnrealEd/Private/UnrealEdGlobals.cpp:124]
UE4Editor!GuardedMain(char16_t const*) [/home/lambert/Projects/UnrealEngine-release/Engine/Source/Runtime/Launch/Private/Launch.cpp:156]
libUE4Editor-UnixCommonStartup.so!CommonUnixMain(int, char**, int ()(char16_t const)) [/home/lambert/Projects/UnrealEngine-release/Engine/Source/Runtime/Unix/UnixCommonStartup/Private/UnixCommonStartup.cpp:245]
libc.so.6!__libc_start_main(+0xe6)

Blockquote

UE4Editor!_start()

I have an Nvidia GeForce GTX 1050 Ti with Max-Q Design and it works with the option -opengl4 !
Thx !

What graphics card and drivers do you have?

VK_ERROR_INITIALIZATION_FAILED Is your error you can try launching the engine with the option -opengl4 to go back to opengl

Edit: Converted this to an answer, just so we can close it.

Since you do have nvidia and recent one of that you should be good with vulkan, consider using newer driver for that card. How to get that highly depends on the distro you are using.

Hi,

I have the same issue (VK_ERROR_INITIALIZATION_FAILED).
If I run vulkaninfo it throws the same error, but if I run sudo vulkaninfo It shows result successfully. So I think it might be something with permissions…

and running with -opengl4 throws Trying to force OpenGL RHI but the project does not have it in TargetedRHIs list.

Be grateful for any advice!

Parameters:

Ubuntu 18.04

GeForce GTX 1050

nvidia-driver-435

Hey, you should create your own question.

My guess is you are using 4.23 right? opengl4 support for the engine itself was removed in that version, which is unfortunate in some cases. I am having the same issue on Quadro graphics as you and so far I was unable to find a workaround, still looking into it. But still create new question or create a bug report.

my solution and maybe work for you. Cheers

my solution and maybe work for you. Cheers