# Ubuntu Vulkan and OpenGL problems

**URL:** <https://forums.unrealengine.com/t/ubuntu-vulkan-and-opengl-problems/458680>\
**Category:** Rendering\
**Tags:** opengl, vulkan, Linux, unreal-engine, crash, question\
**Created:** [November 21, 2019, 8:39pm UTC](https://forums.unrealengine.com/t/ubuntu-vulkan-and-opengl-problems/458680 "2019-11-21T20:39:27Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_32642fff1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_32642fff1](https://forums.unrealengine.com/u/anonymous_user_32642fff1)\
**Post date:** [November 21, 2019, 8:39pm UTC](https://forums.unrealengine.com/t/ubuntu-vulkan-and-opengl-problems/458680/1 "2019-11-21T20:39:27Z")

</div>

Hi Everyone.

I tried both the latest stable and 4.24 bot got no success.

I followed the guide, how to compile it on my Linux (Ubuntu 19.04), everything went smooth. Then when I start the engine, after a while (not immediately) I got this error:

* * *

## Fatal error: [File:/home/mudlee/Applications/UnrealEngine/Engine/Source/Runtime/VulkanRHI/Private/VulkanMemory.cpp] [Line: 279] Out of Device Memory, Requested=2960.00Kb MemTypeIndex=7 \<\< callstack too long \>\> libUE4Editor-Core.so!FGenericPlatformMisc::RaiseException(unsigned int) [/home/mudlee/Applications/UnrealEngine/Engine/Source/Runtime/Core/Private/GenericPlatform/GenericPlatformMisc.cpp:477] libUE4Editor-Core.so!FOutputDevice::LogfImpl(char16\_t const\*, …) [/home/mudlee/Applications/UnrealEngine/Engine/Source/Runtime/Core/Private/Misc/OutputDevice.cpp:71] libUE4Editor-VulkanRHI.so!VulkanRHI::FDeviceMemoryManager::Alloc(bool, unsigned long, unsigned int, void\*, float, char const\*, unsigned int) [/home/mudlee/Applications/UnrealEngine/Engine/Source/Runtime/VulkanRHI/Private/VulkanMemory.cpp:279] libUE4Editor-VulkanRHI.so!VulkanRHI::FResourceHeapManager::AllocateBuffer(unsigned int, unsigned int, unsigned int, char const\*, unsigned int) [/home/mudlee/Applications/UnrealEngine/Engine/Source/Runtime/VulkanRHI/Private/VulkanMemory.cpp:1505] libUE4Editor-VulkanRHI.so!FVulkanResourceMultiBuffer::FVulkanResourceMultiBuffer(FVulkanDevice\*, unsigned int, unsigned int, unsigned int, FRHIResourceCreateInfo&, FRHICommandListImmediate\*) [/home/mudlee/Applications/UnrealEngine/Engine/Source/Runtime/VulkanRHI/Private/VulkanIndexBuffer.cpp:112] libUE4Editor-VulkanRHI.so!FVulkanVertexBuffer::FVulkanVertexBuffer(FVulkanDevice\*, unsigned int, unsigned int, FRHIResourceCreateInfo&, FRHICommandListImmediate\*) [/home/mudlee/Applications/UnrealEngine/Engine/Source/Runtime/VulkanRHI/Private/VulkanVertexBuffer.cpp:12] libUE4Editor-VulkanRHI.so!FVulkanDynamicRHI::RHICreateVertexBuffer(unsigned int, unsigned int, FRHIResourceCreateInfo&) [/home/mudlee/Applications/UnrealEngine/Engine/Source/Runtime/VulkanRHI/Private/VulkanVertexBuffer.cpp:29] libUE4Editor-VulkanRHI.so!FVulkanDynamicRHI::CreateVertexBuffer\_RenderThread(FRHICommandListImmediate&, unsigned int, unsigned int, FRHIResourceCreateInfo&) [/home/mudlee/Applications/UnrealEngine/Engine/Source/Runtime/VulkanRHI/Public/VulkanDynamicRHI.h:197] libUE4Editor-Renderer.so!FRWBuffer::Initialize(unsigned int, unsigned int, EPixelFormat, unsigned int, char16\_t const\*, FResourceArrayInterface\*) [/home/mudlee/Applications/UnrealEngine/Engine/Source/Runtime/RHI/Public/RHIUtilities.h:221] libUE4Editor-Renderer.so!FDeferredShadingSceneRenderer::ComputeLightGrid(FRHICommandListImmediate&, bool, FSortedLightSetSceneInfo&) [/home/mudlee/Applications/UnrealEngine/Engine/Source/Runtime/Renderer/Private/LightGridInjection.cpp:623] libUE4Editor-Renderer.so!FDeferredShadingSceneRenderer::Render(FRHICommandListImmediate&) [/home/mudlee/Applications/UnrealEngine/Engine/Source/Runtime/Renderer/Private/DeferredShadingRenderer.cpp:1445] libUE4Editor-Renderer.so!RenderViewFamily\_RenderThread(FRHICommandListImmediate&, FSceneRenderer\*) [/home/mudlee/Applications/UnrealEngine/Engine/Source/Runtime/Renderer/Private/SceneRendering.cpp:3473] libUE4Editor-Renderer.so!TEnqueueUniqueRenderCommandType::DoTask(ENamedThreads::Type, TRefCountPtr const&) [/home/mudlee/Applications/UnrealEngine/Engine/Source/Runtime/RenderCore/Public/RenderingThread.h:198] libUE4Editor-Renderer.so!TGraphTask \>::ExecuteTask(TArray \>&, ENamedThreads::Type) [/home/mudlee/Applications/UnrealEngine/Engine/Source/Runtime/Core/Public/Async/TaskGraphInterfaces.h:847] libUE4Editor-Core.so!FNamedTaskThread::ProcessTasksNamedThread(int, bool) [/home/mudlee/Applications/UnrealEngine/Engine/Source/Runtime/Core/Private/Async/TaskGraph.cpp:686] libUE4Editor-Core.so!FNamedTaskThread::ProcessTasksUntilQuit(int) [/home/mudlee/Applications/UnrealEngine/Engine/Source/Runtime/Core/Private/Async/TaskGraph.cpp:582] libUE4Editor-RenderCore.so!RenderingThreadMain(FEvent\*) [/home/mudlee/Applications/UnrealEngine/Engine/Source/Runtime/RenderCore/Private/RenderingThread.cpp:339] libUE4Editor-RenderCore.so!FRenderingThread::Run() [/home/mudlee/Applications/UnrealEngine/Engine/Source/Runtime/RenderCore/Private/RenderingThread.cpp:488] libUE4Editor-Core.so!FRunnableThreadPThread::Run() [/home/mudlee/Applications/UnrealEngine/Engine/Source/Runtime/Core/Private/HAL/PThreadRunnableThread.cpp:25] libUE4Editor-Core.so!FRunnableThreadPThread::\_ThreadProc(void\*) [/home/mudlee/Applications/UnrealEngine/Engine/Source/Runtime/Core/Private/HAL/PThreadRunnableThread.h:177] libpthread.so.0!UnknownFunction(0x9181) libc.so.6!clone(+0x3e)

I tried to run the engine then with -opengl, but then I get this:

```
Trying to force OpenGL RHI but the project does not have it in TargetedRHIs list 

```

What should I do to use either Vulkan or OpenGL?

---

<div class="post-metadata">

**Author:** ![gabor.papp](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gabor.papp](https://forums.unrealengine.com/u/gabor.papp)\
**Post date:** [November 21, 2019, 9:02pm UTC](https://forums.unrealengine.com/t/ubuntu-vulkan-and-opengl-problems/458680/2 "2019-11-21T21:02:23Z")

</div>

You can add OpenGL back by uncommenting `GLSL_430` in `Engine/Config/BaseEngine.ini`.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_32642fff1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_32642fff1](https://forums.unrealengine.com/u/anonymous_user_32642fff1)\
**Post date:** [November 22, 2019, 7:35am UTC](https://forums.unrealengine.com/t/ubuntu-vulkan-and-opengl-problems/458680/3 "2019-11-22T07:35:26Z")

</div>

Worked, thanks! It’s interesting that it’s even marked as deprecated 😮

---

<div class="post-metadata">

**Author:** ![Acheta\_Games](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Acheta\_Games](https://forums.unrealengine.com/u/Acheta_Games)\
**Post date:** [November 22, 2019, 9:35am UTC](https://forums.unrealengine.com/t/ubuntu-vulkan-and-opengl-problems/458680/4 "2019-11-22T09:35:03Z")

</div>

Vulkan is the future, sadly you are running into the same issue I am on some of my machines, your graphics card does not have enough memory. As far as I know this will be looked into but till it is you will be probably stuck on the latest version that would run for you.

Not sure when opengl support will be removed for good.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_32642fff1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_32642fff1](https://forums.unrealengine.com/u/anonymous_user_32642fff1)\
**Post date:** [November 22, 2019, 10:59am UTC](https://forums.unrealengine.com/t/ubuntu-vulkan-and-opengl-problems/458680/5 "2019-11-22T10:59:48Z")

</div>

Oh my. Does this mean that my geforce 1050 is for the past now with its 2GB? 😃 I bought it 2 years ago because that was the cheapest one that supports Vulkan. No you’re saying that its not enough? I mean why?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_32642fff1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_32642fff1](https://forums.unrealengine.com/u/anonymous_user_32642fff1)\
**Post date:** [November 22, 2019, 11:04am UTC](https://forums.unrealengine.com/t/ubuntu-vulkan-and-opengl-problems/458680/6 "2019-11-22T11:04:33Z")

</div>

Oh and btw I had no problems when I used unreal on windows.

---

<div class="post-metadata">

**Author:** ![Acheta\_Games](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Acheta\_Games](https://forums.unrealengine.com/u/Acheta_Games)\
**Post date:** [November 22, 2019, 11:59am UTC](https://forums.unrealengine.com/t/ubuntu-vulkan-and-opengl-problems/458680/7 "2019-11-22T11:59:32Z")

</div>

Windows does not use Vulkan for the engine but DirectX.

As to why. Vulkan is still new and it needs bit of optimization, the engine works fine once you get past the shader compilation, but for that it unfortunately eats all it can eat and more. From what we talked in discord the memory optimization is something that they will have to focus on. 2gb is not such a low memory for it to be an issue.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_32642fff1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_32642fff1](https://forums.unrealengine.com/u/anonymous_user_32642fff1)\
**Post date:** [November 22, 2019, 1:01pm UTC](https://forums.unrealengine.com/t/ubuntu-vulkan-and-opengl-problems/458680/8 "2019-11-22T13:01:08Z")

</div>

I see. Thanks for the answer! I’m looking forward to it 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_32642fff1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_32642fff1](https://forums.unrealengine.com/u/anonymous_user_32642fff1)\
**Post date:** [November 22, 2019, 2:41pm UTC](https://forums.unrealengine.com/t/ubuntu-vulkan-and-opengl-problems/458680/9 "2019-11-22T14:41:08Z")

</div>

One more thing. After starting it, I get endless number of errors of this:

> [2019.11.22-14.39.24:627][744]LogRendererCore: Warning: Query ‘SlateUI’ not ready.

Sorry if it’s out of topic.

---

<div class="post-metadata">

**Author:** ![tyoc213](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tyoc213](https://forums.unrealengine.com/u/tyoc213)\
**Post date:** [March 26, 2020, 6:32am UTC](https://forums.unrealengine.com/t/ubuntu-vulkan-and-opengl-problems/458680/10 "2020-03-26T06:32:01Z")

</div>

Wow, on linux with latest long support drivers from nvidia installed from their site, there is no vulkan support??? this did work for my current needs, but how to get vulkan?

---

<div class="post-metadata">

**Author:** ![Acheta\_Games](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Acheta\_Games](https://forums.unrealengine.com/u/Acheta_Games)\
**Post date:** [March 26, 2020, 11:33am UTC](https://forums.unrealengine.com/t/ubuntu-vulkan-and-opengl-problems/458680/11 "2020-03-26T11:33:31Z")

</div>

It does have Vulkan out of the box but it depends on your GPU, there is a memory issue last time I checked so if you have GPU with less than 2GB things might get a bit unstable, hence the fallback to OpenGL.

From the crash log above “Out of Device Memory” which means it did run out of vram.

---

<div class="post-metadata">

**Author:** ![BodMac](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BodMac](https://forums.unrealengine.com/u/BodMac)\
**Post date:** [May 9, 2020, 4:45am UTC](https://forums.unrealengine.com/t/ubuntu-vulkan-and-opengl-problems/458680/12 "2020-05-09T04:45:30Z")

</div>

You can get the Vulkan drivers now:

sudo apt-get install mesa-vulkan-drivers mesa-vulkan-drivers:i386

---

<div class="post-metadata">

**Author:** ![PureGeShock2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PureGeShock2](https://forums.unrealengine.com/u/PureGeShock2)\
**Post date:** [June 20, 2021, 10:18am UTC](https://forums.unrealengine.com/t/ubuntu-vulkan-and-opengl-problems/458680/13 "2021-06-20T10:18:25Z")

</div>

Just enter this in the terminal: “sudo apt install mesa-vulkan-drivers” and run the editor again.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f8e3bca7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f8e3bca7](https://forums.unrealengine.com/u/anonymous_user_f8e3bca7)\
**Post date:** [August 12, 2021, 10:45pm UTC](https://forums.unrealengine.com/t/ubuntu-vulkan-and-opengl-problems/458680/14 "2021-08-12T22:45:01Z")

</div>

Out of memory, but swap help a lot. When im disablin vulkan to use, editor running better inn linux.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f8e3bca7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f8e3bca7](https://forums.unrealengine.com/u/anonymous_user_f8e3bca7)\
**Post date:** [August 12, 2021, 10:47pm UTC](https://forums.unrealengine.com/t/ubuntu-vulkan-and-opengl-problems/458680/15 "2021-08-12T22:47:36Z")

</div>

otherwise geforce gtx 770 support Vulkan. But the editor crashes when Vulcan is in use.
