Sync Folder in Content Browser (Perforce) Crashes Editor

link textWe installed Perforce and integrated it with Unreal Engine. All is working well, except when I try to use the Sync feature of Unreal. If I do, the Editor crashes.

I am using UE 4.17.1 with Perforce (P4Admin/NTX64/2017.2/1535556).

This is the log file:

LoginId:7c58ee9249a8c7d883968880d14e2701
EpicAccountId:bf376a806847450484f7d213a76d7916

Access violation - code c0000005 (first/second chance not available)

UE4Editor_UnrealEd!PackageTools::ReloadPackages() [d:\build\++ue4+release-4.17+compile\sync\engine\source\editor\unrealed\private\packagetools.cpp:577]
UE4Editor_UnrealEd!PackageTools::ReloadPackages() [d:\build\++ue4+release-4.17+compile\sync\engine\source\editor\unrealed\private\packagetools.cpp:424]
UE4Editor_ContentBrowser!ContentBrowserUtils::SyncPathsFromSourceControl() [d:\build\++ue4+release-4.17+compile\sync\engine\source\editor\contentbrowser\private\contentbrowserutils.cpp:2129]
UE4Editor_ContentBrowser!TBaseSPMethodDelegateInstance<1,FPathContextMenu,0,TTypeWrapper<void> __cdecl(void)>::Execute() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\core\public\delegates\delegateinstancesimpl.h:327]
UE4Editor_ContentBrowser!TBaseSPMethodDelegateInstance<1,FPathContextMenu,0,void __cdecl(void)>::ExecuteIfSafe() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\core\public\delegates\delegateinstancesimpl.h:434]
UE4Editor_Slate!SMenuEntryBlock::OnClicked() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\slate\private\framework\multibox\smenuentryblock.cpp:1051]
UE4Editor_Slate!SMenuEntryBlock::OnMenuItemButtonClicked() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\slate\private\framework\multibox\smenuentryblock.cpp:1002]
UE4Editor_Slate!TMemberFunctionCaller<SMenuEntryBlock,FReply (__cdecl SMenuEntryBlock::*)(void) __ptr64>::operator()<>() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\core\public\delegates\delegateinstanceinterface.h:165]
UE4Editor_Slate!UE4Tuple_Private::TTupleImpl<TIntegerSequence<unsigned int> >::ApplyAfter<TMemberFunctionCaller<SMenuEntryBlock,FReply (__cdecl SMenuEntryBlock::*)(void) __ptr64> >() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\core\public\templates\tuple.h:497]
UE4Editor_Slate!TBaseSPMethodDelegateInstance<0,SMenuEntryBlock,0,FReply __cdecl(void)>::Execute() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\core\public\delegates\delegateinstancesimpl.h:327]
UE4Editor_Slate!TBaseDelegate<FReply>::Execute() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\core\public\delegates\delegatesignatureimpl.inl:537]
UE4Editor_Slate!SButton::OnMouseButtonUp() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\slate\private\widgets\input\sbutton.cpp:282]
UE4Editor_Slate!SMenuEntryButton::OnMouseButtonUp() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\slate\private\framework\multibox\smenuentryblock.cpp:399]
UE4Editor_Slate!<lambda_1002768c627006711ef2f351a87ec0e7>::operator()() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:5199]
UE4Editor_Slate!FEventRouter::Route<FReply,FEventRouter::FToLeafmostPolicy,FPointerEvent,<lambda_1002768c627006711ef2f351a87ec0e7> >() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:232]
UE4Editor_Slate!FSlateApplication::RoutePointerUpEvent() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:5188]
UE4Editor_Slate!FSlateApplication::ProcessMouseButtonUpEvent() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:5690]
UE4Editor_Slate!FSlateApplication::OnMouseUp() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:5670]
UE4Editor_Core!FWindowsApplication::ProcessDeferredMessage() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\core\private\windows\windowsapplication.cpp:1718]
UE4Editor_Core!FWindowsApplication::DeferMessage() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\core\private\windows\windowsapplication.cpp:2161]
UE4Editor_Core!FWindowsApplication::ProcessMessage() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\core\private\windows\windowsapplication.cpp:881]
UE4Editor_Core!FWindowsApplication::AppWndProc() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\core\private\windows\windowsapplication.cpp:721]
user32
user32
UE4Editor_Core!FWindowsPlatformMisc::PumpMessages() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\core\private\windows\windowsplatformmisc.cpp:1009]
UE4Editor!FEngineLoop::Tick() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\launch\private\launchengineloop.cpp:3151]
UE4Editor!GuardedMain() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\launch\private\launch.cpp:166]
UE4Editor!GuardedMainWrapper() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\launch\private\windows\launchwindows.cpp:134]
UE4Editor!WinMain() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\launch\private\windows\launchwindows.cpp:210]
UE4Editor!__scrt_common_main_seh() [f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:253]
kernel32
ntdll

I can sync using the P4V interface, but in Unreal I keep getting this error. I upgraded to the latest version of P4V without success…

In attachment you find the full Crash Report including the log files.

Hello Evarest,

Have you tried adding a new project (based off one of our templates so that there is something on the Content folder) to your Perforce depot to see if it occurs there as well? If this only occurs in your project, how large is your project? How big is the folder that you’re trying to sync when this happens? Have you tried syncing smaller folders or single assets?

Thanks Matthew for your reply!

We have this problem with a VR template based project. We did some minor changes before we started using Perforce. It basically is the VR Template…

The project itself is only 900mb, not big at all. I tried with syncing just indiv files and still the error happened.

Given that we are under pressure in time, and have to work remote, we decided to go for now for SVN. I did however test to sync using the P4V interface. That did work. It seems like there is some issue with the Sync button in the Editor…

The odd part is that I sync through the editor on a daily basis, when testing different issues, and have not had any issues. From looking at the log, you seem to be attempting to sync a lot of files that do not already exist in the project. The in-editor sync tools are meant to sync changes made to files that already exist and could be running into problems trying to add new assets, as the issue is related to an access violation. The logs mention attempting to load a map prior to the crash happening. It’s possible that it is trying to load a map that references assets that have not yet been synced.

We now ported all the versioning to Subversion using TortoiseSVN. However, the crashing still happens.

We did however find some pattern in the crashes. When we select all the folders manually in the content browser, we can right-click and click Sync. When we do the same but just right-click on the top folder (Content) and select Sync, it crashes.

We do have 1 folder that we did not put in the SVN: StarterContent. We made sure that all other files and folders are there. We also kept the BuiltData files in SVN (which I assume should not be there).

For now, we fix it with selecting all the folders in the content browser. At least that seems not to give problems :slight_smile:

Hello Evarest, I cannot think of another way to fix this, as it does seem like it was related to trying to sync too many things at once, so I believe that fix will have to suffice.

Finding the same issue in 5.1. Selecting and syncing all folders did not work. Crash trace is:

Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x00007ffc00014343

UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_Kismet
UnrealEditor_Kismet
UnrealEditor_Kismet
UnrealEditor_Kismet
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_CoreUObject
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_AssetTools
UnrealEditor_ContentBrowserAssetDataSource
UnrealEditor_ContentBrowserAssetDataSource
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