perforce sync crash on UE 5.4.2

Following the installation of a perforce server, everything works at p4v level. When I go to UE5, for each change made, I can push to the remote repository. On the other hand, when I want to sync, ue5 crashes.

I tried so many things but nothing work at all…
I have some clue with log, but I don’t know what can I do to fix it

Thanks for your help !

So with p4v you can submit changes or get revisions without any issues, right? Could you post the UE crash report or the logs? You could also create a new 5.4.2 project from one of the templates, add it to perforce and see if the editor is crashing there as well.

Yes its right. I tried a new template but same crash.

the crash report :

Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x00000000000004b0

UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_CoreUObject
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_AssetTools
UnrealEditor_AssetTools
UnrealEditor_SourceControlWindows
UnrealEditor_SourceControlWindows
UnrealEditor_MainFrame
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_ApplicationCore
UnrealEditor_ApplicationCore
UnrealEditor_ApplicationCore
UnrealEditor_ApplicationCore
user32
user32
UnrealEditor_ApplicationCore
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
kernel32
ntdll

For the log, I can’t share the file but i can show you the last lines :

[2024.06.10-22.14.06:904][729]SourceControl: Error: CommandMessage Commande: Sync, Error: Path ‘C:/Program Files/Epic Games/UE_5.4/Engine/Plugins/Bridge/Content/…’ is not under client’s root ‘C:\Users\Julien\Perforce\runAway_LuuNadmin_Main’.

[2024.06.10-22.14.06:904][729]SourceControl: Message de commande Commande : Sync, Information : C:/Users/Julien/Perforce/runAway_LuuNadmin_Main/runAway/Content/… - file(s) up-to-date.

[2024.06.10-22.14.06:904][729]SourceControl: Message de commande Commande : Sync, Information : C:/Users/Julien/Perforce/runAway_LuuNadmin_Main/runAway/Config/… - file(s) up-to-date.

[2024.06.10-22.14.06:946][729]LogUObjectGlobals: Reloading 419 Package(s):
Asset Name: /Engine/EditorResources/S_Actor
Asset Name: /Engine/EditorResources/S_ReflActorIcon
Asset Name: /Engine/EditorResources/S_BoxReflectionCapture
Asset Name: /Engine/EditorResources/LightIcons/S_LightDirectional
Asset Name: /Engine/EditorResources/LightIcons/S_LightDirectionalMove
Asset Name: /Engine/EditorResources/S_Emitter
Asset Name: /Engine/EditorResources/S_ExpoHeightFog
Asset Name: /Engine/EditorResources/LightIcons/S_LightPoint
Asset Name: /Engine/EditorResources/LightIcons/S_LightPointMove
Asset Name: /Engine/EditorResources/LightIcons/S_LightSpot
[2024.06.10-22.14.06:952][729]LogUObjectHash: Compacting FUObjectHashTables data took 0.18ms
[2024.06.10-22.14.06:974][729]LogUObjectHash: Compacting FUObjectHashTables data took 0.29ms
[2024.06.10-22.14.06:994][729]LogUObjectHash: Compacting FUObjectHashTables data took 0.29ms
[2024.06.10-22.14.07:014][729]LogUObjectHash: Compacting FUObjectHashTables data took 0.29ms
[2024.06.10-22.14.07:034][729]LogUObjectHash: Compacting FUObjectHashTables data took 0.28ms
[2024.06.10-22.14.07:053][729]LogUObjectHash: Compacting FUObjectHashTables data took 0.28ms
[2024.06.10-22.14.07:071][729]LogUObjectHash: Compacting FUObjectHashTables data took 0.28ms
[2024.06.10-22.14.07:088][729]LogUObjectHash: Compacting FUObjectHashTables data took 0.28ms
[2024.06.10-22.14.07:108][729]LogUObjectHash: Compacting FUObjectHashTables data took 0.29ms
[2024.06.10-22.14.07:133][729]LogUObjectHash: Compacting FUObjectHashTables data took 0.30ms
[2024.06.10-22.14.07:164][729]LogUObjectHash: Compacting FUObjectHashTables data took 0.28ms
[2024.06.10-22.14.07:188][729]LogUObjectHash: Compacting FUObjectHashTables data took 0.30ms

“Error: Path ‘C:/Program Files/Epic Games/UE_5.4/Engine/Plugins/Bridge/Content/…’ is not under client’s root ‘C:”

With that you’re trying to sync engine content with a file path, that is not defined under the workspace client root. You could either add the mentioned path to your workspace, or you could check and try to find out why Unreal added content of this folder this to source control.

Unless you made any changes, I recommend to exclude any content of the engine, plugins, default content packs or marketplace assets from source control.

I put all of this path in my .p4ignore and no unreal engine files are in the server ditectory.
Its like a check of the source control because i have this log when i open the project too.

As far I know there’s an .ignore file required for each workspace, so from the current .ignore file that path would be out of scope as it is not defined in the client root.

Btw., here are the log entries that I get with my own 5.4.2 project during start:

LogSourceControl: Attempting ‘p4 client -o DESKTOP-ABCDEFG_UNREAL’
LogSourceControl: Attempting ‘p4 fstat -Or D:/Unreal Projects/UE54VR/Config/DefaultEngine.ini’
LogSourceControl: Uncontrolled asset enumeration started…
LogSourceControl: Uncontrolled asset enumeration finished in 1.017239 seconds (Found 7308 uncontrolled assets)

I activate the debug mod of the editor and I have this kind of crash report :

Unhandled Exception: EXCEPTION_ACCESS_VIOLATION 0x000000070003cfd0

UnrealEditor_Engine!UMaterialInterface::PrecacheDefaultMaterialPSOs() [D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\Materials\Material.cpp:611]
UnrealEditor_Engine!FGlobalComponentRecreateRenderStateContext::~FGlobalComponentRecreateRenderStateContext() [D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\Components\ActorComponent.cpp:362]
UnrealEditor_Engine!UMaterial::PostEditChangePropertyInternal() [D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\Materials\Material.cpp:4755]
UnrealEditor_UnrealEd!UPackageTools::HandlePackageReloaded() [D:\build++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\PackageTools.cpp:1160]
UnrealEditor_UnrealEd!V::TBaseStaticDelegateInstance::ExecuteIfSafe() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:777]
UnrealEditor_CoreUObject!ReloadPackages() [D:\build++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\PackageReload.cpp:798]
UnrealEditor_UnrealEd!UPackageTools::ReloadPackages() [D:\build++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\PackageTools.cpp:949]
UnrealEditor_UnrealEd!UPackageTools::ReloadPackages() [D:\build++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\PackageTools.cpp:647]
UnrealEditor_AssetTools!SyncPathsFromSourceControl() [D:\build++UE5\Sync\Engine\Source\Developer\AssetTools\Private\AssetViewUtils.cpp:2112]
UnrealEditor_AssetTools!AssetViewUtils::SyncRevisionFromSourceControl() [D:\build++UE5\Sync\Engine\Source\Developer\AssetTools\Private\AssetViewUtils.cpp:2148]
UnrealEditor_SourceControlWindows!FSourceControlWindows::SyncRevision() [D:\build++UE5\Sync\Engine\Source\Editor\SourceControlWindows\Private\SourceControlWindows.cpp:192]
UnrealEditor_SourceControlWindows!FSourceControlWindows::SyncLatest() [D:\build++UE5\Sync\Engine\Source\Editor\SourceControlWindows\Private\SourceControlWindows.cpp:171]
UnrealEditor_MainFrame!TBaseFunctorDelegateInstance<FText __cdecl(void),FDefaultDelegateUserPolicy,TFunction<FText __cdecl(void)> >::ExecuteIfSafe() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:870]
UnrealEditor_Slate!FUIAction::Execute() [D:\build++UE5\Sync\Engine\Source\Runtime\Slate\Public\Framework\Commands\UIAction.h:139]
UnrealEditor_Slate!FUICommandList::ExecuteAction() [D:\build++UE5\Sync\Engine\Source\Runtime\Slate\Private\Framework\Commands\UICommandList.cpp:117]
UnrealEditor_Slate!SMenuEntryBlock::OnClicked() [D:\build++UE5\Sync\Engine\Source\Runtime\Slate\Private\Framework\MultiBox\SMenuEntryBlock.cpp:1158]
UnrealEditor_Slate!SMenuEntryBlock::OnMenuItemButtonClicked() [D:\build++UE5\Sync\Engine\Source\Runtime\Slate\Private\Framework\MultiBox\SMenuEntryBlock.cpp:1118]
UnrealEditor_Slate!V::TBaseSPMethodDelegateInstance::Execute() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:281]
UnrealEditor_Slate!SButton::ExecuteOnClick() [D:\build++UE5\Sync\Engine\Source\Runtime\Slate\Private\Widgets\Input\SButton.cpp:465]
UnrealEditor_Slate!SButton::OnMouseButtonUp() [D:\build++UE5\Sync\Engine\Source\Runtime\Slate\Private\Widgets\Input\SButton.cpp:390]
UnrealEditor_Slate!SMenuEntryButton::OnMouseButtonUp() [D:\build++UE5\Sync\Engine\Source\Runtime\Slate\Private\Framework\MultiBox\SMenuEntryBlock.cpp:434]
UnrealEditor_Slate!FEventRouter::Route<FReply,FEventRouter::FToLeafmostPolicy,FPointerEvent,FSlateApplication::RoutePointerUpEvent'::8’::<lambda_2> >() [D:\build++UE5\Sync\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:442]
UnrealEditor_Slate!FSlateApplication::RoutePointerUpEvent() [D:\build++UE5\Sync\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:5279]
UnrealEditor_Slate!FSlateApplication::ProcessMouseButtonUpEvent() [D:\build++UE5\Sync\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:5857]
UnrealEditor_Slate!FSlateApplication::OnMouseUp() [D:\build++UE5\Sync\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:5813]
UnrealEditor_ApplicationCore!FWindowsApplication::ProcessDeferredMessage() [D:\build++UE5\Sync\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:2243]
UnrealEditor_ApplicationCore!FWindowsApplication::DeferMessage() [D:\build++UE5\Sync\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:2750]
UnrealEditor_ApplicationCore!FWindowsApplication::ProcessMessage() [D:\build++UE5\Sync\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:1919]
UnrealEditor_ApplicationCore!FWindowsApplication::AppWndProc() [D:\build++UE5\Sync\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:929]
user32
user32
UnrealEditor_ApplicationCore!FWindowsPlatformApplicationMisc::PumpMessages() [D:\build++UE5\Sync\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsPlatformApplicationMisc.cpp:145]
UnrealEditor!FEngineLoop::Tick() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:5850]
UnrealEditor!GuardedMain() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\Launch.cpp:180]
UnrealEditor!GuardedMainWrapper() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:118]
UnrealEditor!LaunchWindowsStartup() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:258]
UnrealEditor!WinMain() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:298]
UnrealEditor!__scrt_common_main_seh() [D:\a_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
kernel32
ntdll

I think it’s not a problem from perforce but maybe in the plugin or a corrupted material