# Lighting build crash when foliage and toggleable lights in same map

**URL:** <https://forums.unrealengine.com/t/lighting-build-crash-when-foliage-and-toggleable-lights-in-same-map/110334>\
**Category:** UDK Content Creation and Design\
**Tags:** unreal-engine\
**Created:** [May 2, 2018, 8:51am UTC](https://forums.unrealengine.com/t/lighting-build-crash-when-foliage-and-toggleable-lights-in-same-map/110334 "2018-05-02T08:51:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nathaniel3W](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nathaniel3W](https://forums.unrealengine.com/u/Nathaniel3W)\
**Post date:** [May 2, 2018, 8:51am UTC](https://forums.unrealengine.com/t/lighting-build-crash-when-foliage-and-toggleable-lights-in-same-map/110334/1 "2018-05-02T08:51:11Z")

</div>

I get this error when I try building lighting. I think it happens when I have foliage and toggleable lights in the same map. Have any of you run into this problem? How did you solve it?

```auto

[0565.32] Critical: appError called: Assertion failed: InstanceMapping.ShadowmapTexture == NULL [File:D:\ ... path ... \Development\Src\Engine\Src\UnShadowMap.cpp] [Line: 967]

Stack: appFailAssertFunc() Address = 0xfa80dc79 (filename not found) [in D:\ ... path ... \Binaries\Win64\RPGTacGame.exe]

```

I’ve been really careful with my lightmap resolutions. My grass cards have just 1x1 or 2x2 lightmaps. Most of my rocks and small plants are no more than 8x8.

---

<div class="post-metadata">

**Author:** ![Nathaniel3W](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nathaniel3W](https://forums.unrealengine.com/u/Nathaniel3W)\
**Post date:** [May 3, 2018, 8:35am UTC](https://forums.unrealengine.com/t/lighting-build-crash-when-foliage-and-toggleable-lights-in-same-map/110334/2 "2018-05-03T08:35:55Z")

</div>

OK, I think I’m able to get around the issue by making them movable lights instead of toggleable. As movable lights, they don’t get included in the lighting build. But they come at increased runtime cost. I think so long as I use them sparingly, I should be fine.
