Error while packaging project for Linux

Hi! While building my project for Linux x64 I encountered this error: The instruction at ... referenced memory at ... . Memory cannot be Read
But the log showed:

UbaSessionServer - ASSERT: ERROR: Access violation reading at address: 0x000002C2FE003FDC
CALLSTACK:
UbaDetours.dll: +0x4ace
ucrtbase.dll: +0x3d189
ucrtbase.dll: +0x14a0c
ucrtbase.dll: +0x1488b
ucrtbase.dll: +0x14844
ucrtbase.dll: +0x14e01
combase.dll: +0x188b0d
combase.dll: +0x188b2d
combase.dll: +0xdfa3c
combase.dll: +0xdf513
combase.dll: +0xdf05b
combase.dll: +0xde603 
combase.dll: +0x1dc7be 
combase.dll: +0x7b070 
combase.dll: +0x7ba66 
combase.dll: +0x7b45b
[2/4] Compile MyFirst_Game.cpp
[3/4] Link (lld) MyFirst_Game-Linux-Shipping
ASSERT: ERROR: Access violation reading at address: 0x000002C2FE003FDC 
CALLSTACK: 
UbaDetours.dll: +0x4ace 
ucrtbase.dll: +0x3d189 
ucrtbase.dll: +0x14a0c 
ucrtbase.dll: +0x1488b 
ucrtbase.dll: +0x14844 
ucrtbase.dll: +0x14e01 
combase.dll: +0x188b0d 
combase.dll: +0x188b2d 
combase.dll: +0xdfa3c 
combase.dll: +0xdf513 
combase.dll: +0xdf05b 
combase.dll: +0xde603 
combase.dll: +0x1dc7be 
combase.dll: +0x7b070 
combase.dll: +0x7ba66 
combase.dll: +0x7b45b
Failed to read file: 'C:\Users\soroc\Documents\Unreal Projects\MyFirst_Game\Intermediate\Build\Linux\x64\MyFirst_Game\Shipping\MyFirst_Game-Linux-Shipping.psym'
Failed to parse 'C:\Users\soroc\Documents\Unreal Projects\MyFirst_Game\Intermediate\Build\Linux\x64\MyFirst_Game\Shipping\MyFirst_Game-Linux-Shipping.psym'
[4/4] WriteMetadata MyFirst_Game-Linux-Shipping.target (UBA disabled)
Trace written to file C:/Users/soroc/AppData/Roaming/Unreal Engine/AutomationTool/Logs/C+Program+Files+Epic+Games+UE_5.6/UBA-MyFirst_Game-Linux-Shipping_2.uba with size 5.0kb
Total time in Unreal Build Accelerator local executor: 24.16 seconds
Failed to produce item: C:\Users\soroc\Documents\Unreal Projects\MyFirst_Game\Binaries\Linux\MyFirst_Game-Linux-Shipping.sym

Result: Failed (OtherCompilationError)
Total execution time: 27.51 seconds
Took 27.58s to run dotnet.exe, ExitCode=6
UnrealBuildTool failed. See log for more details. (C:\Users\soroc\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.6\UBA-MyFirst_Game-Linux-Shipping_2.txt)
AutomationTool executed for 0h 0m 29s
AutomationTool exiting with ExitCode=6 (6)
BUILD FAILED

Moreover, this error also occurs when trying to pack projects from the Starter Kit. What could be the problem? How can this be solved?

1 Like

Hello there @Andrew_Sor!

Checking through your log, the conflict seems to be related to UBA functionality, considering the lines below:

UbaSessionServer - ASSERT: ERROR: Access violation reading at address: 0x000002C2FE003FDC
UbaDetours.dll
ucrtbase.dll
combase.dll

Please test packaging your project with UBA disabled, via going to Project Settings > Platforms > Linux > Uncheck “Use Unreal Build Accelerator”.

After that, clear your project’s cache, by deleting folders “Intermediate” and “Binaries” from your main directory.

As an extra measue, I would make sure that platform support is enabled for this build. Please go to UE’ s Library, and ensure that Linux is checked under target platform.

1 Like

Unfortunately, I couldn’t find this checkbox…
Linux checked in target platforms in Epic Game Launcher in UE settings. But I checked it recently, first I installed Unreal Engine without it…

1 Like

I have the same issue in 5.5.4. I also cannot find the checkbox he is referring to. Just making a fake .sym file and putting it where the manifest expects a sym file to be seemed to allow me to package at least but it would not allow for proper debugging.

How did you make the fake .sym file? I tried creating an empty file with that name, but it didn’t help…

Since I didn’t get any information on where to disable UBA, I found and followed this tutorial:

Now my project builds fine. But I would like to know what UBA is responsible for?

2 Likes

I’m following this thread. After making changes in BuildConfiguration.xml . I’m building a linux based Dedicated Game Server, I’m using Engine Source Build . I cleaned the intermediates and binaries and rebuilding the project again .
Will let here know how it worked.