Description

This is a common crash affecting users in 4.16, and has occurred since at least 4.14. Over 200 unique users have been affected, though they have provided little information.

User Descriptions

  • I am a complete rookie with the Unreal Engine. When the engine crashed, I selected a material info object to apply to a layer to use to paint a landscape. It is likely that I selected the wrong one, as both had the same name.

Source Context

1982       	// See if the deleted layer is a NoWeightBlend layer - if not, we don't have to worry about normalization
 1983       	const bool bFromLayerIsNoWeightBlend = (FromLayerInfo && FromLayerInfo->bNoWeightBlend);
 1984       	const bool bToLayerIsNoWeightBlend = (ToLayerInfo && ToLayerInfo->bNoWeightBlend);
 1985       
 1986       	const bool bRequireNormalization = (bFromLayerIsNoWeightBlend != bToLayerIsNoWeightBlend);
 1987       	checkf(!bRequireNormalization, TEXT("It is not yet supported to replace a layer with another whose bNoWeightBlend setting does not match"))
 1988       
 1989 ***** 	if (bMerging)
 1990       	{
 1991       		FWeightmapLayerAllocationInfo& ToLayerAllocation = WeightmapLayerAllocations[ToLayerIdx];
 1992       
 1993       		// Lock data for all the weightmaps
 1994       		FLandscapeTextureDataInfo* FromTexDataInfo = LandscapeEdit.GetTextureDataInfo(WeightmapTextures[FromLayerAllocation.WeightmapTextureIndex]);
 1995       		FLandscapeTextureDataInfo* ToTexDataInfo = LandscapeEdit.GetTextureDataInfo(WeightmapTextures[ToLayerAllocation.WeightmapTextureIndex]);
 1996       
 1997       		check(FromTexDataInfo->GetMipSizeX(0) == FromTexDataInfo->GetMipSizeY(0));
 1998       		check(ToTexDataInfo->GetMipSizeX(0) == ToTexDataInfo->GetMipSizeY(0));
 1999       		check(FromTexDataInfo->GetMipSizeX(0) == ToTexDataInfo->GetMipSizeX(0));
 2000       		const int32 MipSize = FromTexDataInfo->GetMipSizeX(0);
 2001       
 2002       		uint8* const SrcTextureData = (uint8*)FromTexDataInfo->GetMipData(0) + ChannelOffsets[FromLayerAllocation.WeightmapTextureChannel];
 2003       		uint8* const DestTextureData = (uint8*)ToTexDataInfo->GetMipData(0) + ChannelOffsets[ToLayerAllocation.WeightmapTextureChannel];
Steps to Reproduce

repro steps currently unknown (but probably replacing a layer with another whose bNoWeightBlend setting does not match)

Callstack
Assertion failed: !bRequireNormalization [File:D:\Build\++UE4+Release-4.16+Compile\Sync\Engine\Source\Runtime\Landscape\Private\LandscapeEditInterface.cpp] 
[Line: 1988] It is not yet supported to replace a layer with another whose bNoWeightBlend setting does not match

UE4Editor_Landscape!ULandscapeComponent::ReplaceLayer() [landscapeeditinterface.cpp:1990]
UE4Editor_Landscape!FLandscapeEditDataInterface::ReplaceLayer() [landscapeeditinterface.cpp:2112]
UE4Editor_Landscape!ULandscapeInfo::ReplaceLayer() [landscapeedit.cpp:3154]
UE4Editor_LandscapeEditor!FLandscapeEditorCustomNodeBuilder_TargetLayers::OnTargetLayerSetObject() [landscapeeditordetailcustomization_targetlayers.cpp:1116]
UE4Editor_LandscapeEditor!TBaseStaticDelegateInstance<void __cdecl() [delegateinstancesimpl.h:1027]
UE4Editor_PropertyEditor!TBaseSPMethodDelegateInstance<0,SObjectPropertyEntryBox,0,TTypeWrapper<void> __cdecl() [delegateinstancesimpl.h:327]
UE4Editor_PropertyEditor!TBaseSPMethodDelegateInstance<0,SObjectPropertyEntryBox,0,void __cdecl() [delegateinstancesimpl.h:434]
UE4Editor_PropertyEditor!SPropertyEditorAsset::SetValue() [spropertyeditorasset.cpp:610]
UE4Editor_PropertyEditor!TBaseSPMethodDelegateInstance<0,SPropertyEditorAsset,0,TTypeWrapper<void> __cdecl() [delegateinstancesimpl.h:327]
UE4Editor_PropertyEditor!TBaseSPMethodDelegateInstance<0,SPropertyEditorAsset,0,void __cdecl() [delegateinstancesimpl.h:434]
UE4Editor_PropertyEditor!SPropertyMenuAssetPicker::OnAssetSelected() [spropertymenuassetpicker.cpp:249]
UE4Editor_PropertyEditor!TBaseSPMethodDelegateInstance<0,SPropertyMenuAssetPicker,0,TTypeWrapper<void> __cdecl() [delegateinstancesimpl.h:327]
UE4Editor_PropertyEditor!TBaseSPMethodDelegateInstance<0,SPropertyMenuAssetPicker,0,void __cdecl() [delegateinstancesimpl.h:434]
UE4Editor_ContentBrowser!SAssetView::AssetSelectionChanged() [sassetview.cpp:3620]
UE4Editor_ContentBrowser!TBaseSPMethodDelegateInstance<0,SAssetView,0,TTypeWrapper<void> __cdecl() [delegateinstancesimpl.h:327]
UE4Editor_ContentBrowser!TBaseSPMethodDelegateInstance<0,SAssetView,0,void __cdecl() [delegateinstancesimpl.h:434]
UE4Editor_ContentBrowser!TBaseDelegate<void,TSharedPtr<FAssetViewItem,0>,enum ESelectInfo::Type>::ExecuteIfBound() [delegatesignatureimpl.inl:624]
UE4Editor_ContentBrowser!SListView<TSharedPtr<FAssetViewItem,0> >::Private_SignalSelectionChanged() [slistview.h:735]
UE4Editor_ContentBrowser!STableRow<TSharedPtr<FAssetViewItem,0> >::OnMouseButtonUp() [stablerow.h:476]
UE4Editor_Slate!<lambda_8d0e9a1da76abd0a756a3a9d775f5ed1>::operator() [slateapplication.cpp:5049]
UE4Editor_Slate!FEventRouter::Route<FReply,FEventRouter::FToLeafmostPolicy,FPointerEvent,<lambda_8d0e9a1da76abd0a756a3a9d775f5ed1> >() [slateapplication.cpp:239]
UE4Editor_Slate!FSlateApplication::RoutePointerUpEvent() [slateapplication.cpp:5038]
UE4Editor_Slate!FSlateApplication::ProcessMouseButtonUpEvent() [slateapplication.cpp:5515]
UE4Editor_Slate!FSlateApplication::OnMouseUp() [slateapplication.cpp:5495]
UE4Editor_Core!FWindowsApplication::ProcessDeferredMessage() [windowsapplication.cpp:1704]
UE4Editor_Core!FWindowsApplication::DeferMessage() [windowsapplication.cpp:2127]
UE4Editor_Core!FWindowsApplication::ProcessMessage() [windowsapplication.cpp:867]
UE4Editor_Core!FWindowsApplication::AppWndProc() [windowsapplication.cpp:714]
user32!UserCallWinProcCheckWow()
user32!DispatchMessageWorker()
UE4Editor_Core!FWindowsPlatformMisc::PumpMessages() [windowsplatformmisc.cpp:1009]
UE4Editor!FEngineLoop::Tick() [launchengineloop.cpp:3058]
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 toAnswerHub just mention UE-47468 in the post.

0
Login to Vote

Fixed
ComponentTools - Landscape
Affects Versions4.144.154.164.17
Target Fix4.18
Fix Commit3666471
Release Commit3666471
CreatedJul 19, 2017
ResolvedSep 27, 2017
UpdatedOct 30, 2017