Description

This is a common crash that has occurred since at least 4.17

User Descriptions

  • I was building the light for an Archviz Scene (edited BaseLightmass.ini). Never had it crash before and I have done builds for years.

Source Context

 209       // FStaticLightingTextureMapping interface
  210       void FStaticMeshStaticLightingTextureMapping::Apply(FQuantizedLightmapData* QuantizedData, const TMap<ULightComponent*,FShadowMapData2D*>& ShadowMapData, ULevel* LightingScenario)
  211       {
  212       	UStaticMeshComponent* StaticMeshComponent = Primitive.Get();
  213       
  214       	if (StaticMeshComponent && StaticMeshComponent->GetOwner() && StaticMeshComponent->GetOwner()->GetLevel())
  215       	{
  216       		// Should have happened at a higher level
  217       		check(!StaticMeshComponent->IsRenderStateCreated());
  218       		// The rendering thread reads from LODData and IrrelevantLights, therefore
  219       		// the component must have finished detaching from the scene on the rendering
  220       		// thread before it is safe to continue.
  221       		check(StaticMeshComponent->AttachmentCounter.GetValue() == 0);
  222       
  223 ***** 		if (StaticMeshComponent->LODData.Num() != StaticMeshComponent->GetStaticMesh()->GetNumLODs())
  224       		{
  225       			StaticMeshComponent->MarkPackageDirty();
  226       		}
Steps to Reproduce

repro steps currently unknown

Callstack
Access violation - code c0000005 (first/second chance not available)

UE4Editor_Engine!FStaticMeshStaticLightingTextureMapping::Apply() [staticmeshlight.cpp:224]
UE4Editor_UnrealEd!FLightmassProcessor::ProcessMapping() [lightmass.cpp:3852]
UE4Editor_UnrealEd!FLightmassProcessor::ProcessAvailableMappings() [lightmass.cpp:3889]
UE4Editor_UnrealEd!FLightmassProcessor::CompleteRun() [lightmass.cpp:2966]
UE4Editor_UnrealEd!FStaticLightingSystem::FinishLightmassProcess() [staticlightingsystem.cpp:2083]
UE4Editor_UnrealEd!FStaticLightingManager::ProcessLightingData() [staticlightingsystem.cpp:164]
UE4Editor_UnrealEd!FStaticLightingSystem::UpdateLightingBuild() [staticlightingsystem.cpp:2227]
UE4Editor_UnrealEd!FStaticLightingManager::UpdateBuildLighting() [staticlightingsystem.cpp:332]
UE4Editor_UnrealEd!UEditorEngine::UpdateBuildLighting() [staticlightingsystem.cpp:2309]
UE4Editor!FEngineLoop::Tick() [launchengineloop.cpp:3215]
UE4Editor!GuardedMain() [launch.cpp:166]
UE4Editor!GuardedMainWrapper() [launchwindows.cpp:134]
UE4Editor!WinMain() [launchwindows.cpp:210]
UE4Editor!__scrt_common_main_seh() [exe_common.inl:253]
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-52926 in the post.

0
Login to Vote

Fixed
ComponentUE - Graphics Features
Affects Versions4.174.184.19
Target Fix4.21
Fix Commit4415723
Main Commit4450599
Release Commit4415723
CreatedDec 1, 2017
ResolvedOct 2, 2018
UpdatedDec 11, 2018
View Jira Issue