# I'm getting an error regarding 0xc000012f Unreallightmass.exe - Bad image

**URL:** <https://forums.unrealengine.com/t/im-getting-an-error-regarding-0xc000012f-unreallightmass-exe-bad-image/477266>\
**Category:** Rendering\
**Tags:** error, Lightmass, lightmass-crash, unreal-engine, question\
**Created:** [January 14, 2021, 4:16pm UTC](https://forums.unrealengine.com/t/im-getting-an-error-regarding-0xc000012f-unreallightmass-exe-bad-image/477266 "2021-01-14T16:16:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Athena\_3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Athena\_3](https://forums.unrealengine.com/u/Athena_3)\
**Post date:** [January 14, 2021, 4:16pm UTC](https://forums.unrealengine.com/t/im-getting-an-error-regarding-0xc000012f-unreallightmass-exe-bad-image/477266/1 "2021-01-14T16:16:30Z")

</div>

I have gotten this error when ever I press build. I have tried re-installing, clearing cache, running as and administrator. I have unreal installed on my D: drive as it has much more space and my c: drive is boot and windows with a few programs that I need on an ssd to run. I haven’t tried installing it on the ssd yet, but I would prefer not to. I’m not sure what to do at this point any help would be appreciated.

![327200-error2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/d/f/4df9275daebaf49064ae7adbba011190e6f23c39.png)

---

<div class="post-metadata">

**Author:** ![Jonathan\_Box](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jonathan\_Box](https://forums.unrealengine.com/u/Jonathan_Box)\
**Post date:** [March 24, 2021, 12:14pm UTC](https://forums.unrealengine.com/t/im-getting-an-error-regarding-0xc000012f-unreallightmass-exe-bad-image/477266/2 "2021-03-24T12:14:22Z")

</div>

Did you find a solution to this?

---

<div class="post-metadata">

**Author:** ![Scryphus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Scryphus](https://forums.unrealengine.com/u/Scryphus)\
**Post date:** [June 21, 2022, 11:33am UTC](https://forums.unrealengine.com/t/im-getting-an-error-regarding-0xc000012f-unreallightmass-exe-bad-image/477266/3 "2022-06-21T11:33:22Z")

</div>

Might be a bit late, but I just bumped into the same issue with Unreal Engine 5.0.1 using a custom build of the engine.

I managed to get rid of this error and light bakes to work properly again after going into the folder where your engine is installed “(your install path here)\Engine\Saved\Swarm\SwarmCache” (for me this was in “C:\Work\UE5\_Source\UnrealEngine\Engine\Saved\Swarm\SwarmCache”)

In here you’ll likely see a bunch of .dll files like embree.dll, but most likely with a date string and architecture string appended behind it (for me it was something like embree\_2022-05-11\_23-14-26\_8002048-64bit.dll). To fix this, rename all the dlls in this folder back to their original names by simply removing this long date and architecture string (so turning it back into embree.dll for example).

I did this for:

- AgentInterface.dll

- embree.dll

- SwarmInterface.dll

- tbb.dll

- tbbmalloc.dll

and all the Unreal lightmass dll files.

After doing this my version of the engine no longer throws this error and building lights and maps works as it always does again.

Hope this helps someone.

---

<div class="post-metadata">

**Author:** ![Pierrax](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pierrax/32/596699_2.png) [@Pierrax](https://forums.unrealengine.com/u/Pierrax)\
**Post date:** [October 4, 2023, 1:30pm UTC](https://forums.unrealengine.com/t/im-getting-an-error-regarding-0xc000012f-unreallightmass-exe-bad-image/477266/5 "2023-10-04T13:30:23Z")

</div>

Hello actually there is a faster method.  
Open swar agent and clic on CACHE and then CLEAN then Validate.
