# Lightmass crashed: ===Unhandled Exception: EXCEPTION\_INT\_DIVIDE\_BY\_ZERO

**URL:** <https://forums.unrealengine.com/t/lightmass-crashed-unhandled-exception-exception-int-divide-by-zero/456770>\
**Category:** Rendering\
**Tags:** lightmass-crash, unreal-engine, question\
**Created:** [October 10, 2019, 9:24pm UTC](https://forums.unrealengine.com/t/lightmass-crashed-unhandled-exception-exception-int-divide-by-zero/456770 "2019-10-10T21:24:16Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrmoignon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mrmoignon](https://forums.unrealengine.com/u/mrmoignon)\
**Post date:** [October 10, 2019, 9:24pm UTC](https://forums.unrealengine.com/t/lightmass-crashed-unhandled-exception-exception-int-divide-by-zero/456770/1 "2019-10-10T21:24:16Z")

</div>

Hi,

I’m doing archviz and getting this error when trying to bake my scene.  
It also happens on older scenes that workded smoothly before…  
I already tried to make a verification of UE 4.23 and did the clean & validate trick on the swarm agent.  
My setup is an I7-7700 with 32Go of RAM.

Thanks for your help

=== Lightmass crashed: ===Unhandled Exception: EXCEPTION\_INT\_DIVIDE\_BY\_ZERO  
Fatal error: [File:D:/Build/++UE4/Sync/Engine/Source/Programs/UnrealLightmass/Private/Lighting/LightingSystem.cpp] [Line: 1352]  
Static lighting thread exception:  
Unhandled Exception: EXCEPTION\_INT\_DIVIDE\_BY\_ZERO

0x000000013fc39a7b UnrealLightmass.exe!Lightmass::FStaticLightingSystem::IncomingRadianceAdaptive \>() []  
0x000000013fc4c81f UnrealLightmass.exe!Lightmass::FStaticLightingSystem::CachePointIncomingRadiance() []  
0x000000013fced8ee UnrealLightmass.exe!Lightmass::FStaticLightingSystem::ProcessCacheIndirectLightingTask() []  
0x000000013fce3a2d UnrealLightmass.exe!Lightmass::FStaticLightingSystem::CalculateIndirectLightingTextureMapping() []  
0x000000013fcf024b UnrealLightmass.exe!Lightmass::FStaticLightingSystem::ProcessTextureMapping() []  
0x000000013fcd6a45 UnrealLightmass.exe!Lightmass::FStaticLightingSystem::ThreadLoop() []  
0x000000013fcd1d0e UnrealLightmass.exe!Lightmass::FMappingProcessingThreadRunnable::Run() []  
0x000007fe9b66c4eb UnrealLightmass-Core.dll!UnknownFunction []  
0x000007fe9b6637e1 UnrealLightmass-Core.dll!UnknownFunction []  
0x00000000779c59cd kernel32.dll!UnknownFunction []  
0x0000000077afa561 ntdll.dll!UnknownFunction []

---

<div class="post-metadata">

**Author:** ![Christophe.K](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Christophe.K](https://forums.unrealengine.com/u/Christophe.K)\
**Post date:** [October 11, 2019, 7:25am UTC](https://forums.unrealengine.com/t/lightmass-crashed-unhandled-exception-exception-int-divide-by-zero/456770/2 "2019-10-11T07:25:26Z")

</div>

You can try “Clean” on the cache of Swarm. Sometimes it can fix problems.

---

<div class="post-metadata">

**Author:** ![mrmoignon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mrmoignon](https://forums.unrealengine.com/u/mrmoignon)\
**Post date:** [October 11, 2019, 8:54am UTC](https://forums.unrealengine.com/t/lightmass-crashed-unhandled-exception-exception-int-divide-by-zero/456770/3 "2019-10-11T08:54:31Z")

</div>

Thanks for your tip but as mentioned i already tried and it didn’t worked…

---

<div class="post-metadata">

**Author:** ![donglnapkrsskrss](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@donglnapkrsskrss](https://forums.unrealengine.com/u/donglnapkrsskrss)\
**Post date:** [September 8, 2020, 7:11am UTC](https://forums.unrealengine.com/t/lightmass-crashed-unhandled-exception-exception-int-divide-by-zero/456770/4 "2020-09-08T07:11:22Z")

</div>

Sorry for bumping in to old thread.  
Did you find any solution?  
I’m running 4.25 and have same issue.  
Cleaning and validating cache of swarm obviously didn’t solve.  
Blowing up the intermediate and derived data cache folder also didn’t help.

---

<div class="post-metadata">

**Author:** ![mrmoignon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mrmoignon](https://forums.unrealengine.com/u/mrmoignon)\
**Post date:** [September 8, 2020, 10:05am UTC](https://forums.unrealengine.com/t/lightmass-crashed-unhandled-exception-exception-int-divide-by-zero/456770/5 "2020-09-08T10:05:11Z")

</div>

Hello,

As i can remember i didn’t find any solution for this problem.  
I had to move my project to another version to continue my work…

Good luck

---

<div class="post-metadata">

**Author:** ![MarkV](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MarkV](https://forums.unrealengine.com/u/MarkV)\
**Post date:** [October 16, 2020, 6:10pm UTC](https://forums.unrealengine.com/t/lightmass-crashed-unhandled-exception-exception-int-divide-by-zero/456770/6 "2020-10-16T18:10:44Z")

</div>

Took the starting scene in 4.25.3 with the ArchVis setting. No raytracing support.

Build lighting. Remove floor. Build lighting. Lightmass crashes.

---

<div class="post-metadata">

**Author:** ![fma\_viz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fma\_viz](https://forums.unrealengine.com/u/fma_viz)\
**Post date:** [August 4, 2021, 9:00pm UTC](https://forums.unrealengine.com/t/lightmass-crashed-unhandled-exception-exception-int-divide-by-zero/456770/7 "2021-08-04T21:00:15Z")

</div>

Hey folks,

Nothing like a nice forum answer 2 years after the fact, but I was having the same issue. No answers anywhere, and no way to contact any kind of real Unreal support, so I had no choice but to keep clicking through the endless menus and drop downs in unreal until I came across something kind of obvious.

Under World settings, Lightmass, I saw that there was one of those yellow arrows indicating that something had been changed from the default and could be changed back (brilliant feature!) I clicked on that arrow next to ‘lightmass settings’ resetting that to default, then did a lighting build. No problem. NO more Divide by Zero error. No failure. I hope this helps you or anyone else who comes across this.

---

<div class="post-metadata">

**Author:** ![jack84](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jack84](https://forums.unrealengine.com/u/jack84)\
**Post date:** [September 4, 2022, 8:00pm UTC](https://forums.unrealengine.com/t/lightmass-crashed-unhandled-exception-exception-int-divide-by-zero/456770/8 "2022-09-04T20:00:29Z")

</div>

Hi, I found a partial solution, the issue is caused by one asset placed in your scene (not in content), In my case I delete those level recently placed assets , one by one until the build works fine again.

---

<div class="post-metadata">

**Author:** ![Frandominguezlei](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Frandominguezlei](https://forums.unrealengine.com/u/Frandominguezlei)\
**Post date:** [June 8, 2023, 2:35am UTC](https://forums.unrealengine.com/t/lightmass-crashed-unhandled-exception-exception-int-divide-by-zero/456770/9 "2023-06-08T02:35:02Z")

</div>

It was the same for me. I did what you said and I solved it. Thanks
