Unreal Editor crashes on Ubuntu with 20 GB of VRAM

My computer has 20 GB on VRAM but it appears that Unreal Editor still crashes. Can anyone help me figure out why?

The output from STDOUT is exceptionally long - here is the end of it, which does have some errors.

I would appreciate it anyone has some advice on how to keep it running.

I am using Ubuntu 20.04

[2020.05.19-06.15.14:144][  0]LogVulkanRHI: Error: Result failed, VkResult=-3
 at /home/optonox/Applications/UnrealEngine/Engine/Source/Runtime/VulkanRHI/Private/VulkanSwapChain.cpp:493 
 with error VK_ERROR_INITIALIZATION_FAILED
Fatal error: [File:/home/optonox/Applications/UnrealEngine/Engine/Source/Runtime/VulkanRHI/Private/VulkanUtil.cpp] [Line: 786] 
Result failed, VkResult=-3
 at /home/optonox/Applications/UnrealEngine/Engine/Source/Runtime/VulkanRHI/Private/VulkanSwapChain.cpp:493 
 with error VK_ERROR_INITIALIZATION_FAILED
Signal 11 caught.
Malloc Size=65538 LargeMemoryPoolOffset=65554 
CommonUnixCrashHandler: Signal=11
[2020.05.19-06.15.14:175][  0]LogCore: === Critical error: ===
Unhandled Exception: SIGSEGV: invalid attempt to write memory at address 0x0000000000000003

[2020.05.19-06.15.14:175][  0]LogCore: Fatal error: [File:/home/optonox/Applications/UnrealEngine/Engine/Source/Runtime/VulkanRHI/Private/VulkanUtil.cpp] [Line: 786] 
Result failed, VkResult=-3
 at /home/optonox/Applications/UnrealEngine/Engine/Source/Runtime/VulkanRHI/Private/VulkanSwapChain.cpp:493 
 with error VK_ERROR_INITIALIZATION_FAILED
0x00007f58497761df libUE4Editor-VulkanRHI.so!VulkanRHI::VerifyVulkanResult(VkResult, char const*, char const*, unsigned int) [/home/optonox/Applications/UnrealEngine/Engine/Source/Runtime/VulkanRHI/Private/VulkanUtil.cpp:785]
0x00007f58497361a9 libUE4Editor-VulkanRHI.so!FVulkanSwapChain::FVulkanSwapChain(VkInstance_T*, FVulkanDevice&, void*, EPixelFormat&, unsigned int, unsigned int, bool, unsigned int*, TArray<VkImage_T*, TSizedDefaultAllocator<32> >&, signed char, FVulkanSwapChainRecreateInfo*) [/home/optonox/Applications/UnrealEngine/Engine/Source/Runtime/VulkanRHI/Private/VulkanSwapChain.cpp:493]
0x00007f58497782ec libUE4Editor-VulkanRHI.so!FVulkanViewport::CreateSwapchain(FVulkanSwapChainRecreateInfo*) [/home/optonox/Applications/UnrealEngine/Engine/Source/Runtime/VulkanRHI/Private/VulkanViewport.cpp:619]
0x00007f584977c51e libUE4Editor-VulkanRHI.so!FVulkanViewport::RecreateSwapchainFromRT(EPixelFormat) [/home/optonox/Applications/UnrealEngine/Engine/Source/Runtime/VulkanRHI/Private/VulkanViewport.cpp:607]
0x00007f5849781c40 libUE4Editor-VulkanRHI.so!TEnqueueUniqueRenderCommandType<FVulkanDynamicRHI::RHIResizeViewport(FRHIViewport*, unsigned int, unsigned int, bool, EPixelFormat)::ResizeViewportName, FVulkanDynamicRHI::RHIResizeViewport(FRHIViewport*, unsigned int, unsigned int, bool, EPixelFormat)::$_44>::DoTask(ENamedThreads::Type, TRefCountPtr<FGraphEvent> const&) [/home/optonox/Applications/UnrealEngine/Engine/Source/Runtime/RenderCore/Public/RenderingThread.h:195]
0x00007f5849781f2c libUE4Editor-VulkanRHI.so!TGraphTask<TEnqueueUniqueRenderCommandType<FVulkanDynamicRHI::RHIResizeViewport(FRHIViewport*, unsigned int, unsigned int, bool, EPixelFormat)::ResizeViewportName, FVulkanDynamicRHI::RHIResizeViewport(FRHIViewport*, unsigned int, unsigned int, bool, EPixelFormat)::$_44> >::ExecuteTask(TArray<FBaseGraphTask*, TSizedDefaultAllocator<32> >&, ENamedThreads::Type) [/home/optonox/Applications/UnrealEngine/Engine/Source/Runtime/Core/Public/Async/TaskGraphInterfaces.h:849]
0x00007f5884fb2c98 libUE4Editor-Core.so!FNamedTaskThread::ProcessTasksNamedThread(int, bool) [/home/optonox/Applications/UnrealEngine/Engine/Source/Runtime/Core/Private/Async/TaskGraph.cpp:692]
0x00007f5884fb1b43 libUE4Editor-Core.so!FNamedTaskThread::ProcessTasksUntilQuit(int) [/home/optonox/Applications/UnrealEngine/Engine/Source/Runtime/Core/Private/Async/TaskGraph.cpp:586]
0x00007f587fd79d5f libUE4Editor-RenderCore.so!RenderingThreadMain(FEvent*) [/home/optonox/Applications/UnrealEngine/Engine/Source/Runtime/RenderCore/Private/RenderingThread.cpp:340]
0x00007f587fe148e2 libUE4Editor-RenderCore.so!FRenderingThread::Run() [/home/optonox/Applications/UnrealEngine/Engine/Source/Runtime/RenderCore/Private/RenderingThread.cpp:490]
0x00007f5885060347 libUE4Editor-Core.so!FRunnableThreadPThread::Run() [/home/optonox/Applications/UnrealEngine/Engine/Source/Runtime/Core/Private/HAL/PThreadRunnableThread.cpp:25]
0x00007f588502c010 libUE4Editor-Core.so!FRunnableThreadPThread::_ThreadProc(void*) [/home/optonox/Applications/UnrealEngine/Engine/Source/Runtime/Core/Private/HAL/PThreadRunnableThread.h:182]
0x00007f58859b0609 libpthread.so.0!UnknownFunction(0x9608)
0x00007f587be6f103 libc.so.6!clone(+0x42)





0x00007f5884fe876e libUE4Editor-Core.so!FGenericPlatformMisc::RaiseException(unsigned int) [/home/optonox/Applications/UnrealEngine/Engine/Source/Runtime/Core/Private/GenericPlatform/GenericPlatformMisc.cpp:472]
0x00007f588521dde7 libUE4Editor-Core.so!FOutputDevice::LogfImpl(char16_t const*, ...) [/home/optonox/Applications/UnrealEngine/Engine/Source/Runtime/Core/Private/Misc/OutputDevice.cpp:61]
0x00007f58497761df libUE4Editor-VulkanRHI.so!VulkanRHI::VerifyVulkanResult(VkResult, char const*, char const*, unsigned int) [/home/optonox/Applications/UnrealEngine/Engine/Source/Runtime/VulkanRHI/Private/VulkanUtil.cpp:785]
0x00007f58497361a9 libUE4Editor-VulkanRHI.so!FVulkanSwapChain::FVulkanSwapChain(VkInstance_T*, FVulkanDevice&, void*, EPixelFormat&, unsigned int, unsigned int, bool, unsigned int*, TArray<VkImage_T*, TSizedDefaultAllocator<32> >&, signed char, FVulkanSwapChainRecreateInfo*) [/home/optonox/Applications/UnrealEngine/Engine/Source/Runtime/VulkanRHI/Private/VulkanSwapChain.cpp:493]
0x00007f58497782ec libUE4Editor-VulkanRHI.so!FVulkanViewport::CreateSwapchain(FVulkanSwapChainRecreateInfo*) [/home/optonox/Applications/UnrealEngine/Engine/Source/Runtime/VulkanRHI/Private/VulkanViewport.cpp:619]
0x00007f584977c51e libUE4Editor-VulkanRHI.so!FVulkanViewport::RecreateSwapchainFromRT(EPixelFormat) [/home/optonox/Applications/UnrealEngine/Engine/Source/Runtime/VulkanRHI/Private/VulkanViewport.cpp:607]
0x00007f5849781c40 libUE4Editor-VulkanRHI.so!TEnqueueUniqueRenderCommandType<FVulkanDynamicRHI::RHIResizeViewport(FRHIViewport*, unsigned int, unsigned int, bool, EPixelFormat)::ResizeViewportName, FVulkanDynamicRHI::RHIResizeViewport(FRHIViewport*, unsigned int, unsigned int, bool, EPixelFormat)::$_44>::DoTask(ENamedThreads::Type, TRefCountPtr<FGraphEvent> const&) [/home/optonox/Applications/UnrealEngine/Engine/Source/Runtime/RenderCore/Public/RenderingThread.h:195]
0x00007f5849781f2c libUE4Editor-VulkanRHI.so!TGraphTask<TEnqueueUniqueRenderCommandType<FVulkanDynamicRHI::RHIResizeViewport(FRHIViewport*, unsigned int, unsigned int, bool, EPixelFormat)::ResizeViewportName, FVulkanDynamicRHI::RHIResizeViewport(FRHIViewport*, unsigned int, unsigned int, bool, EPixelFormat)::$_44> >::ExecuteTask(TArray<FBaseGraphTask*, TSizedDefaultAllocator<32> >&, ENamedThreads::Type) [/home/optonox/Applications/UnrealEngine/Engine/Source/Runtime/Core/Public/Async/TaskGraphInterfaces.h:849]
0x00007f5884fb2c98 libUE4Editor-Core.so!FNamedTaskThread::ProcessTasksNamedThread(int, bool) [/home/optonox/Applications/UnrealEngine/Engine/Source/Runtime/Core/Private/Async/TaskGraph.cpp:692]
0x00007f5884fb1b43 libUE4Editor-Core.so!FNamedTaskThread::ProcessTasksUntilQuit(int) [/home/optonox/Applications/UnrealEngine/Engine/Source/Runtime/Core/Private/Async/TaskGraph.cpp:586]
0x00007f587fd79d5f libUE4Editor-RenderCore.so!RenderingThreadMain(FEvent*) [/home/optonox/Applications/UnrealEngine/Engine/Source/Runtime/RenderCore/Private/RenderingThread.cpp:340]
0x00007f587fe148e2 libUE4Editor-RenderCore.so!FRenderingThread::Run() [/home/optonox/Applications/UnrealEngine/Engine/Source/Runtime/RenderCore/Private/RenderingThread.cpp:490]
0x00007f5885060347 libUE4Editor-Core.so!FRunnableThreadPThread::Run() [/home/optonox/Applications/UnrealEngine/Engine/Source/Runtime/Core/Private/HAL/PThreadRunnableThread.cpp:25]
0x00007f588502c010 libUE4Editor-Core.so!FRunnableThreadPThread::_ThreadProc(void*) [/home/optonox/Applications/UnrealEngine/Engine/Source/Runtime/Core/Private/HAL/PThreadRunnableThread.h:182]
0x00007f58859b0609 libpthread.so.0!UnknownFunction(0x9608)
0x00007f587be6f103 libc.so.6!clone(+0x42)

[2020.05.19-06.15.14:182][  0]LogExit: Executing StaticShutdownAfterError
Malloc Size=88316 LargeMemoryPoolOffset=153900 
Engine crash handling finished; re-raising signal 11 for the default handler. Good bye.

Not sure if this helps (and I just noticed your query is 2 years old but with no replies :frowning: ) but I fixed an UnrealEditor launch crash by forcing amdgpu driver in grub and then adding a big chunk of main ram as a memory pool for the driver.

Please see my fix here: