Description

Engine crashes when asset has been reimported multiple times through the mesh editor
-Editor crashes in Main when reimporting
-Editor crashes in 4.17 when changing the Import Transforms

Steps to Reproduce
  1. Download attached project
  2. Open static mesh SM_grass001
  3. See Transform settings in the Details panel of mesh editor (both Z transforms are set to 100)
  4. Go to Asset < Reimport SM_grass001
  5. Reimport a few times (about 4 or 5)
  6. Note that the grass location changes and eventually resets to its original location
  7. Editor will crash

Expected: Editor does not crash after asset has been reimported multiple times
Results: Editor crashes after asset is reimported multiple times

Callstack
LoginId:bdcd2df1437ec38ad0d19c85e30ff2d1
EpicAccountId:1ed52ca976af4368b6c30d11b7cdc18f

Assertion failed: LightMapCoordinateIndex < (int)GetNumTexCoords() && LightMapCoordinateIndex >= 0 [File:D:\Main Workspace\Engine\Source\Runtime\Engine\Private\Rendering\StaticMeshVertexBuffer.cpp] [Line: 485]

UE4Editor_Core!FDebug::AssertFailed() [d:\main workspace\engine\source\runtime\core\private\misc\assertionmacros.cpp:419]
UE4Editor_Engine!FStaticMeshVertexBuffer::BindLightMapVertexBuffer() [d:\main workspace\engine\source\runtime\engine\private\rendering\staticmeshvertexbuffer.cpp:486]
UE4Editor_Engine!FInstancedStaticMeshRenderData::InitStaticMeshVertexFactories() [d:\main workspace\engine\source\runtime\engine\private\instancedstaticmesh.cpp:610]
UE4Editor_Engine!TGraphTask<TEnqueueUniqueRenderCommandType<`FInstancedStaticMeshRenderData::ReInitVertexFactories'::`2'::CallInitStaticMeshVertexFactoryName,<lambda_419fe0e00f28e07334541444dcd273da> > >::ExecuteTask() [d:\main workspace\engine\source\runtime\core\public\async\taskgraphinterfaces.h:829]
UE4Editor_Core!FNamedTaskThread::ProcessTasksNamedThread() [d:\main workspace\engine\source\runtime\core\private\async\taskgraph.cpp:665]
UE4Editor_Core!FNamedTaskThread::ProcessTasksUntilQuit() [d:\main workspace\engine\source\runtime\core\private\async\taskgraph.cpp:574]
UE4Editor_RenderCore!RenderingThreadMain() [d:\main workspace\engine\source\runtime\rendercore\private\renderingthread.cpp:331]
UE4Editor_RenderCore!FRenderingThread::Run() [d:\main workspace\engine\source\runtime\rendercore\private\renderingthread.cpp:465]
UE4Editor_Core!FRunnableThreadWin::Run() [d:\main workspace\engine\source\runtime\core\private\windows\windowsrunnablethread.cpp:76]
LoginId:bdcd2df1437ec38ad0d19c85e30ff2d1
EpicAccountId:1ed52ca976af4368b6c30d11b7cdc18f

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

UE4Editor_Engine!UHierarchicalInstancedStaticMeshComponent::BuildTreeIfOutdated() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\engine\private\hierarchicalinstancedstaticmesh.cpp:2366]
UE4Editor_Foliage!TBaseRawMethodDelegateInstance<0,FFoliageMeshInfo,void __cdecl(FBoxSphereBounds const & __ptr64)>::ExecuteIfSafe() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\core\public\delegates\delegateinstancesimpl.h:648]
UE4Editor_Engine!TBaseMulticastDelegate<void,FBoxSphereBounds const & __ptr64>::Broadcast() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\core\public\delegates\delegatesignatureimpl.inl:937]
UE4Editor_Engine!UStaticMesh::CalculateExtendedBounds() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\engine\private\staticmesh.cpp:2242]
UE4Editor_Engine!UStaticMesh::Build() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\engine\private\staticmeshbuild.cpp:169]
UE4Editor_Engine!UStaticMesh::PostEditChangeProperty() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\engine\private\staticmesh.cpp:1790]
UE4Editor_CoreUObject!UObject::PostEditChangeChainProperty() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\coreuobject\private\uobject\obj.cpp:436]
UE4Editor_PropertyEditor!FPropertyNode::NotifyPostChange() [d:\build\++ue4+release-4.17+compile\sync\engine\source\editor\propertyeditor\private\propertynode.cpp:2360]
UE4Editor_PropertyEditor!FPropertyValueImpl::ImportText() [d:\build\++ue4+release-4.17+compile\sync\engine\source\editor\propertyeditor\private\propertyhandleimpl.cpp:558]
UE4Editor_PropertyEditor!FPropertyValueImpl::ImportText() [d:\build\++ue4+release-4.17+compile\sync\engine\source\editor\propertyeditor\private\propertyhandleimpl.cpp:358]
UE4Editor_PropertyEditor!FPropertyHandleFloat::SetValue() [d:\build\++ue4+release-4.17+compile\sync\engine\source\editor\propertyeditor\private\propertyhandleimpl.cpp:3106]
UE4Editor_DetailCustomizations!FMathStructCustomization::SetValue<float>() [d:\build\++ue4+release-4.17+compile\sync\engine\source\editor\detailcustomizations\private\mathstructcustomizations.cpp:472]
UE4Editor_DetailCustomizations!FMathStructCustomization::OnValueCommitted<float>() [d:\build\++ue4+release-4.17+compile\sync\engine\source\editor\detailcustomizations\private\mathstructcustomizations.cpp:406]
UE4Editor_DetailCustomizations!TBaseSPMethodDelegateInstance<0,FMathStructCustomization,0,TTypeWrapper<void> __cdecl(float,enum ETextCommit::Type),TWeakPtr<IPropertyHandle,0> >::Execute() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\core\public\delegates\delegateinstancesimpl.h:327]
UE4Editor_DetailCustomizations!TBaseSPMethodDelegateInstance<0,FMathStructCustomization,0,void __cdecl(float,enum ETextCommit::Type),TWeakPtr<IPropertyHandle,0> >::ExecuteIfSafe() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\core\public\delegates\delegateinstancesimpl.h:434]
UE4Editor_DetailCustomizations!SSpinBox<float>::CommitValue() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\slate\public\widgets\input\sspinbox.h:858]
UE4Editor_DetailCustomizations!SSpinBox<float>::TextField_OnTextCommitted() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\slate\public\widgets\input\sspinbox.h:784]
UE4Editor_DetailCustomizations!TBaseSPMethodDelegateInstance<0,SSpinBox<float>,0,TTypeWrapper<void> __cdecl(FText const & __ptr64,enum ETextCommit::Type)>::Execute() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\core\public\delegates\delegateinstancesimpl.h:327]
UE4Editor_DetailCustomizations!TBaseSPMethodDelegateInstance<0,SSpinBox<float>,0,void __cdecl(FText const & __ptr64,enum ETextCommit::Type)>::ExecuteIfSafe() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\core\public\delegates\delegateinstancesimpl.h:434]
UE4Editor_Slate!FSlateEditableTextLayout::HandleFocusLost() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\slate\private\widgets\text\slateeditabletextlayout.cpp:697]
UE4Editor_Slate!FSlateApplication::SetUserFocus() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:2795]
UE4Editor_Slate!FSlateApplication::SetUserFocus() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:2497]
UE4Editor_Slate!FSlateApplication::ProcessReply() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:3191]
UE4Editor_Slate!FEventRouter::Route<FReply,FEventRouter::FBubblePolicy,FPointerEvent,<lambda_7097b900f0e4be30d80fb18f98c51ea0> >() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:233]
UE4Editor_Slate!FSlateApplication::RoutePointerDownEvent() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:5093]
UE4Editor_Slate!FSlateApplication::ProcessMouseButtonDownEvent() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:5050]
UE4Editor_Slate!FSlateApplication::OnMouseDown() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:4968]
UE4Editor_Core!FWindowsApplication::ProcessDeferredMessage() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\core\private\windows\windowsapplication.cpp:1726]
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

Have Comments or More Details?

There's no existing public thread on this issue, so head over toAnswerHub just mention UE-54423 in the post.

6
Login to Vote

Fixed
ComponentTools - Foliage
Affects Versions4.17.24.18.34.194.20
Target Fix4.19
Fix Commit3897036
Main Commit3990065
Release Commit3897036
CreatedJan 24, 2018
ResolvedFeb 19, 2018
UpdatedApr 27, 2018