[Linux][UE5] UnrealEdit crashes on startup

I’ve fixed my problem seems to be not allocating VRAM correctly in the driver and possibly not enabling the amdgpu driver correctly so this is explicit. Can’t see your logs but I’m going to suspect it’s similar:

sudo xed /etc/default/grub

Change this line to include the following. I have 32gb so went crazy and put in 8gb pool from main memory. I also changed the visible VRAM from CPU size to 1024 dunno if this actually did anything but figured it might improve performance:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash amdgpu.cik_support=1 amdgpu.gttsize=8192 amdgpu.vis_vramlimit=1024 amdgpu.gartsize=8192 amdgpu.si_support=1 radeon.si_support=0 radeon.cik_support=0"

then run:

sudo update-grub 

And reboot.

This should force amdgpu driver to be used - source - I’m not sure if the memory pool changes were needed but seemed like a good idea as my error looked like an unhandled out of memory problem: Enable AMDGPU Linux Driver in Debian Ubuntu mint - rtt - IT Resource

Also, I don’t know if this is actually needed but I tweaked the following file based on the linked article:

sudo xed /usr/share/X11/xorg.conf.d/10-amdgpu.conf

With the following from the linked page, I can’t be bothered to test all the variations I just know it loaded OK with these settings :slight_smile:

Section "OutputClass"
    Identifier "AMDgpu"
    MatchDriver "amdgpu"
    Driver "amdgpu"
EndSection

Section "Device"
    Identifier "Card0"
    Driver "amdgpu"
    Option "TearFree" "on"
    Option "DRI3" "1"
EndSection

Take care to ensure that file is EXACT otherwise your startx will fail and you’ll be dumped to a terminal.

Hope this helps, I just wish AMD would actually provide some kind of test environment perhaps with a small OpenGL / Vulkan demo which can be used to test everything is set up correctly and perhaps all you to tweak these parameters but I guess they just like us to guess these things.

Also would be nice if Unreal actually handled this exception corrected and said “hey you’re out of VRAM please go check if your drivers are correctly configured I need X megabytes minimum” but hey ho.

When all of this is done I get the following on the console output in UnrealEditor:

[2022.07.13-17.30.57:867][  0]LogVulkanRHI: Display: 3 Device Memory Heaps:
[2022.07.13-17.30.57:867][  0]LogVulkanRHI: Display:   0: Flags 0x1 - Size 2952790016 (2816.00 MB) - Used 0 (0.00%) - DeviceLocal - PrimaryHeap
[2022.07.13-17.30.57:867][  0]LogVulkanRHI: Display:   1: Flags 0x0 - Size 8589934592 (8192.00 MB) - Used 0 (0.00%)
[2022.07.13-17.30.57:867][  0]LogVulkanRHI: Display:   2: Flags 0x1 - Size 268435456 (256.00 MB) - Used 0 (0.00%) - DeviceLocal
[2022.07.13-17.30.57:867][  0]LogVulkanRHI: Display: 4 Device Memory Types (Not unified):
[2022.07.13-17.30.57:867][  0]LogVulkanRHI: Display:   0: Flags 0x00001 - Heap  0 -  DeviceLocal                                         
[2022.07.13-17.30.57:867][  0]LogVulkanRHI: Display:   1: Flags 0x00006 - Heap  1 -              HostVisible HostCoherent                
[2022.07.13-17.30.57:867][  0]LogVulkanRHI: Display:   3: Flags 0x0000e - Heap  1 -              HostVisible HostCoherent HostCached     
[2022.07.13-17.30.57:867][  0]LogVulkanRHI: Display:   2: Flags 0x00007 - Heap  2 -  DeviceLocal HostVisible HostCoherent                
[2022.07.13-17.30.57:867][  0]LogVulkanRHI: Display: Memory Budget Extension:
[2022.07.13-17.30.57:867][  0]LogVulkanRHI: Display: 	         | Usage                      | Budget           | Size             |
[2022.07.13-17.30.57:867][  0]LogVulkanRHI: Display: 	---------|------------------------------------------------------------------|
[2022.07.13-17.30.57:867][  0]LogVulkanRHI: Display: 	 HEAP 00 |   0.00% /          0.00 MB |       2152.07 MB |       2816.00 MB |
[2022.07.13-17.30.57:867][  0]LogVulkanRHI: Display: 	 HEAP 01 |   0.00% /          0.00 MB |       8125.98 MB |       8192.00 MB |
[2022.07.13-17.30.57:867][  0]LogVulkanRHI: Display: 	 HEAP 02 |   0.10% /          0.25 MB |        198.02 MB |        256.00 MB |
[2022.07.13-17.30.57:867][  0]LogVulkanRHI: Display: 	---------|------------------------------------------------------------------|

So possibly ignored the 1024 but the rest looks good and didn’t appear before.