Description

The editor is crashing when trying to open a material function that the user provided.

User Quote:

One of my material functions crashes the engine when I open the editor for it. It works fine, I use it in other materials and renders OK, I just can't edit it anymore.

I was unable to test with the asset in 4.15.3, so whether or not this is a regression could not be confirmed. Also was unable to reproduce the issue in a clean project.

Steps to Reproduce
  1. Add the attached content folder to a project
  2. Open Substances->Metals->MF_MetalHard
Callstack

Fatal error: [Link Removed] [Line: 10]
Cast of nullptr to MaterialGraphNode failed

UE4Editor_Core!FDebug::AssertFailed() [d:\sean.flint_z5610_streammain\engine\source\runtime\core\private\misc\assertionmacros.cpp:349]
UE4Editor_CoreUObject!CastLogError() [d:\sean.flint_z5610_streammain\engine\source\runtime\coreuobject\private\templates\casts.cpp:11]
UE4Editor_UnrealEd!CastChecked<UMaterialGraphNode,UEdGraphNode>() [d:\sean.flint_z5610_streammain\engine\source\runtime\coreuobject\public\templates\casts.h:211]
UE4Editor_UnrealEd!UMaterialGraph::LinkGraphNodesFromMaterial() [d:\sean.flint_z5610_streammain\engine\source\editor\unrealed\private\materialgraph.cpp:174]
UE4Editor_MaterialEditor!FMaterialEditor::InitMaterialEditor() [d:\sean.flint_z5610_streammain\engine\source\editor\materialeditor\private\materialeditor.cpp:566]
UE4Editor_MaterialEditor!FMaterialEditorModule::CreateMaterialEditor() [d:\sean.flint_z5610_streammain\engine\source\editor\materialeditor\private\materialeditormodule.cpp:63]
UE4Editor_AssetTools!FAssetTypeActions_MaterialFunction::OpenAssetEditor() [d:\sean.flint_z5610_streammain\engine\source\developer\assettools\private\assettypeactions\assettypeactions_materialfunction.cpp:40]
UE4Editor_UnrealEd!FAssetEditorManager::OpenEditorForAsset() [d:\sean.flint_z5610_streammain\engine\source\editor\unrealed\private\toolkits\asseteditormanager.cpp:351]
UE4Editor_AssetTools!FAssetTypeActions_Base::AssetsActivated() [d:\sean.flint_z5610_streammain\engine\source\developer\assettools\public\assettypeactions_base.h:50]
UE4Editor_ContentBrowser!SContentBrowser::OnAssetsActivated() [d:\sean.flint_z5610_streammain\engine\source\editor\contentbrowser\private\scontentbrowser.cpp:1932]
UE4Editor_ContentBrowser!TBaseSPMethodDelegateInstance<0,SContentBrowser,0,TTypeWrapper<void> __cdecl(TArray<FAssetData,FDefaultAllocator> const & __ptr64,enum EAssetTypeActivationMethod::Type)>::Execute() [d:\sean.flint_z5610_streammain\engine\source\runtime\core\public\delegates\delegateinstancesimpl.h:327]
UE4Editor_ContentBrowser!TBaseSPMethodDelegateInstance<0,SContentBrowser,0,void __cdecl(TArray<FAssetData,FDefaultAllocator> const & __ptr64,enum EAssetTypeActivationMethod::Type)>::ExecuteIfSafe() [d:\sean.flint_z5610_streammain\engine\source\runtime\core\public\delegates\delegateinstancesimpl.h:434]
UE4Editor_ContentBrowser!SAssetView::OnListMouseButtonDoubleClick() [d:\sean.flint_z5610_streammain\engine\source\editor\contentbrowser\private\sassetview.cpp:3870]
UE4Editor_ContentBrowser!TBaseSPMethodDelegateInstance<0,SAssetView,0,TTypeWrapper<void> __cdecl(TSharedPtr<FAssetViewItem,0>)>::Execute() [d:\sean.flint_z5610_streammain\engine\source\runtime\core\public\delegates\delegateinstancesimpl.h:327]
UE4Editor_ContentBrowser!TBaseSPMethodDelegateInstance<0,SAssetView,0,void __cdecl(TSharedPtr<FAssetViewItem,0>)>::ExecuteIfSafe() [d:\sean.flint_z5610_streammain\engine\source\runtime\core\public\delegates\delegateinstancesimpl.h:434]
UE4Editor_ContentBrowser!TBaseDelegate<void,TSharedPtr<FAssetViewItem,0> >::ExecuteIfBound() [d:\sean.flint_z5610_streammain\engine\source\runtime\core\public\delegates\delegatesignatureimpl.inl:624]
UE4Editor_ContentBrowser!SListView<TSharedPtr<FAssetViewItem,0> >::Private_OnItemDoubleClicked() [d:\sean.flint_z5610_streammain\engine\source\runtime\slate\public\widgets\views\slistview.h:815]
UE4Editor_ContentBrowser!STableRow<TSharedPtr<FAssetViewItem,0> >::OnMouseButtonDoubleClick() [d:\sean.flint_z5610_streammain\engine\source\runtime\slate\public\widgets\views\stablerow.h:290]
UE4Editor_Slate!<lambda_eeb33fd1b480e3cad58a1531d90d2e14>::operator()() [d:\sean.flint_z5610_streammain\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:5502]
UE4Editor_Slate!FEventRouter::Route<FReply,FEventRouter::FBubblePolicy,FPointerEvent,<lambda_eeb33fd1b480e3cad58a1531d90d2e14> >() [d:\sean.flint_z5610_streammain\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:239]
UE4Editor_Slate!FSlateApplication::RoutePointerDoubleClickEvent() [d:\sean.flint_z5610_streammain\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:5500]
UE4Editor_Slate!FSlateApplication::ProcessMouseButtonDoubleClickEvent() [d:\sean.flint_z5610_streammain\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:5487]
UE4Editor_Slate!FSlateApplication::OnMouseDoubleClick() [d:\sean.flint_z5610_streammain\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:5463]
UE4Editor_Core!FWindowsApplication::ProcessDeferredMessage() [d:\sean.flint_z5610_streammain\engine\source\runtime\core\private\windows\windowsapplication.cpp:1703]
UE4Editor_Core!FWindowsApplication::DeferMessage() [d:\sean.flint_z5610_streammain\engine\source\runtime\core\private\windows\windowsapplication.cpp:2122]
UE4Editor_Core!FWindowsApplication::ProcessMessage() [d:\sean.flint_z5610_streammain\engine\source\runtime\core\private\windows\windowsapplication.cpp:862]
UE4Editor_Core!FWindowsApplication::AppWndProc() [d:\sean.flint_z5610_streammain\engine\source\runtime\core\private\windows\windowsapplication.cpp:709]
user32
user32
UE4Editor_Core!FWindowsPlatformMisc::PumpMessages() [d:\sean.flint_z5610_streammain\engine\source\runtime\core\private\windows\windowsplatformmisc.cpp:1009]
UE4Editor!FEngineLoop::Tick() [d:\sean.flint_z5610_streammain\engine\source\runtime\launch\private\launchengineloop.cpp:3089]
UE4Editor!GuardedMain() [d:\sean.flint_z5610_streammain\engine\source\runtime\launch\private\launch.cpp:166]
UE4Editor!GuardedMainWrapper() [d:\sean.flint_z5610_streammain\engine\source\runtime\launch\private\windows\launchwindows.cpp:134]
UE4Editor!WinMain() [d:\sean.flint_z5610_streammain\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?

Head over to the existing Questions & Answers thread and let us know what's up.

2
Login to Vote

Won't Fix
CreatedJun 2, 2017
ResolvedApr 20, 2021
UpdatedNov 2, 2021
View Jira Issue