Description

Download offending asset here: [Link Removed]


Error message:

Assertion failed: NewPosition >= 0 [Link Removed] [Line: 452]

Source Context:

  438       	virtual ~FFileHandleWindows()
  439       	{
  440       		CloseHandle(FileHandle);
  441       		FileHandle = NULL;
  442       	}
  443       	virtual int64 Tell() override
  444       	{
  445       		check(IsValid());
  446       		return FileSeek(0, FILE_CURRENT);
  447       	}
  448       	virtual bool Seek(int64 NewPosition) override
  449       	{
  450       		check(IsValid());
  451       		check(NewPosition >= 0);
  452 ***** 		return FileSeek(NewPosition, FILE_BEGIN) != -1;
  453       	}
  454       	virtual bool SeekFromEnd(int64 NewPositionRelativeToEnd = 0) override
  455       	{
  456       		check(IsValid());
  457       		check(NewPositionRelativeToEnd <= 0);
  458       		return FileSeek(NewPositionRelativeToEnd, FILE_END) != -1;
  459       	}
  460       	virtual bool Read(uint8* Destination, int64 BytesToRead) override
  461       	{
  462       		check(IsValid());
  463       		while (BytesToRead)
  464       		{
  465       			check(BytesToRead >= 0);
  466       			int64 ThisSize = FMath::Min<int64>(READWRITE_SIZE, BytesToRead);
  467       			check(Destination);

Most recent user affected CL: 3195953

Logs:
[Link Removed]


CrashReporter User Descriptions:

Steps to Reproduce
  1. Download asset linked in description
  2. Import it with both "Import Morph Targets" and "Keep overlapping vertex" enabled

Result: Crash
Expected: Imports successfully

Note: The import will take a long time, so go get some coffee

Callstack
UE4Editor_Core!FFileHandleWindows::Seek() [windowsplatformfile.cpp:453]
UE4Editor_Core!FArchiveFileWriterGeneric::Seek() [filemanagergeneric.cpp:785]
UE4Editor_CoreUObject!UStruct::SerializeTaggedProperties() [class.cpp:1181]
UE4Editor_CoreUObject!UObject::SerializeScriptProperties() [obj.cpp:1130]
UE4Editor_CoreUObject!UObject::Serialize() [obj.cpp:1064]
UE4Editor_Engine!UMorphTarget::Serialize() [morphmesh.cpp:21]
UE4Editor_CoreUObject!UPackage::Save() [savepackage.cpp:5097]
UE4Editor_UnrealEd!UEditorEngine::Save() [editorengine.cpp:3966]
UE4Editor_UnrealEd!UEditorEngine::SavePackage() [editorengine.cpp:4026]
UE4Editor_UnrealEd!UEditorEngine::Exec_Obj() [editorserver.cpp:4501]
UE4Editor_UnrealEd!UEditorEngine::Exec() [editorserver.cpp:5596]
UE4Editor_UnrealEd!UUnrealEdEngine::Exec() [unrealedsrv.cpp:615]
UE4Editor_UnrealEd!FEditorFileUtils::AutosaveContentPackagesEx() [filehelpers.cpp:2437]
UE4Editor_UnrealEd!FPackageAutoSaver::AttemptAutoSave() [packageautosaver.cpp:189]
UE4Editor_UnrealEd!UUnrealEdEngine::Tick() [unrealedengine.cpp:399]
UE4Editor!FEngineLoop::Tick() [launchengineloop.cpp:2859]
UE4Editor!GuardedMain() [launch.cpp:152]
UE4Editor!GuardedMainWrapper() [launchwindows.cpp:126]
UE4Editor!WinMain() [launchwindows.cpp:202]
UE4Editor!__scrt_common_main_seh() [exe_common.inl:264]
kernel32!BaseThreadInitThunk()
ntdll!RtlUserThreadStart()

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

0
Login to Vote

Won't Fix
CreatedNov 29, 2016
ResolvedAug 18, 2021
UpdatedAug 18, 2021
View Jira Issue