Description

Error Message -

Assertion failed: !Value || Value->IsValidLowLevel() [File[Image Removed]:\BuildFarm\buildmachine_++depot+UE4-Releases+4.10\Engine\Source\Runtime\Engine\Private\Materials\MaterialUniformExpressions.cpp] [Line: 356] Texture not valid! [Link Removed]! Parameter (Weightmap0)

Source Context -

  339       
  340       		void** ResourceTable = (void**)((uint8*)TempBuffer + UniformBufferStruct->GetLayout().ResourceOffset);
  341       		check(((UPTRINT)ResourceTable & 0x7) == 0);
  342       
  343       		check(UniformBufferStruct->GetLayout().Resources.Num() == Uniform2DTextureExpressions.Num() * 2 + UniformCubeTextureExpressions.Num() * 2 + 2);
  344       
  345       		// Cache 2D texture uniform expressions.
  346       		for(int32 ExpressionIndex = 0;ExpressionIndex < Uniform2DTextureExpressions.Num();ExpressionIndex++)
  347       		{
  348       			const UTexture* Value;
  349       			ESamplerSourceMode SourceMode;
  350       			Uniform2DTextureExpressions[ExpressionIndex]->GetTextureValue(MaterialRenderContext,MaterialRenderContext.Material,Value,SourceMode);
  351       
  352       			// gmartin: Trying to locate UE-17608
  353 ***** 			checkf(!Value || Value->IsValidLowLevel(), TEXT("Texture not valid! UE-17608! Parameter (%s)"),
  354       				   Uniform2DTextureExpressions[ExpressionIndex]->GetType() == &FMaterialUniformExpressionTextureParameter::StaticType ?
  355       				   	*((FMaterialUniformExpressionTextureParameter&)*Uniform2DTextureExpressions[ExpressionIndex]).GetParameterName().ToString() : TEXT("non-parameter"));
  356       
  357       			if (Value && Value->Resource)
  358       			{
  359       				//@todo-rco: Help track down a invalid values
  360       				checkf(Value->IsA(UTexture::StaticClass()), TEXT("Expecting a UTexture! Value='%s' class='%s'"), *Value->GetName(), *Value->GetClass()->GetName());
  361       
  362       				// UMaterial / UMaterialInstance should have caused all dependent textures to be PostLoaded, which initializes their rendering resource
  363       				checkf(Value->TextureReference.TextureReferenceRHI, TEXT("Texture %s of class %s had invalid texture reference"), *Value->GetName(), *Value->GetClass()->GetName());
  364       
  365       				*ResourceTable++ = Value->TextureReference.TextureReferenceRHI;
  366       				FSamplerStateRHIRef* SamplerSource = &Value->Resource->SamplerStateRHI;
  367       
  368       				if (SourceMode == SSM_Wrap_WorldGroupSettings)

Most Recent CL - 2758231

Logs -
[Link Removed]
[Link Removed]
[Link Removed]

Similar Jira - [Link Removed] [Link Removed] [Link Removed]

User Descriptions -

  • Crash after crashing.
    Rebooted the editor
  • built all
  • went in to the terrain editor and painted each layer so shaders could compile
  • did an edit undo for each painted tile (4)
  • Built a lightmass importance volume in a sublevel
  • built all
  • made the terrain level my current level
  • attempted to paint
  • crashed [Image Removed]
  • Crash while attempting to paint a layer in landscape edit mode.
    I had created this landscape before, deleted it, made it again and reused the same assets.
  • I was about to paint my terrain, I held down CTRL and pressed my mouse, then it froze and crashed.
  • AI|UUUUUU
  • I was making my terrain material.
Steps to Reproduce

Unknown.

Callstack
UE4Editor_Engine!FUniformExpressionSet::CreateUniformBuffer() [materialuniformexpressions.cpp:354]
UE4Editor_Engine!FMaterialRenderProxy::EvaluateUniformExpressions() [materialshared.cpp:1594]
UE4Editor_Engine!<lambda_750448c5cd9789c3d5618b9eb116be51>::operator() [materialshared.cpp:1626]
UE4Editor_Engine!FMaterialRenderProxy::CacheUniformExpressions() [materialshared.cpp:1610]
UE4Editor_Engine!TGraphTask<`FMaterialRenderProxy::CacheUniformExpressions_GameThread'::`5'::EURCMacro_FCacheUniformExpressionsCommand>::ExecuteTask() [taskgraphinterfaces.h:779]
UE4Editor_Core!FTaskThread::ProcessTasks() [taskgraph.cpp:539]
UE4Editor_Core!FTaskThread::ProcessTasksUntilQuit() [taskgraph.cpp:340]
UE4Editor_RenderCore!RenderingThreadMain() [renderingthread.cpp:310]
UE4Editor_RenderCore!FRenderingThread::Run() [renderingthread.cpp:411]
UE4Editor_Core!FRunnableThreadWin::Run() [windowsrunnablethread.cpp:74]

Have Comments or More Details?

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

1
Login to Vote

Fixed
ComponentUE - Graphics Features
Affects Versions4.10
Target Fix4.13
Fix Commit3085715
Main Commit2857187
Release Commit3085715
CreatedNov 30, 2015
ResolvedAug 11, 2016
UpdatedMar 24, 2023
View Jira Issue