Description

This Jira was created from CrashReports submitted by the public due to the high number of occurrences. Descriptions from users are provided below.

Error message:

Fatal error: [Link Removed] [Line: 1663] Failed to compile default material WorldGridMaterial!

Source Context:

 1648       			if (!bSucceeded)
 1649       			{
 1650       				// If it failed to compile the material, reset the shader map so the material isn't used.
 1651       				GameThreadShaderMap = nullptr;
 1652       
 1653       				if (IsDefaultMaterial())
 1654       				{
 1655       					for (int32 ErrorIndex = 0; ErrorIndex < CompileErrors.Num(); ErrorIndex++)
 1656       					{
 1657       						// Always log material errors in an unsuppressed category
 1658       						UE_LOG(LogMaterial, Warning, TEXT("	%s"), *CompileErrors[ErrorIndex]);
 1659       					}
 1660       
 1661       					// Assert if the default material could not be compiled, since there will be nothing for other failed materials to fall back on.
 1662 ***** 					UE_LOG(LogMaterial, Fatal,TEXT("Failed to compile default material %s!"), *GetFriendlyName());
 1663       				}
 1664       			}
 1665       		}
 1666       	}
 1667       	else
 1668       	{
 1669       		bSucceeded = true;
 1670       	}
 1671       
 1672       	// Note: this is safe to set from the game thread because we should be between the RenderFences of an FMaterialUpdateContext
 1673       	RenderingThreadShaderMap = GameThreadShaderMap;
 1674       
 1675       	return bSucceeded;
 1676       }
 1677       

Most recent user affected CL: 3299760

Logs: [Link Removed] [Link Removed] [Link Removed] [Link Removed]

Issue call stack shares some similarities with [Link Removed]


Steps to Reproduce

Repro Steps Unknown

Callstack
UE4Editor_Engine!FMaterial::CacheShaders() [materialshared.cpp:1663]
UE4Editor_Engine!FMaterial::CacheShaders() [materialshared.cpp:1547]
UE4Editor_Engine!UMaterial::CacheShadersForResources() [material.cpp:2179]
UE4Editor_Engine!UMaterial::CacheResourceShadersForRendering() [material.cpp:2097]
UE4Editor_Engine!UMaterial::PostLoad() [material.cpp:2760]
UE4Editor_CoreUObject!UObject::ConditionalPostLoad() [obj.cpp:859]
UE4Editor_Engine!UMaterialInterface::PostLoadDefaultMaterials() [material.cpp:421]
UE4Editor_Engine!UMaterial::PostLoad() [material.cpp:2573]
UE4Editor_CoreUObject!UObject::ConditionalPostLoad() [obj.cpp:859]
UE4Editor_CoreUObject!EndLoad() [uobjectglobals.cpp:1635]
UE4Editor_CoreUObject!LoadPackageInternalInner() [uobjectglobals.cpp:1321]
UE4Editor_CoreUObject!LoadPackage() [uobjectglobals.cpp:1477]
UE4Editor_CoreUObject!ResolveName() [uobjectglobals.cpp:756]
UE4Editor_CoreUObject!StaticLoadObjectInternal() [uobjectglobals.cpp:843]
UE4Editor_CoreUObject!StaticLoadObject() [uobjectglobals.cpp:903]
UE4Editor_UMG!ConstructorHelpersInternal::FindOrLoadObject<UMaterialInterface>() [constructorhelpers.h:35]
UE4Editor_UMG!UWidgetComponent::UWidgetComponent() [widgetcomponent.cpp:573]
UE4Editor_UMG!InternalConstructor<UWidgetComponent>()
UE4Editor_CoreUObject!UClass::CreateDefaultObject() [class.cpp:2722]
UE4Editor_CoreUObject!UClass::CreateDefaultObject() [class.cpp:2679]
UE4Editor_CoreUObject!FObjectInitializer::CreateDefaultSubobject() [uobjectglobals.cpp:3698]
UE4Editor_CoreUObject!UObject::CreateDefaultSubobject() [obj.cpp:120]
UE4Editor_VREditor!AVREditorFloatingUI::AVREditorFloatingUI() [vreditorfloatingui.cpp:37]
UE4Editor_VREditor!InternalConstructor<AVREditorFloatingUI>()
UE4Editor_CoreUObject!UClass::CreateDefaultObject() [class.cpp:2722]
UE4Editor_CoreUObject!UObjectLoadAllCompiledInDefaultProperties() [uobjectbase.cpp:777]
UE4Editor_CoreUObject!ProcessNewlyLoadedUObjects() [uobjectbase.cpp:853]
UE4Editor!FEngineLoop::PreInit() [launchengineloop.cpp:1738]
UE4Editor!GuardedMain() [launch.cpp:127]
UE4Editor!GuardedMainWrapper() [launchwindows.cpp:134]
UE4Editor!WinMain() [launchwindows.cpp:210]
UE4Editor!__scrt_common_main_seh() [exe_common.inl:264]
kernel32!BaseThreadInitThunk()
ntdll!RtlUserThreadStart()

Have Comments or More Details?

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

2
Login to Vote

Fixed
ComponentUE - Graphics Features
Affects Versions4.154.16
Target Fix4.17
Fix Commit3540089
Main Commit3596628
Release Commit3540089
CreatedMar 13, 2017
ResolvedJul 17, 2017
UpdatedApr 27, 2018
View Jira Issue