Description

This is not a regression. Tested in //UE4/Release-4.27 CL18319896. The crash occurred.

Crash occurs while replacing a Widget Component with a user created Text Block blueprint.

Steps to Reproduce
  1. Create or open any project
  2. Create a Blueprint derived from 'Text Block(Text)' named 'BP_TextBlock'
    1. in the Content Browser right click then select Blueprint Class
    2. Expand All Classes then search for and select 'Text Block(Text)'
    3. Name the Blueprint 'BP_TextBlock'
    4. Save all - make sure the Blueprint is closed
  3. Create a new Widget Blueprint based on User Widget named 'WBP_Test'
  4. Add an Image widget component to the Widget
  5. Compile, save and close the blueprint
  6. Ensure that Text Block widget is closed
  7. Restart the Editor
  8. Open WBP_Test
  9. In the Palette panel search for and select 'BP_TextBlock'
  10. In the Hierarchy panel select the Image widget component
  11. Right click and select Replace with BP_TextBlock

Expected Results:
The Image is replaced with the BP_TextBlock or prevented without a crash.

Actual Results:
The editor crashes:

Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000000000000038
Callstack
Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000000000000038

UnrealEditor_UMGEditor!FWidgetTemplateBlueprintClass::Create() [D:\build\++UE5\Sync\Engine\Source\Editor\UMGEditor\Private\Templates\WidgetTemplateBlueprintClass.cpp:56]
UnrealEditor_UMGEditor!FWidgetBlueprintEditorUtils::CanBeReplacedWithTemplate() [D:\build\++UE5\Sync\Engine\Source\Editor\UMGEditor\Private\WidgetBlueprintEditorUtils.cpp:1077]
UnrealEditor_UMGEditor!UE::Core::Private::Tuple::TTupleBase<TIntegerSequence<unsigned int,0,1,2>,TSharedRef<FWidgetBlueprintEditor,1>,UWidgetBlueprint *,FWidgetReference>::ApplyAfter<bool (__cdecl*const &)(TSharedRef<FWidgetBlueprintEditor,1>,UWidgetBlueprin() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Public\Templates\Tuple.h:324]
UnrealEditor_Slate!SMenuEntryBlock::IsEnabled() [D:\build\++UE5\Sync\Engine\Source\Runtime\Slate\Private\Framework\MultiBox\SMenuEntryBlock.cpp:1211]
UnrealEditor_Slate!TBaseSPMethodDelegateInstance<1,SMenuEntryBlock const ,1,bool __cdecl(void),FDefaultDelegateUserPolicy>::Execute() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:290]
UnrealEditor_SlateCore!SlateAttributePrivate::TSlateAttributeBase<SWidget,bool,SlateAttributePrivate::FSlateAttributeNoInvalidationReason,TSlateAttributeComparePredicate<TEqualTo<void> >,0>::FSlateAttributeGetterWrapper<SlateAttributePrivate::TSlateAttribute() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Public\Types\Attributes\SlateAttributeBase.inl:579]
UnrealEditor_SlateCore!FSlateAttributeMetaData::UpdateAttributesImpl() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Private\Types\SlateAttributeMetaData.cpp:492]
UnrealEditor_SlateCore!FChildren::ForEachWidget<<lambda_d82fe84fc47c33d1b64910f0fc3734bc> >() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Public\Layout\ChildrenBase.h:67]
UnrealEditor_SlateCore!SWidget::Prepass_Internal() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Private\Widgets\SWidget.cpp:1708]
UnrealEditor_SlateCore!FChildren::ForEachWidget<<lambda_d82fe84fc47c33d1b64910f0fc3734bc> >() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Public\Layout\ChildrenBase.h:67]
UnrealEditor_SlateCore!SWidget::Prepass_Internal() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Private\Widgets\SWidget.cpp:1708]
UnrealEditor_SlateCore!FChildren::ForEachWidget<<lambda_d82fe84fc47c33d1b64910f0fc3734bc> >() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Public\Layout\ChildrenBase.h:67]
UnrealEditor_SlateCore!SWidget::Prepass_Internal() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Private\Widgets\SWidget.cpp:1708]
UnrealEditor_SlateCore!FChildren::ForEachWidget<<lambda_d82fe84fc47c33d1b64910f0fc3734bc> >() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Public\Layout\ChildrenBase.h:67]
UnrealEditor_SlateCore!SWidget::Prepass_Internal() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Private\Widgets\SWidget.cpp:1708]
UnrealEditor_SlateCore!FChildren::ForEachWidget<<lambda_d82fe84fc47c33d1b64910f0fc3734bc> >() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Public\Layout\ChildrenBase.h:67]
UnrealEditor_SlateCore!SWidget::Prepass_Internal() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Private\Widgets\SWidget.cpp:1708]
UnrealEditor_SlateCore!FChildren::ForEachWidget<<lambda_d82fe84fc47c33d1b64910f0fc3734bc> >() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Public\Layout\ChildrenBase.h:67]
UnrealEditor_SlateCore!SWidget::Prepass_Internal() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Private\Widgets\SWidget.cpp:1708]
UnrealEditor_SlateCore!FChildren::ForEachWidget<<lambda_d82fe84fc47c33d1b64910f0fc3734bc> >() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Public\Layout\ChildrenBase.h:67]
UnrealEditor_SlateCore!SWidget::Prepass_Internal() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Private\Widgets\SWidget.cpp:1708]
UnrealEditor_SlateCore!FChildren::ForEachWidget<<lambda_d82fe84fc47c33d1b64910f0fc3734bc> >() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Public\Layout\ChildrenBase.h:67]
UnrealEditor_SlateCore!SWidget::Prepass_Internal() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Private\Widgets\SWidget.cpp:1708]
UnrealEditor_SlateCore!FChildren::ForEachWidget<<lambda_d82fe84fc47c33d1b64910f0fc3734bc> >() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Public\Layout\ChildrenBase.h:67]
UnrealEditor_SlateCore!SWidget::Prepass_Internal() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Private\Widgets\SWidget.cpp:1708]
UnrealEditor_SlateCore!SWidget::SlatePrepass() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Private\Widgets\SWidget.cpp:690]
UnrealEditor_Slate!SMenuAnchor::SetIsOpen() [D:\build\++UE5\Sync\Engine\Source\Runtime\Slate\Private\Widgets\Input\SMenuAnchor.cpp:355]
UnrealEditor_Slate!SMenuEntryBlock::UpdateSubMenuState() [D:\build\++UE5\Sync\Engine\Source\Runtime\Slate\Private\Framework\MultiBox\SMenuEntryBlock.cpp:1497]
UnrealEditor_Slate!TBaseSPMethodDelegateInstance<0,SMenuEntryBlock,1,enum EActiveTimerReturnType __cdecl(double,float),FDefaultDelegateUserPolicy,bool>::Execute() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:290]
UnrealEditor_SlateCore!SWidget::ExecuteActiveTimers() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Private\Widgets\SWidget.cpp:1798]
UnrealEditor_SlateCore!SWidget::Paint() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Private\Widgets\SWidget.cpp:1422]
UnrealEditor_SlateCore!SPanel::PaintArrangedChildren() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Private\Widgets\SPanel.cpp:31]
UnrealEditor_SlateCore!SPanel::OnPaint() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Private\Widgets\SPanel.cpp:12]
UnrealEditor_SlateCore!SWidget::Paint() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Private\Widgets\SWidget.cpp:1543]
UnrealEditor_SlateCore!SPanel::PaintArrangedChildren() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Private\Widgets\SPanel.cpp:31]
UnrealEditor_SlateCore!SPanel::OnPaint() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Private\Widgets\SPanel.cpp:12]
UnrealEditor_SlateCore!SWidget::Paint() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Private\Widgets\SWidget.cpp:1543]
UnrealEditor_SlateCore!SPanel::PaintArrangedChildren() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Private\Widgets\SPanel.cpp:31]
UnrealEditor_SlateCore!SPanel::OnPaint() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Private\Widgets\SPanel.cpp:12]
UnrealEditor_SlateCore!SWidget::Paint() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Private\Widgets\SWidget.cpp:1543]
UnrealEditor_SlateCore!SOverlay::OnPaint() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Private\Widgets\SOverlay.cpp:200]
UnrealEditor_SlateCore!SWidget::Paint() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Private\Widgets\SWidget.cpp:1543]
UnrealEditor_SlateCore!SPanel::PaintArrangedChildren() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Private\Widgets\SPanel.cpp:31]
UnrealEditor_SlateCore!SPanel::OnPaint() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Private\Widgets\SPanel.cpp:12]
UnrealEditor_SlateCore!SWidget::Paint() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Private\Widgets\SWidget.cpp:1543]
UnrealEditor_SlateCore!SCompoundWidget::OnPaint() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Private\Widgets\SCompoundWidget.cpp:46]
UnrealEditor_Slate!SScrollBox::OnPaint() [D:\build\++UE5\Sync\Engine\Source\Runtime\Slate\Private\Widgets\Layout\SScrollBox.cpp:1090]
UnrealEditor_SlateCore!SWidget::Paint() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Private\Widgets\SWidget.cpp:1543]
UnrealEditor_SlateCore!SPanel::PaintArrangedChildren() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Private\Widgets\SPanel.cpp:31]
UnrealEditor_SlateCore!SPanel::OnPaint() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Private\Widgets\SPanel.cpp:12]
UnrealEditor_SlateCore!SWidget::Paint() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Private\Widgets\SWidget.cpp:1543]
UnrealEditor_SlateCore!SCompoundWidget::OnPaint() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Private\Widgets\SCompoundWidget.cpp:46]
UnrealEditor_Slate!SBorder::OnPaint() [D:\build\++UE5\Sync\Engine\Source\Runtime\Slate\Private\Widgets\Layout\SBorder.cpp:129]
UnrealEditor_SlateCore!SWidget::Paint() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Private\Widgets\SWidget.cpp:1543]
UnrealEditor_SlateCore!SCompoundWidget::OnPaint() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Private\Widgets\SCompoundWidget.cpp:46]
UnrealEditor_SlateCore!SWidget::Paint() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Private\Widgets\SWidget.cpp:1543]
UnrealEditor_SlateCore!FSlateWindowElementList::FDeferredPaint::ExecutePaint() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Private\Rendering\DrawElements.cpp:786]
UnrealEditor_SlateCore!FSlateWindowElementList::PaintDeferred() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Private\Rendering\DrawElements.cpp:811]
UnrealEditor_SlateCore!SWindow::PaintWindow() [D:\build\++UE5\Sync\Engine\Source\Runtime\SlateCore\Private\Widgets\SWindow.cpp:2121]
UnrealEditor_Slate!FSlateApplication::DrawWindowAndChildren() [D:\build\++UE5\Sync\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:1106]
UnrealEditor_Slate!FSlateApplication::DrawWindowAndChildren() [D:\build\++UE5\Sync\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:1158]
UnrealEditor_Slate!FSlateApplication::PrivateDrawWindows() [D:\build\++UE5\Sync\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:1338]
UnrealEditor_Slate!FSlateApplication::DrawWindows() [D:\build\++UE5\Sync\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:1060]
UnrealEditor_Slate!FSlateApplication::TickAndDrawWidgets() [D:\build\++UE5\Sync\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:1625]
UnrealEditor_Slate!FSlateApplication::Tick() [D:\build\++UE5\Sync\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:1482]
UnrealEditor!FEngineLoop::Tick() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:5325]
UnrealEditor!GuardedMain() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Launch.cpp:183]
UnrealEditor!GuardedMainWrapper() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:147]
UnrealEditor!LaunchWindowsStartup() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:283]
UnrealEditor!WinMain() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:330]
UnrealEditor!__scrt_common_main_seh() [d:\a01\_work\6\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
kernel32
ntdll

Have Comments or More Details?

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

1
Login to Vote

Fixed
ComponentUE - Editor - UI Systems - UMG
Affects Versions5.0.3
Target Fix5.1
Fix Commit22510831
Main Commit22539555
Release Commit22526718
CreatedAug 18, 2022
ResolvedOct 14, 2022
UpdatedNov 3, 2022
View Jira Issue