Description

BRANCH: MAIN
CHANGELIST: 2322258
PLATFORM: Windows
   
DESCRIPTION: When using a texture sample with the MipValueMode to MipLevel or MipBias with a value of 4 or higher will cause a crash.

Steps to Reproduce
  1. Open UE4
  2. Create a new material
  3. Add a texture sample
  4. Select the Texture sample and change the MipValueMode to MipLevel or MipBias
  5. Adjust the value to 4 or higher

Expected
The material will compile
 
Outcome
Once changing the value to 4 or higher the editor will crash instantly.

Callstack

[2014.10.14-15.14.01:375][127]LogWindows: === Critical error: ===
Assertion failed: Index >= 0 && Index < CodeChunks[MaterialProperty][ShaderFrequency].Num() [Link Removed] [Line: 1101]
 
KERNELBASE.dll!UnknownFunction (0x00007fff22115bf8) + 0 bytes [UnknownFile:0]
UE4Editor-Core.dll!FOutputDeviceWindowsError::Serialize() (0x00007ffedeeecced) + 0 bytes [d:\buildfarm\buildmachine_++depot+ue4\engine\source\runtime\core\private\windows\windowsplatformoutputdevices.cpp:95]
UE4Editor-Core.dll!FOutputDevice::Logf__VA() (0x00007ffeded86ca8) + 159 bytes [d:\buildfarm\buildmachine_++depot+ue4\engine\source\runtime\core\private\misc\outputdevice.cpp:146]
UE4Editor-Core.dll!FDebug::AssertFailed() (0x00007ffeded6ba72) + 62 bytes [d:\buildfarm\buildmachine_++depot+ue4\engine\source\runtime\core\private\misc\outputdevice.cpp:226]
UE4Editor-Engine.dll!FHLSLMaterialTranslator::CoerceParameter() (0x00007ffec8b4ae9c) + 0 bytes [d:\buildfarm\buildmachine_++depot+ue4\engine\source\runtime\engine\private\materials\hlslmaterialtranslator.h:1102]
UE4Editor-Engine.dll!FHLSLMaterialTranslator::TextureSample() (0x00007ffec8b97768) + 35 bytes [d:\buildfarm\buildmachine_++depot+ue4\engine\source\runtime\engine\private\materials\hlslmaterialtranslator.h:2128]
UE4Editor-Engine.dll!UMaterialExpressionTextureSample::Compile() (0x00007ffec8abf148) + 123 bytes [d:\buildfarm\buildmachine_++depot+ue4\engine\source\runtime\engine\private\materials\materialexpressions.cpp:1343]
UE4Editor-MaterialEditor.dll!FMatExpressionPreview::CompilePropertyAndSetMaterialProperty() (0x00007ffecfa464cf) + 245 bytes [d:\buildfarm\buildmachine_++depot+ue4\engine\source\editor\materialeditor\private\materialeditor.cpp:137]
UE4Editor-Engine.dll!FHLSLMaterialTranslator::Translate() (0x00007ffec8b99511) + 24 bytes [d:\buildfarm\buildmachine_++depot+ue4\engine\source\runtime\engine\private\materials\hlslmaterialtranslator.h:318]
UE4Editor-Engine.dll!FMaterial::BeginCompileShaderMap() (0x00007ffec8b474e2) + 9 bytes [d:\buildfarm\buildmachine_++depot+ue4\engine\source\runtime\engine\private\materials\materialshared.cpp:1363]
UE4Editor-Engine.dll!FMaterial::CacheShaders() (0x00007ffec8b484ef) + 22 bytes [d:\buildfarm\buildmachine_++depot+ue4\engine\source\runtime\engine\private\materials\materialshared.cpp:1305]
UE4Editor-Engine.dll!FMaterial::CacheShaders() (0x00007ffec8b48806) + 20 bytes [d:\buildfarm\buildmachine_++depot+ue4\engine\source\runtime\engine\private\materials\materialshared.cpp:1224]
UE4Editor-MaterialEditor.dll!FMaterialEditor::GetExpressionPreview() (0x00007ffecfa70841) + 0 bytes [d:\buildfarm\buildmachine_++depot+ue4\engine\source\editor\materialeditor\private\materialeditor.cpp:3417]
UE4Editor-MaterialEditor.dll!FMaterialEditor::RefreshExpressionPreviews() (0x00007ffecfaa9206) + 15 bytes [d:\buildfarm\buildmachine_++depot+ue4\engine\source\editor\materialeditor\private\materialeditor.cpp:3362]
UE4Editor-MaterialEditor.dll!FMaterialEditor::NotifyPostChange() (0x00007ffecfa8bd31) + 0 bytes [d:\buildfarm\buildmachine_++depot+ue4\engine\source\editor\materialeditor\private\materialeditor.cpp:3301]
UE4Editor-PropertyEditor.dll!FPropertyNode::NotifyPostChange() (0x00007ffec72164ad) + 0 bytes [d:\buildfarm\buildmachine_++depot+ue4\engine\source\editor\propertyeditor\private\propertynode.cpp:1966]
UE4Editor-PropertyEditor.dll!FPropertyValueImpl::ImportText() (0x00007ffec71f0ff7) + 0 bytes [d:\buildfarm\buildmachine_++depot+ue4\engine\source\editor\propertyeditor\private\propertyhandleimpl.cpp:441]
UE4Editor-PropertyEditor.dll!FPropertyValueImpl::ImportText() (0x00007ffec71f1450) + 24 bytes [d:\buildfarm\buildmachine_++depot+ue4\engine\source\editor\propertyeditor\private\propertyhandleimpl.cpp:296]
UE4Editor-PropertyEditor.dll!FPropertyHandleInt::SetValue() (0x00007ffec727c23e) + 100 bytes [d:\buildfarm\buildmachine_++depot+ue4\engine\source\editor\propertyeditor\private\propertyhandleimpl.cpp:2077]
UE4Editor-PropertyEditor.dll!SPropertyEditorNumeric<int>::OnValueCommitted() (0x00007ffec723d9e8) + 22 bytes [d:\buildfarm\buildmachine_++depot+ue4\engine\source\editor\propertyeditor\private\userinterface\propertyeditor\spropertyeditornumeric.h:223]
UE4Editor-PropertyEditor.dll!TBaseSPMethodDelegateInstance<0,SPropertyEditorNumeric<int>,0,TTypeWrapper<void> __cdecl(int,enum ETextCommit::Type)>::Execute() (0x00007ffec7194dd5) + 37 bytes [d:\buildfarm\buildmachine_++depot+ue4\engine\source\runtime\core\public\delegates\delegateinstancesimpl_variadics.inl:280]
UE4Editor-PropertyEditor.dll!TBaseSPMethodDelegateInstance<0,SPropertyEditorNumeric<int>,0,void __cdecl(int,enum ETextCommit::Type)>::ExecuteIfSafe() (0x00007ffec719ad75) + 13 bytes [d:\buildfarm\buildmachine_++depot+ue4\engine\source\runtime\core\public\delegates\delegateinstancesimpl_variadics.inl:378]
UE4Editor-PropertyEditor.dll!SSpinBox<int>::CommitValue() (0x00007ffec7133e73) + 0 bytes [d:\buildfarm\buildmachine_++depot+ue4\engine\source\runtime\slate\public\widgets\input\sspinbox.h:626]
UE4Editor-PropertyEditor.dll!SSpinBox<int>::TextField_OnTextCommitted() (0x00007ffec7284b34) + 21 bytes [d:\buildfarm\buildmachine_++depot+ue4\engine\source\runtime\slate\public\widgets\input\sspinbox.h:556]
UE4Editor-PropertyEditor.dll!TBaseSPMethodDelegateInstance<0,SSpinBox<int>,0,TTypeWrapper<void> __cdecl(FText const & __ptr64,enum ETextCommit::Type)>::Execute() (0x00007ffec7195107) + 38 bytes [d:\buildfarm\buildmachine_++depot+ue4\engine\source\runtime\core\public\delegates\delegateinstancesimpl_variadics.inl:280]
UE4Editor-PropertyEditor.dll!TBaseSPMethodDelegateInstance<0,SSpinBox<int>,0,void __cdecl(FText const & __ptr64,enum ETextCommit::Type)>::ExecuteIfSafe() (0x00007ffec719b087) + 14 bytes [d:\buildfarm\buildmachine_++depot+ue4\engine\source\runtime\core\public\delegates\delegateinstancesimpl_variadics.inl:378]
UE4Editor-Slate.dll!SEditableText::OnEnter() (0x00007ffecff77e59) + 0 bytes [d:\buildfarm\buildmachine_++depot+ue4\engine\source\runtime\slate\private\widgets\input\seditabletext.cpp:971]
UE4Editor-Slate.dll!FTextEditHelper::OnKeyDown() (0x00007ffecfec0958) + 0 bytes [d:\buildfarm\buildmachine_++depot+ue4\engine\source\runtime\slate\private\framework\text\textedithelper.cpp:165]
UE4Editor-Slate.dll!SEditableText::OnKeyDown() (0x00007ffecff79ddc) + 74 bytes [d:\buildfarm\buildmachine_++depot+ue4\engine\source\runtime\slate\private\widgets\input\seditabletext.cpp:1626]
UE4Editor-Slate.dll!FSlateApplication::ProcessKeyDownEvent() (0x00007ffecfe0c087) + 23 bytes [d:\buildfarm\buildmachine_++depot+ue4\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:3127]
UE4Editor-Slate.dll!FSlateApplication::OnKeyDown() (0x00007ffecfdfc196) + 14 bytes [d:\buildfarm\buildmachine_++depot+ue4\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:3058]
UE4Editor-Core.dll!FWindowsApplication::ProcessDeferredMessage() (0x00007ffedee589f4) + 0 bytes [d:\buildfarm\buildmachine_++depot+ue4\engine\source\runtime\core\private\windows\windowsapplication.cpp:1202]
UE4Editor-Core.dll!FWindowsApplication::DeferMessage() (0x00007ffedee445ab) + 74 bytes [d:\buildfarm\buildmachine_++depot+ue4\engine\source\runtime\core\private\windows\windowsapplication.cpp:1637]
UE4Editor-Core.dll!FWindowsApplication::ProcessMessage() (0x00007ffedee59e99) + 41 bytes [d:\buildfarm\buildmachine_++depot+ue4\engine\source\runtime\core\private\windows\windowsapplication.cpp:737]
UE4Editor-Core.dll!FWindowsApplication::AppWndProc() (0x00007ffedee410a2) + 0 bytes [d:\buildfarm\buildmachine_++depot+ue4\engine\source\runtime\core\private\windows\windowsapplication.cpp:599]
USER32.dll!UnknownFunction (0x00007fff24292434) + 0 bytes [UnknownFile:0]
USER32.dll!UnknownFunction (0x00007fff24292297) + 0 bytes [UnknownFile:0]
libcef.dll!UnknownFunction (0x00007ffeb9447d03) + 0 bytes [UnknownFile:0]
libcef.dll!UnknownFunction (0x00007ffeb9447779) + 0 bytes [UnknownFile:0]
libcef.dll!UnknownFunction (0x00007ffeb944815b) + 0 bytes [UnknownFile:0]
libcef.dll!UnknownFunction (0x00007ffeb942f78e) + 0 bytes [UnknownFile:0]
libcef.dll!UnknownFunction (0x00007ffeb93912b8) + 0 bytes [UnknownFile:0]
UE4Editor-Slate.dll!FSlateApplication::Tick() (0x00007ffecfe28cdc) + 68 bytes [d:\buildfarm\buildmachine_++depot+ue4\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:932]
UE4Editor.exe!FEngineLoop::Tick() (0x00007ff78511b6ec) + 0 bytes [d:\buildfarm\buildmachine_++depot+ue4\engine\source\runtime\launch\private\launchengineloop.cpp:2152]
UE4Editor.exe!GuardedMain() (0x00007ff7851111fe) + 0 bytes [d:\buildfarm\buildmachine_++depot+ue4\engine\source\runtime\launch\private\launch.cpp:131]
UE4Editor.exe!GuardedMainWrapper() (0x00007ff78511126a) + 5 bytes [d:\buildfarm\buildmachine_++depot+ue4\engine\source\runtime\launch\private\windows\launchwindows.cpp:126]
UE4Editor.exe!WinMain() (0x00007ff78511cc99) + 17 bytes [d:\buildfarm\buildmachine_++depot+ue4\engine\source\runtime\launch\private\windows\launchwindows.cpp:202]
UE4Editor.exe!__tmainCRTStartup() (0x00007ff78511dbe9) + 21 bytes [f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c:618]
KERNEL32.DLL!UnknownFunction (0x00007fff241516ad) + 0 bytes [UnknownFile:0]
ntdll.dll!UnknownFunction (0x00007fff24b134a5) + 0 bytes [UnknownFile:0]
ntdll.dll!UnknownFunction (0x00007fff24b134a5) + 0 bytes [UnknownFile:0]

Have Comments or More Details?

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

0
Login to Vote

Fixed
ComponentUE - Graphics Features
Target Fix4.6
Fix Commit2341146
CreatedOct 14, 2014
ResolvedOct 27, 2014
UpdatedApr 27, 2018
View Jira Issue