Description

The editor crashes changing from mesh paint mode to another mode if the user has changed the material of an "Add Static Mesh Component" or "Add Spline Mesh Component" in a BP and compiled while in mesh paint mode.

Steps to Reproduce
  1. Open QAGame
  2. Switch to Mesh Paint Mode
  3. Create a blueprint
  4. In the construction script, drag from the execution wire of "construction script" and add "Add Static Mesh Component"
  5. In the details of add static mesh component, assign a mesh ( I used "Sphere")
  6. In the details of add static mesh component, assign a mesh paint material (M_2_WayBlendTest)
  7. Compile the BP
  8. Place an instance of the BP into the level
  9. In the details panel of add static mesh component, assign a different mesh paint material and compile the BP (M_3_WayBlendTest)
  10. In the modes panel of the editor, select the "Basic" tab
    RESULT: Crash
Callstack

UE4Editor_MeshPaint!FMeshPaintGeometryAdapterForStaticMeshes::OnRemoved() meshpaintstaticmeshadapter.cpp:216
UE4Editor_MeshPaint!FEdModeMeshPaint::RemoveAllGeometryAdapters() meshpaintedmode.cpp:1009
UE4Editor_MeshPaint!FEdModeMeshPaint::Exit() meshpaintedmode.cpp:266
UE4Editor_UnrealEd!FEditorModeTools::DeactivateModeAtIndex() editormodemanager.cpp:266
UE4Editor_UnrealEd!FEditorModeTools::DeactivateMode() editormodemanager.cpp:278
UE4Editor_LevelEditor!SLevelEditor::ToggleEditorMode() sleveleditor.cpp:1243
UE4Editor_LevelEditor!TBaseStaticDelegateInstance<void __cdecl() delegateinstancesimpl.h:1017
UE4Editor_Slate!FUICommandList::ExecuteAction() uicommandlist.cpp:87
UE4Editor_Slate!SToolBarButtonBlock::OnClicked() stoolbarbuttonblock.cpp:300
UE4Editor_Slate!SToolBarButtonBlock::OnCheckStateChanged() stoolbarbuttonblock.cpp:326
UE4Editor_Slate!TBaseSPMethodDelegateInstance<0,SToolBarButtonBlock,0,TTypeWrapper<void> __cdecl() delegateinstancesimpl.h:317
UE4Editor_Slate!TBaseSPMethodDelegateInstance<0,SToolBarButtonBlock,0,void __cdecl() delegateinstancesimpl.h:424
UE4Editor_Slate!SCheckBox::ToggleCheckedState() scheckbox.cpp:293
UE4Editor_Slate!SCheckBox::OnMouseButtonUp() scheckbox.cpp:184
UE4Editor_Slate!<lambda_8d0e9a1da76abd0a756a3a9d775f5ed1>::operator() slateapplication.cpp:4614
UE4Editor_Slate!FEventRouter::Route<FReply,FEventRouter::FToLeafmostPolicy,FPointerEvent,<lambda_8d0e9a1da76abd0a756a3a9d775f5ed1> >() slateapplication.cpp:215
UE4Editor_Slate!FSlateApplication::RoutePointerUpEvent() slateapplication.cpp:4603
UE4Editor_Slate!FSlateApplication::ProcessMouseButtonUpEvent() slateapplication.cpp:5057
UE4Editor_Slate!FSlateApplication::OnMouseUp() slateapplication.cpp:5037
UE4Editor_Core!FWindowsApplication::ProcessDeferredMessage() windowsapplication.cpp:1512
UE4Editor_Core!FWindowsApplication::DeferMessage() windowsapplication.cpp:1852
UE4Editor_Core!FWindowsApplication::ProcessMessage() windowsapplication.cpp:747
UE4Editor_Core!FWindowsApplication::AppWndProc() windowsapplication.cpp:669
user32!<Unknown>
user32!<Unknown>
UE4Editor_Core!FWindowsPlatformMisc::PumpMessages() windowsplatformmisc.cpp:905
UE4Editor!FEngineLoop::Tick() launchengineloop.cpp:2766
UE4Editor!GuardedMain() launch.cpp:156
UE4Editor!GuardedMainWrapper() launchwindows.cpp:126
UE4Editor!WinMain() launchwindows.cpp:202
UE4Editor!__scrt_common_main_seh() exe_common.inl:264
kernel32!<Unknown>
ntdll!<Unknown>

Have Comments or More Details?

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

0
Login to Vote

Fixed
ComponentTools
Affects Versions4.13
Target Fix4.13
Fix Commit3057895
Main Commit3082411
Release Commit3073404
CreatedJul 11, 2016
ResolvedJul 20, 2016
UpdatedApr 27, 2018