Description

Importing two or more Textures into the Material Editor results in a crash. This is a regression from 4.24.3 (CL-11590370) as well.

This was reported and tested in 4.25 Preview 2 (CL-12055273) and reproduced in 4.26 (CL-12063615).

Steps to Reproduce
  1. Open the UE4 Editor and create a Blank project
  2. In the Content Browser create a Material and open it
  3. Go back to the Content Browser and enable "Show Engine Content" then filter it for Textures
  4. Grab any two Textures and drag them into the Material Editor

Results: The Editor crashes

Expected: The two Texture are imported into the Material Editor

Callstack
[2020.03.11-19.17.43:978][837]LogWindows: Windows GetLastError: The operation completed successfully. (0)
[2020.03.11-19.17.50:898][837]LogWindows: Error: === Critical error: ===
[2020.03.11-19.17.50:898][837]LogWindows: Error: 
[2020.03.11-19.17.50:898][837]LogWindows: Error: Assertion failed: TextureReferenceIndex != INDEX_NONE [File:D:/Build/++UE4+Licensee/Sync/Engine/Source/Runtime/Engine/Private/Materials/HLSLMaterialTranslator.cpp] [Line: 4932] 
[2020.03.11-19.17.50:898][837]LogWindows: Error: Material expression called Compiler->Texture() without implementing UMaterialExpression::GetReferencedTexture properly
[2020.03.11-19.17.50:899][837]LogWindows: Error: 
[2020.03.11-19.17.50:899][837]LogWindows: Error: 
[2020.03.11-19.17.50:899][837]LogWindows: Error: [Callstack] 0x00007ff9d81c9159 KERNELBASE.dll!UnknownFunction []
[2020.03.11-19.17.50:899][837]LogWindows: Error: [Callstack] 0x00007ff96ba91106 UE4Editor-Core.dll!ReportAssert() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Core\Private\Windows\WindowsPlatformCrashContext.cpp:1388]
[2020.03.11-19.17.50:899][837]LogWindows: Error: [Callstack] 0x00007ff96ba94758 UE4Editor-Core.dll!FWindowsErrorOutputDevice::Serialize() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Core\Private\Windows\WindowsErrorOutputDevice.cpp:78]
[2020.03.11-19.17.50:899][837]LogWindows: Error: [Callstack] 0x00007ff96b81f5bd UE4Editor-Core.dll!FOutputDevice::LogfImpl() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Core\Private\Misc\OutputDevice.cpp:61]
[2020.03.11-19.17.50:899][837]LogWindows: Error: [Callstack] 0x00007ff96b7ab145 UE4Editor-Core.dll!AssertFailedImplV() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp:100]
[2020.03.11-19.17.50:899][837]LogWindows: Error: [Callstack] 0x00007ff96b7ad560 UE4Editor-Core.dll!FDebug::CheckVerifyFailedImpl() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp:450]
[2020.03.11-19.17.50:899][837]LogWindows: Error: [Callstack] 0x00007ff95e9f31ac UE4Editor-Engine.dll!FHLSLMaterialTranslator::Texture() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Engine\Private\Materials\HLSLMaterialTranslator.cpp:4932]
[2020.03.11-19.17.50:899][837]LogWindows: Error: [Callstack] 0x00007ff95ea3bfad UE4Editor-Engine.dll!UMaterialExpressionTextureSample::Compile() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Engine\Private\Materials\MaterialExpressions.cpp:1773]
[2020.03.11-19.17.50:899][837]LogWindows: Error: [Callstack] 0x00007ff959f7bd71 UE4Editor-MaterialEditor.dll!FMatExpressionPreview::CompilePropertyAndSetMaterialProperty() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\MaterialEditor\Private\MaterialEditor.cpp:212]
[2020.03.11-19.17.50:899][837]LogWindows: Error: [Callstack] 0x00007ff95e9f70bb UE4Editor-Engine.dll!FHLSLMaterialTranslator::Translate() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Engine\Private\Materials\HLSLMaterialTranslator.cpp:637]
[2020.03.11-19.17.50:899][837]LogWindows: Error: [Callstack] 0x00007ff95eac2595 UE4Editor-Engine.dll!FMaterial::BeginCompileShaderMap() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Engine\Private\Materials\MaterialShared.cpp:1891]
[2020.03.11-19.17.50:899][837]LogWindows: Error: [Callstack] 0x00007ff95eac43cb UE4Editor-Engine.dll!FMaterial::CacheShaders() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Engine\Private\Materials\MaterialShared.cpp:1822]
[2020.03.11-19.17.50:899][837]LogWindows: Error: [Callstack] 0x00007ff95eac49d1 UE4Editor-Engine.dll!FMaterial::CacheShaders() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Engine\Private\Materials\MaterialShared.cpp:1687]
[2020.03.11-19.17.50:899][837]LogWindows: Error: [Callstack] 0x00007ff959fbd775 UE4Editor-MaterialEditor.dll!FMaterialEditor::GetExpressionPreview() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\MaterialEditor\Private\MaterialEditor.cpp:4790]
[2020.03.11-19.17.50:899][837]LogWindows: Error: [Callstack] 0x00007ff959feda90 UE4Editor-MaterialEditor.dll!FMaterialEditor::RefreshExpressionPreviews() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\MaterialEditor\Private\MaterialEditor.cpp:4726]
[2020.03.11-19.17.50:899][837]LogWindows: Error: [Callstack] 0x00007ff959fb6092 UE4Editor-MaterialEditor.dll!FMaterialEditor::ForceRefreshExpressionPreviews() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\MaterialEditor\Private\MaterialEditor.cpp:3996]
[2020.03.11-19.17.50:899][837]LogWindows: Error: [Callstack] 0x00007ff959fb60d7 UE4Editor-MaterialEditor.dll!FMaterialEditorUtilities::ForceRefreshExpressionPreviews() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\MaterialEditor\Private\MaterialEditorUtilities.cpp:68]
[2020.03.11-19.17.50:899][837]LogWindows: Error: [Callstack] 0x00007ff95cf2bc58 UE4Editor-UnrealEd.dll!UMaterialGraphSchema::DroppedAssetsOnGraph() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\UnrealEd\Private\MaterialGraphSchema.cpp:748]
[2020.03.11-19.17.50:899][837]LogWindows: Error: [Callstack] 0x00007ff959724568 UE4Editor-GraphEditor.dll!SGraphPanel::OnDrop() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\GraphEditor\Private\SGraphPanel.cpp:998]
[2020.03.11-19.17.50:899][837]LogWindows: Error: [Callstack] 0x00007ff96c61896f UE4Editor-Slate.dll!<lambda_e356e543718159020736727f05f9aa09>::operator()() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:4730]
[2020.03.11-19.17.50:899][837]LogWindows: Error: [Callstack] 0x00007ff96c5f20e5 UE4Editor-Slate.dll!FEventRouter::Route<FReply,FEventRouter::FBubblePolicy,FPointerEvent,<lambda_e356e543718159020736727f05f9aa09> >() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:372]
[2020.03.11-19.17.50:899][837]LogWindows: Error: [Callstack] 0x00007ff96c683c87 UE4Editor-Slate.dll!FSlateApplication::RoutePointerUpEvent() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:4726]
[2020.03.11-19.17.50:899][837]LogWindows: Error: [Callstack] 0x00007ff96c66b751 UE4Editor-Slate.dll!FSlateApplication::ProcessMouseButtonUpEvent() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:5198]
[2020.03.11-19.17.50:899][837]LogWindows: Error: [Callstack] 0x00007ff96c65de52 UE4Editor-Slate.dll!FSlateApplication::OnMouseUp() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:5166]
[2020.03.11-19.17.50:899][837]LogWindows: Error: [Callstack] 0x00007ff9aede78e8 UE4Editor-ApplicationCore.dll!FWindowsApplication::ProcessDeferredMessage() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:1963]
[2020.03.11-19.17.50:899][837]LogWindows: Error: [Callstack] 0x00007ff9aedd5497 UE4Editor-ApplicationCore.dll!FWindowsApplication::DeferMessage() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:2415]
[2020.03.11-19.17.50:899][837]LogWindows: Error: [Callstack] 0x00007ff9aede9cbb UE4Editor-ApplicationCore.dll!FWindowsApplication::ProcessMessage() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:1639]
[2020.03.11-19.17.50:899][837]LogWindows: Error: [Callstack] 0x00007ff9aedd0f70 UE4Editor-ApplicationCore.dll!FWindowsApplication::AppWndProc() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:790]
[2020.03.11-19.17.50:899][837]LogWindows: Error: [Callstack] 0x00007ff9da377446 USER32.dll!UnknownFunction []
[2020.03.11-19.17.50:899][837]LogWindows: Error: [Callstack] 0x00007ff9da376f62 USER32.dll!UnknownFunction []
[2020.03.11-19.17.50:899][837]LogWindows: Error: [Callstack] 0x00007ff9aedeb1d4 UE4Editor-ApplicationCore.dll!FWindowsPlatformApplicationMisc::PumpMessages() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsPlatformApplicationMisc.cpp:130]
[2020.03.11-19.17.50:899][837]LogWindows: Error: [Callstack] 0x00007ff625d968c4 UE4Editor.exe!FEngineLoop::Tick() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:4714]
[2020.03.11-19.17.50:899][837]LogWindows: Error: [Callstack] 0x00007ff625dac05c UE4Editor.exe!GuardedMain() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Launch\Private\Launch.cpp:169]
[2020.03.11-19.17.50:899][837]LogWindows: Error: [Callstack] 0x00007ff625dac13a UE4Editor.exe!GuardedMainWrapper() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:137]
[2020.03.11-19.17.50:899][837]LogWindows: Error: [Callstack] 0x00007ff625dbe959 UE4Editor.exe!WinMain() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:266]
[2020.03.11-19.17.50:899][837]LogWindows: Error: [Callstack] 0x00007ff625dc1a3a UE4Editor.exe!__scrt_common_main_seh() [d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
[2020.03.11-19.17.50:899][837]LogWindows: Error: [Callstack] 0x00007ff9dbae7974 KERNEL32.DLL!UnknownFunction []
[2020.03.11-19.17.50:899][837]LogWindows: Error: [Callstack] 0x00007ff9dbd5a261 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-90490 in the post.

5
Login to Vote

Fixed
ComponentUE - Graphics Features
Affects Versions4.254.26
Target Fix4.25
Fix Commit12140400
Main Commit12159935
Release Commit12140400
CreatedMar 11, 2020
ResolvedMar 13, 2020
UpdatedJul 30, 2020
View Jira Issue