Description

This is a longstanding and common crash that has occurred since at least the 4.11 release. The error appears to occur while trying to access a .tmp file.

User Descriptions

  • I left unreal unattended for an hour or so and it crashed
  • Imported an FBX file from 3ds max and put the FBX file in the scene. It crashed about three minutes later
  • I was simply importing a NASA file for the MMSEV a space rover obj file.
  • I'm also running Maya 2015, as I'm having to retry a particular FBX import a couple of times to try to get the textures transfer. I also have a couple of reasonably high poly meshes in my level, but nothing too much. I have an ocean surface running. This is the second crash today; I should probably just close Maya.

Source Context

 9       /** A mapping of package name to generated script SHA keys */
   10       TMap<FString, TArray<uint8> > FLinkerSave::PackagesToScriptSHAMap;
   11       
   12       FLinkerSave::FLinkerSave(UPackage* InParent, const TCHAR* InFilename, bool bForceByteSwapping, bool bInSaveUnversioned)
   13       :	FLinker(ELinkerType::Save, InParent, InFilename )
   14       ,	Saver(nullptr)
   15       {
   16       	if (FPlatformProperties::HasEditorOnlyData())
   17       	{
   18       		// Create file saver.
   19       		Saver = IFileManager::Get().CreateFileWriter( InFilename, 0 );
   20       		if( !Saver )
   21       		{
   22 ***** 			UE_LOG(LogLinker, Fatal, TEXT("%s"), *FString::Printf( TEXT("Error opening file '%s'."), InFilename ) );
   23       		}
   24       
   25       		UPackage* Package = dynamic_cast<UPackage*>(LinkerRoot);
Steps to Reproduce
  • Try to save something in the editor with a path that's close to the maximum length on Windows (260 characters). Example from one crash report: love-lips-sponge-face-girl-girl-gifts-heart-heart-heart-valentine-holiday-textures-vector-pictures-wallpapers-desktop-wallpaper-best-wallpapers-desktop-wallpaper-shirokoformat_Auto.uasset (don't ask me)
  • While saving, the editor appends a 32 character GUID to the asset name and stores it in the project's saved folder. Editor crashes if the total length of that path is > 260 characters.
Callstack
Fatal error: [File:D:\Build\++UE4+Release-4.13+Compile\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\LinkerSave.cpp] [Line: 23] 
Error opening file '(redacted).tmp'.

UE4Editor_CoreUObject!FLinkerSave::FLinkerSave() [linkersave.cpp:31]
UE4Editor_CoreUObject!UPackage::Save() [savepackage.cpp:3593]
UE4Editor_UnrealEd!UEditorEngine::Save() [editorengine.cpp:4210]
UE4Editor_UnrealEd!UEditorEngine::SavePackage() [editorengine.cpp:4268]
UE4Editor_UnrealEd!UEditorEngine::Exec_Obj() [editorserver.cpp:4431]
UE4Editor_UnrealEd!UEditorEngine::Exec() [editorserver.cpp:5526]
UE4Editor_UnrealEd!UUnrealEdEngine::Exec() [unrealedsrv.cpp:672]
UE4Editor_UnrealEd!FEditorFileUtils::AutosaveContentPackagesEx() [filehelpers.cpp:2453]
UE4Editor_UnrealEd!FPackageAutoSaver::AttemptAutoSave() [packageautosaver.cpp:206]
UE4Editor_UnrealEd!UUnrealEdEngine::Tick() [unrealedengine.cpp:430]
UE4Editor!FEngineLoop::Tick() [launchengineloop.cpp:3215]
UE4Editor!GuardedMain() [launch.cpp:166]
UE4Editor!GuardedMainWrapper() [launchwindows.cpp:134]
UE4Editor!WinMain() [launchwindows.cpp:210]
UE4Editor!__scrt_common_main_seh() [exe_common.inl:253]
kernel32!BaseThreadInitThunk()
ntdll!RtlUserThreadStart()

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-48711 in the post.

0
Login to Vote

Fixed
ComponentUE - Foundation - Core
Affects Versions4.114.124.134.144.154.16
Target Fix4.18
Fix Commit3616864
Main Commit3620189
Release Commit3643070
CreatedAug 22, 2017
ResolvedAug 29, 2017
UpdatedApr 27, 2018
View Jira Issue