Unreal Engine editor 5.5.x Crashes when Perforce select for Revision Control

After selecting Perforce in Revision Control, a crash occurs due to a Segmentation fault. It blames the clang update that was made in UE 5.5 since the Perforce plugin was not updated along with clang. I would be glad if this is fixed or a manual fix is ​​suggested, it is very inconvenient to work now when there is no integration with Perforce
OS: Linux (Debian or Arch does not matter)
UE Version: 5.5.x (on version 5.4.x such a crash does not happen)
Logs:

<FGenericCrashContext>
<RuntimeProperties>
<CrashVersion>3</CrashVersion>
<ExecutionGuid>41BF7351DB6E4352AFCD58FF73E81CBC</ExecutionGuid>
<CrashGUID>UECC-Linux-B524F54022C04A25891FF83C9503DFDB_0000</CrashGUID>
<IsEnsure>false</IsEnsure>
<IsStall>false</IsStall>
<IsAssert>false</IsAssert>
<CrashType>Crash</CrashType>
<ErrorMessage>Caught signal 11 Segmentation fault</ErrorMessage>
<CrashReporterMessage></CrashReporterMessage>
<CrashReporterMessage>Attended</CrashReporterMessage>
<ProcessId>11079</ProcessId>
<SecondsSinceStart>95</SecondsSinceStart>
<IsInternalBuild>false</IsInternalBuild>
<IsPerforceBuild>false</IsPerforceBuild>
<IsWithDebugInfo>true</IsWithDebugInfo>
<IsSourceDistribution>true</IsSourceDistribution>
<GameName>UE-LyraStarterGame</GameName>
<ExecutableName>UnrealEditor</ExecutableName>
<BuildConfiguration>Development</BuildConfiguration>
<GameSessionID></GameSessionID>
<PlatformName>LinuxEditor</PlatformName>
<PlatformFullName>LinuxEditor</PlatformFullName>
<PlatformNameIni>Linux</PlatformNameIni>
<EngineMode>Editor</EngineMode>
<EngineModeEx>Dirty</EngineModeEx>
<DeploymentName></DeploymentName>
<EngineVersion>5.5.4-0+UE5</EngineVersion>
<EngineCompatibleVersion>5.5.4-0+UE5</EngineCompatibleVersion>
<CommandLine> /home/unknown/Gits/Perforce_Prjs/Shooter/LyraStarterGame/LyraStarterGame.uproject</CommandLine>
<LanguageLCID>9</LanguageLCID>
<AppDefaultLocale>en_US</AppDefaultLocale>
<BuildVersion>UE5-CL-0</BuildVersion>
<Symbols>UE5-CL-0-Linux-Development</Symbols>
<IsUERelease>false</IsUERelease>
<IsRequestingExit>false</IsRequestingExit>
<UserName></UserName>
<BaseDir>/home/unknown/Gits/UnrealEngine/Engine/Binaries/Linux/</BaseDir>
<RootDir>/home/unknown/Gits/UnrealEngine/</RootDir>
<MachineId>7E43DD74085C49CFAD61F4E957736939-000003E8</MachineId>
<LoginId>7e43dd74085c49cfad61f4e957736939-000003e8</LoginId>
<EpicAccountId></EpicAccountId>
<SourceContext></SourceContext>
<UserDescription></UserDescription>
<UserActivityHint>Layout=&quot;Document&quot; Label=&quot;Behavior Tree&quot; Content=SGraphEditor</UserActivityHint>
<CrashDumpMode>0</CrashDumpMode>
<GameStateName></GameStateName>
<Misc.NumberOfCores>4</Misc.NumberOfCores>
<Misc.NumberOfCoresIncludingHyperthreads>8</Misc.NumberOfCoresIncludingHyperthreads>
<Misc.Is64bitOperatingSystem>1</Misc.Is64bitOperatingSystem>
<Misc.CPUVendor>GenuineIntel</Misc.CPUVendor>
<Misc.CPUBrand>Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz</Misc.CPUBrand>
<Misc.PrimaryGPUBrand>NVIDIA GeForce GTX 1660 SUPER (NVIDIA UNIX x86_64 Kernel Module</Misc.PrimaryGPUBrand>
<Misc.OSVersionMajor>Manjaro Linux</Misc.OSVersionMajor>
<Misc.OSVersionMinor>6.12.20-2-MANJARO</Misc.OSVersionMinor>
<Misc.AnticheatProvider></Misc.AnticheatProvider>
<MemoryStats.TotalPhysical>33418063872</MemoryStats.TotalPhysical>
<MemoryStats.TotalVirtual>9448923136</MemoryStats.TotalVirtual>
<MemoryStats.PageSize>4096</MemoryStats.PageSize>
<MemoryStats.TotalPhysicalGB>32</MemoryStats.TotalPhysicalGB>
<MemoryStats.AvailablePhysical>11287089152</MemoryStats.AvailablePhysical>
<MemoryStats.AvailableVirtual>32696434688</MemoryStats.AvailableVirtual>
<MemoryStats.UsedPhysical>5227794432</MemoryStats.UsedPhysical>
<MemoryStats.PeakUsedPhysical>5229666304</MemoryStats.PeakUsedPhysical>
<MemoryStats.UsedVirtual>12674220032</MemoryStats.UsedVirtual>
<MemoryStats.PeakUsedVirtual>12678938624</MemoryStats.PeakUsedVirtual>
<MemoryStats.bIsOOM>0</MemoryStats.bIsOOM>
<MemoryStats.OOMAllocationSize>0</MemoryStats.OOMAllocationSize>
<MemoryStats.OOMAllocationAlignment>0</MemoryStats.OOMAllocationAlignment>
<NumMinidumpFramesToIgnore>0</NumMinidumpFramesToIgnore>
<CallStack></CallStack>
<PCallStack>

                               libc.so 0x000078ad4e00e000 + 16f05d          
 libUnrealEditor-PerforceSourceControl 0x000078acd1800000 + 1f5119          
 libUnrealEditor-PerforceSourceControl 0x000078acd1800000 + 1e193f          
 libUnrealEditor-PerforceSourceControl 0x000078acd1800000 + 1f51b5          
 libUnrealEditor-PerforceSourceControl 0x000078acd1800000 + 10acff          
 libUnrealEditor-PerforceSourceControl 0x000078acd1800000 + 105f12          
 libUnrealEditor-PerforceSourceControl 0x000078acd1800000 + 122fc4          
 libUnrealEditor-PerforceSourceControl 0x000078acd1800000 + 10cfae          
                  libUnrealEditor-Core 0x000078ad5a000000 + c39630          
                          UnrealEditor 0x0000000000200000 + 60bc7           
                          UnrealEditor 0x0000000000200000 + 60401           
                  libUnrealEditor-Core 0x000078ad5a000000 + 7c3326          
                  libUnrealEditor-Core 0x000078ad5a000000 + 7ba598          
                  libUnrealEditor-Core 0x000078ad5a000000 + 7ba9fb          
                  libUnrealEditor-Core 0x000078ad5a000000 + 77c1b7          
                  libUnrealEditor-Core 0x000078ad5a000000 + 77ce24          
                  libUnrealEditor-Core 0x000078ad5a000000 + 9d0142          
                  libUnrealEditor-Core 0x000078ad5a000000 + 985ba6          
                  libUnrealEditor-Core 0x000078ad5a000000 + 8dc46a          
                               libc.so 0x000078ad4e00e000 + 9570a           
                               libc.so 0x000078ad4e00e000 + 119aac          
</PCallStack>
<PCallStackHash>4AAEC6EEA9F2740AEDA102AB608ABE53830E0B6D</PCallStackHash>
</RuntimeProperties>
<PlatformProperties>
<CrashSignal>11</CrashSignal>
<CrashSignalName>Segmentation fault</CrashSignalName>
<PlatformCallbackResult>0</PlatformCallbackResult>
<CrashTrigger>0</CrashTrigger>
</PlatformProperties>
<EngineData>
<MatchingDPStatus>LinuxEditorNo errors</MatchingDPStatus>
<RHI.DriverDenylisted>false</RHI.DriverDenylisted>
<RHI.RHIName>Vulkan</RHI.RHIName>
<RHI.AdapterName>NVIDIA GeForce GTX 1660 SUPER</RHI.AdapterName>
<RHI.UserDriverVersion>570.133</RHI.UserDriverVersion>
<RHI.InternalDriverVersion>570.133</RHI.InternalDriverVersion>
<RHI.DriverDate>01-01-01</RHI.DriverDate>
<RHI.FeatureLevel>SM6</RHI.FeatureLevel>
<RHI.GPUVendor>NVIDIA</RHI.GPUVendor>
<RHI.DeviceId>21C4</RHI.DeviceId>
<DeviceProfile.Name>LinuxEditor</DeviceProfile.Name>
</EngineData>
<GameData>
</GameData>
[2025.04.08-14.53.03:659][222]LogSourceControl: Attempting 'p4 clients -u SomeUsername'
[2025.04.08-14.53.04:681][222]LogCore: === Critical error: ===
Unhandled Exception: SIGSEGV: invalid attempt to read memory at address 0x0000000000000000

[2025.04.08-14.53.04:681][222]LogCore: Fatal error!

0x000078ad4e17d05d libc.so.6!UnknownFunction(0x16f05d)
0x000078acd19f5119 libUnrealEditor-PerforceSourceControl.so!StrDict::SetVar(char const*, StrPtr const&) [/var/tmp/114171922/depot/r18.1/p4-bin/../p4/support/strbuf.h:338]
0x000078acd19e193f libUnrealEditor-PerforceSourceControl.so!TransDict::VSetVar(StrPtr const&, StrPtr const&) [/var/tmp/114171922/depot/r18.1/p4-bin/../p4/support/strbuf.h:106]
0x000078acd19f51b5 libUnrealEditor-PerforceSourceControl.so!StrDict::SetArgv(int, char* const*) [/var/tmp/114171922/depot/r18.1/p4-bin/../p4/support/strbuf.h:320]
0x000078acd190acff libUnrealEditor-PerforceSourceControl.so!FPerforceConnection::RunCommand(FString const&, TArray<FString, TSizedDefaultAllocator<32> > const&, TArray<FP4Record, TSizedDefaultAllocator<32> >&, TArray<FSharedBuffer, TSizedDefaultAllocator<32> >*, FSourceControlResultInfo&, TDelegate<bool (), FDefaultDelegateUserPolicy>, bool&, ERunCommandFlags) [/home/unknown/Gits/UnrealEngine/Engine/Source/./../Plugins/Developer/PerforceSourceControl/Source/PerforceSourceControl/Private/PerforceConnection.cpp:1182]
0x000078acd1905f12 libUnrealEditor-PerforceSourceControl.so!FPerforceConnection::GetWorkspaceList(FPerforceConnectionInfo const&, TDelegate<bool (), FDefaultDelegateUserPolicy>, TArray<FString, TSizedDefaultAllocator<32> >&, FSourceControlResultInfo&) [/home/unknown/Gits/UnrealEngine/Engine/Source/./../Plugins/Developer/PerforceSourceControl/Source/PerforceSourceControl/Private/PerforceConnection.h:119]
0x000078acd1922fc4 libUnrealEditor-PerforceSourceControl.so!FPerforceGetWorkspacesWorker::Execute(FPerforceSourceControlCommand&) [/home/unknown/Gits/UnrealEngine/Engine/Source/./../Plugins/Developer/PerforceSourceControl/Source/PerforceSourceControl/Private/PerforceSourceControlOperations.cpp:2205]
0x000078acd190cfae libUnrealEditor-PerforceSourceControl.so!FPerforceSourceControlCommand::DoThreadedWork() [/home/unknown/Gits/UnrealEngine/Engine/Source/./../Plugins/Developer/PerforceSourceControl/Source/PerforceSourceControl/Private/PerforceSourceControlCommand.cpp:30]
0x000078ad5ac39630 libUnrealEditor-Core.so!FQueuedThreadPoolWrapper::FScheduledWork::DoThreadedWork() [/home/unknown/Gits/UnrealEngine/Engine/Source/Runtime/Core/Public/Misc/QueuedThreadPoolWrapper.h:142]
0x0000000000260bc7 UnrealEditor!FQueuedLowLevelThreadPool::AddQueuedWork(IQueuedWork*, EQueuedWorkPriority)::'lambda'()::operator()() const [/home/unknown/Gits/UnrealEngine/Engine/Source/Runtime/Core/Public/Misc/QueuedThreadPoolWrapper.h:484]
0x0000000000260401 UnrealEditor!LowLevelTasks::TTaskDelegate<LowLevelTasks::FTask* (bool), 48u>::TTaskDelegateImpl<void LowLevelTasks::FTask::Init<FQueuedLowLevelThreadPool::AddQueuedWork(IQueuedWork*, EQueuedWorkPriority)::'lambda'()>(char16_t const*, LowLevelTasks::ETaskPriority, FQueuedLowLevelThreadPool::AddQueuedWork(IQueuedWork*, EQueuedWorkPriority)::'lambda'()&&, LowLevelTasks::ETaskFlags)::'lambda'(bool), false>::CallAndMove(LowLevelTasks::TTaskDelegate<LowLevelTasks::FTask* (bool), 48u>&, void*, unsigned int, bool) [/home/unknown/Gits/UnrealEngine/Engine/Source/Runtime/Core/Public/Async/Fundamental/Task.h:499]
0x000078ad5a7c3326 libUnrealEditor-Core.so!LowLevelTasks::FTask::ExecuteTask() [/home/unknown/Gits/UnrealEngine/Engine/Source/Runtime/Core/Public/Async/Fundamental/TaskDelegate.h:308]
0x000078ad5a7ba598 libUnrealEditor-Core.so!LowLevelTasks::FScheduler::ExecuteTask(LowLevelTasks::FTask*) [/home/unknown/Gits/UnrealEngine/Engine/Source/./Runtime/Core/Private/Async/Fundamental/Scheduler.cpp:267]
0x000078ad5a7ba9fb libUnrealEditor-Core.so!LowLevelTasks::FScheduler::TryExecuteTaskFrom<LowLevelTasks::Private::TLocalQueueRegistry<1024U, 1024U>::TLocalQueue, &LowLevelTasks::Private::TLocalQueueRegistry<>::TLocalQueue::Dequeue, false> [/home/unknown/Gits/UnrealEngine/Engine/Source/./Runtime/Core/Private/Async/Fundamental/Scheduler.cpp:457]
0x000078ad5a77c1b7 libUnrealEditor-Core.so!LowLevelTasks::FScheduler::WorkerLoop(LowLevelTasks::Private::FWaitEvent*, LowLevelTasks::Private::TLocalQueueRegistry<1024u, 1024u>::TLocalQueue*, unsigned int, bool) [/home/unknown/Gits/UnrealEngine/Engine/Source/./Runtime/Core/Private/Async/Fundamental/Scheduler.cpp:513]
0x000078ad5a77ce24 libUnrealEditor-Core.so!LowLevelTasks::FScheduler::WorkerMain(LowLevelTasks::Private::FWaitEvent*, LowLevelTasks::Private::TLocalQueueRegistry<1024u, 1024u>::TLocalQueue*, unsigned int, bool) [/home/unknown/Gits/UnrealEngine/Engine/Source/./Runtime/Core/Private/Async/Fundamental/Scheduler.cpp:571]
0x000078ad5a9d0142 libUnrealEditor-Core.so!FThreadImpl::Run() [/home/unknown/Gits/UnrealEngine/Engine/Source/Runtime/Core/Public/Templates/Function.h:470]
0x000078ad5a985ba6 libUnrealEditor-Core.so!FRunnableThreadPThread::Run() [/home/unknown/Gits/UnrealEngine/Engine/Source/./Runtime/Core/Private/HAL/PThreadRunnableThread.cpp:25]
0x000078ad5a8dc46a libUnrealEditor-Core.so!FRunnableThreadPThread::_ThreadProc(void*) [/home/unknown/Gits/UnrealEngine/Engine/Source/Runtime/Core/Private/HAL/PThreadRunnableThread.h:187]
0x000078ad4e0a370a libc.so.6!UnknownFunction(0x95709)
0x000078ad4e127aac libc.so.6!UnknownFunction(0x119aab)

[2025.04.08-14.53.04:691][222]LogExit: Executing StaticShutdownAfterError

I had the same issue in 5.5.4.

It looks like the crash isn’t present in 5.6 anymore, at least it works on my machine(Ubuntu 24.04).

The only workaround i found for 5.5 is to manually download the new toolchain for 5.6 found here:

Specifically v25, 5.5 used v23 i guess the root of the issue lays there.

After downloading move the extracted folder to

Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64

You also have to update the Linux_SDK.json to match the new version found here:

Engine/Config/Linux/Linux_SDK.json

After that i installed the toolchain via RunMe.sh found here:

Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v25_clang-18.1.0-rockylinux8/build/scripts

Lastly clean the build, delete /Intermediate and rebuild the engine from scratch.

I haven’t extensively tested this workaround but perforce works, and everything else i tried also seems to work fine.

I’m not 100% sure if i’ve provided every step of the workaround, took me some time to fix this.

This is indeed an interesting solution, although it simply updated the projects for UE 5.6 because it did not see another option, but your solution should be useful to someone who only needs UE version 5.5