# Lighting build fails with EXCEPTION\_ACCESS\_VIOLATION if I move a static mesh too close to a structure?

**URL:** <https://forums.unrealengine.com/t/lighting-build-fails-with-exception_access_violation-if-i-move-a-static-mesh-too-close-to-a-structure/486855>\
**Category:** Rendering\
**Tags:** lightmass-crash, unreal-engine, Rendering, Lighting, question\
**Created:** [August 2, 2021, 11:01am UTC](https://forums.unrealengine.com/t/lighting-build-fails-with-exception_access_violation-if-i-move-a-static-mesh-too-close-to-a-structure/486855 "2021-08-02T11:01:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ArdentStoic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ArdentStoic](https://forums.unrealengine.com/u/ArdentStoic)\
**Post date:** [August 2, 2021, 11:01am UTC](https://forums.unrealengine.com/t/lighting-build-fails-with-exception_access_violation-if-i-move-a-static-mesh-too-close-to-a-structure/486855/1 "2021-08-02T11:01:22Z")

</div>

I’m just doing basic level construction with a bunch of free store assets, nothing special going on yet really. However, if I move this one piece too close to this other structure, the lighting build starts failing.

This works:

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/3/4/03468b42ea6308a6a6e8e4ad58da3574cb5f1265.jpeg)

This breaks:

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/8/d/f8d85d5f50c404e82612694c13f3e88b462ab7a7.jpeg)

I’m only moving the thing like 3 feet over!

The only thing that might be related is the build fails when it stops saying `(1 unbuilt object)` and starts saying `3 unbuilt objects)` as I get it closer.

The full error text is:

```
=== Lightmass crashed: ===Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0xffffffffffffffff
Fatal error: [File:D:/Build/++UE4/Sync/Engine/Source/Programs/UnrealLightmass/Private/Lighting/LightingSystem.cpp] [Line: 1458] 
Static lighting thread exception:
Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0xffffffffffffffff

0x00007ffc7f5e85a2 embree.dll!UnknownFunction []
0x00007ffc7f1195f0 embree.dll!UnknownFunction []
0x00007ff6c587b9cf UnrealLightmass.exe!Lightmass::FEmbreeAggregateMesh::IntersectLightRay() []
0x00007ff6c585c35a UnrealLightmass.exe!Lightmass::FStaticLightingSystem::CachePointIncomingRadiance() []
0x00007ff6c590020e UnrealLightmass.exe!Lightmass::FStaticLightingSystem::ProcessCacheIndirectLightingTask() []
0x00007ff6c58f4b0d UnrealLightmass.exe!Lightmass::FStaticLightingSystem::CalculateIndirectLightingTextureMapping() []
0x00007ff6c5902da3 UnrealLightmass.exe!Lightmass::FStaticLightingSystem::ProcessTextureMapping() []
0x00007ff6c58e8eb4 UnrealLightmass.exe!Lightmass::FStaticLightingSystem::ThreadLoop() []
0x00007ff6c58e41b3 UnrealLightmass.exe!Lightmass::FMappingProcessingThreadRunnable::Run() []
0x00007ffc7e4dd547 UnrealLightmass-Core.dll!UnknownFunction []
0x00007ffc7e4d67c0 UnrealLightmass-Core.dll!UnknownFunction []
0x00007ffd4c847034 KERNEL32.DLL!UnknownFunction []
0x00007ffd4cee2651 ntdll.dll!UnknownFunction []

0x00007ff6c58d8966 UnrealLightmass.exe!Lightmass::FStaticLightingSystem::MultithreadProcess() []
0x00007ff6c58a7c04 UnrealLightmass.exe!Lightmass::FStaticLightingSystem::FStaticLightingSystem() []
0x00007ff6c585a339 UnrealLightmass.exe!Lightmass::BuildStaticLighting() []
0x00007ff6c5880d57 UnrealLightmass.exe!Lightmass::LightmassMain() []
0x00007ff6c589fdc3 UnrealLightmass.exe!main() []
0x00007ff6c59088b4 UnrealLightmass.exe!__scrt_common_main_seh() []
0x00007ffd4c847034 KERNEL32.DLL!UnknownFunction []
0x00007ffd4cee2651 ntdll.dll!UnknownFunction []
```
