Description

Collapsed material attribute nodes cause an editor assertion crash in the material editor when viewed or opened.

Assertion failed: (Index >= 0) & (Index < ArrayNum): Array index out of bounds: 0 from an array of size 0

Steps to Reproduce
  1. Create a Material Blueprint
  2. Add a Make Material Attribute node and a constant Vector 4 node
  3. Connect Vector 4 output pin to Base Color of Material Attribute
  4. Select both Const Vector 4 and Make Material Attribute nodes
  5. Right Click and select Collapse Selection to Node
  6. Hover the mouse cursor over the collapse node, or try to open it
  7. Editor Crashes
Callstack

Assertion failed: (Index >= 0) & (Index < ArrayNum) [Link Removed] [Line: 691]
Array index out of bounds: 0 from an array of size 0

0x00007ffdd3efafba UnrealEditor-GraphEditor.dll!SGraphNodeMaterialBase::CreatePinWidgets() [D:\Builds\5.0\Engine\Source\Editor\GraphEditor\Private\MaterialNodes\SGraphNodeMaterialBase.cpp:284]
0x00007ffdd40903cb UnrealEditor-GraphEditor.dll!SGraphNode::UpdateGraphNode() [D:\Builds\5.0\Engine\Source\Editor\GraphEditor\Private\SGraphNode.cpp:1002]
0x00007ffdd3ea975e UnrealEditor-GraphEditor.dll!TSlateDecl<SGraphNodeMaterialBase,RequiredArgs::T1RequiredArgs<UMaterialGraphNode * &> >::operator<<=() [D:\Builds\5.0\Engine\Source\Runtime\SlateCore\Public\Widgets\DeclarativeSyntaxSupport.h:928]
0x00007ffdd3ef715e UnrealEditor-GraphEditor.dll!FNodeFactory::CreateNodeWidget() [D:\Builds\5.0\Engine\Source\Editor\GraphEditor\Private\NodeFactory.cpp:136]
0x00007ffdd40059a3 UnrealEditor-GraphEditor.dll!SGraphPanel::AddNode() [D:\Builds\5.0\Engine\Source\Editor\GraphEditor\Private\SGraphPanel.cpp:1505]
0x00007ffdd408b4c5 UnrealEditor-GraphEditor.dll!SGraphPanel::Update() [D:\Builds\5.0\Engine\Source\Editor\GraphEditor\Private\SGraphPanel.cpp:1602]
0x00007ffdd401897c UnrealEditor-GraphEditor.dll!SGraphPreviewer::Construct() [D:\Builds\5.0\Engine\Source\Editor\GraphEditor\Private\SGraphPreviewer.cpp:61]
0x00007ffdd3f41b8c UnrealEditor-GraphEditor.dll!SGraphNodeMaterialComposite::GetComplexTooltip() [D:\Builds\5.0\Engine\Source\Editor\GraphEditor\Private\MaterialNodes\SGraphNodeMaterialComposite.cpp:191]
0x00007ffdd4046fc8 UnrealEditor-GraphEditor.dll!SGraphNode::GetToolTip() [D:\Builds\5.0\Engine\Source\Editor\GraphEditor\Private\SGraphNode.cpp:430]
0x00007ffddd881426 UnrealEditor-Slate.dll!FSlateUser::UpdateTooltip() [D:\Builds\5.0\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateUser.cpp:1182]
0x00007ffddd85985d UnrealEditor-Slate.dll!FSlateApplication::ProcessMouseMoveEvent() [D:\Builds\5.0\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:5727]
0x00007ffddd84d337 UnrealEditor-Slate.dll!FSlateApplication::OnMouseMove() [D:\Builds\5.0\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:5671]
0x00007ffe03a9a76d UnrealEditor-ApplicationCore.dll!FWindowsApplication::ProcessDeferredMessage() [D:\Builds\5.0\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:2248]
0x00007ffe03a89247 UnrealEditor-ApplicationCore.dll!FWindowsApplication::DeferMessage() [D:\Builds\5.0\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:2699]
0x00007ffe03a9ce51 UnrealEditor-ApplicationCore.dll!FWindowsApplication::ProcessMessage() [D:\Builds\5.0\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:1078]
0x00007ffe03a849a7 UnrealEditor-ApplicationCore.dll!FWindowsApplication::AppWndProc() [D:\Builds\5.0\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:916]
0x00007ffe1e7fe858 USER32.dll!UnknownFunction []
0x00007ffe1e7fe4ee USER32.dll!UnknownFunction []
0x00007ffd9f327e19 InkObj.dll!UnknownFunction []
0x00007ffe0e0010b8 atlthunk.dll!UnknownFunction []
0x00007ffe1e7fe858 USER32.dll!UnknownFunction []
0x00007ffe1e7fe299 USER32.dll!UnknownFunction []
0x00007ffe03a9e148 UnrealEditor-ApplicationCore.dll!FWindowsPlatformApplicationMisc::PumpMessages() [D:\Builds\5.0\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsPlatformApplicationMisc.cpp:138]
0x00007ff78c377114 UnrealEditor.exe!FEngineLoop::Tick() [D:\Builds\5.0\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:5139]
0x00007ff78c390d9c UnrealEditor.exe!GuardedMain() [D:\Builds\5.0\Engine\Source\Runtime\Launch\Private\Launch.cpp:183]
0x00007ff78c390e8a UnrealEditor.exe!GuardedMainWrapper() [D:\Builds\5.0\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:147]
0x00007ff78c393c4d UnrealEditor.exe!LaunchWindowsStartup() [D:\Builds\5.0\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:283]
0x00007ff78c3a5564 UnrealEditor.exe!WinMain() [D:\Builds\5.0\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:330]
0x00007ff78c3a8736 UnrealEditor.exe!__scrt_common_main_seh() [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
0x00007ffe1cb27034 KERNEL32.DLL!UnknownFunction []
0x00007ffe1eb02651 ntdll.dll!UnknownFunction []

Have Comments or More Details?

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

1
Login to Vote

Fixed
ComponentUE - Rendering Architecture - Materials
Affects Versions5.0
Target Fix5.1
Fix Commit21318060
Main Commit21318060
CreatedJul 14, 2022
ResolvedAug 10, 2022
UpdatedDec 2, 2022
View Jira Issue