# Memory Leak in 4.15 when using planar reflection component

**URL:** <https://forums.unrealengine.com/t/memory-leak-in-4-15-when-using-planar-reflection-component/392060>\
**Category:** Platform & Builds\
**Tags:** editor-crash, memory-leak, planar-reflection, unreal-engine, crash, question\
**Created:** [April 27, 2017, 1:42pm UTC](https://forums.unrealengine.com/t/memory-leak-in-4-15-when-using-planar-reflection-component/392060 "2017-04-27T13:42:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![BlueMind\_Studio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BlueMind\_Studio](https://forums.unrealengine.com/u/BlueMind_Studio)\
**Post date:** [April 27, 2017, 1:42pm UTC](https://forums.unrealengine.com/t/memory-leak-in-4-15-when-using-planar-reflection-component/392060/1 "2017-04-27T13:42:16Z")

</div>

Hello there,  
I’ve notices big Problemes while using the planar reflection componenten (not in the Viewport as Actor, but as Part of a Blueprint). It is not excaclty a Mem “Leak”, but it goes cracy at all. I think the problem is mentioned in UE-30669 but it is resolved as “won’t fix” !?

My Setup: Static Mesh Plane with a reflective Material attached. A Planar Reflection as a Child Component for taking the parents Location and Rotation.

As soon as you start “playing” around with the mesh - extremely on rotation - your RAM will go Crazy and your System - or at least the Engine - crashes.

I’ve testet this in 4.15 with a new blank project. In 4.14 I’ve noticed the component is not working at all (not the Actor - this works fine) which made me to upgrade my project to 4.15.

- Attached Screenshot you can see my RAM increase after roating the MESH only 10 Degrees. Watch at the Committed RAM and the 100% Usage of “Datenträger 1 D:” (Second HDD where my SwapFile is setup)

 ![135773-rotation.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/e/9/0e902d0de5840070dfb07c53d569905717b53889.png)

- The Secend Screenshot is after starting to play which seems to be the only way to clean up the RAM.

![135774-startplaying.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/e/d/4edb4d10ad1610f20ecebf5bb2b897d0f60e71ad.png)

---

<div class="post-metadata">

**Author:** ![BlueMind\_Studio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BlueMind\_Studio](https://forums.unrealengine.com/u/BlueMind_Studio)\
**Post date:** [April 27, 2017, 2:58pm UTC](https://forums.unrealengine.com/t/memory-leak-in-4-15-when-using-planar-reflection-component/392060/2 "2017-04-27T14:58:10Z")

</div>

executing a “save all” seems to cleanup the ram also!

---

<div class="post-metadata">

**Author:** ![BlueMind\_Studio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BlueMind\_Studio](https://forums.unrealengine.com/u/BlueMind_Studio)\
**Post date:** [May 4, 2017, 1:30pm UTC](https://forums.unrealengine.com/t/memory-leak-in-4-15-when-using-planar-reflection-component/392060/3 "2017-05-04T13:30:17Z")

</div>

No one? .

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [May 9, 2017, 4:07pm UTC](https://forums.unrealengine.com/t/memory-leak-in-4-15-when-using-planar-reflection-component/392060/4 "2017-05-09T16:07:46Z")

</div>

Hey Adnoh,

So I was able to reproduce the Out of Memory issue and decided to go ahead and reopen the ticket you linked. There’s definitely a memory consumption issue here. You can see the updated report by following the link below. The issue went untouched for a while which flagged it for auto-expiration which is why it was closed as ‘Won’t Fix’

**[UE-30669](https://issues.unrealengine.com/issue/UE-30669)**

I did notice that when you compiled or saved the blueprint, the memory seems to free up a little bit. Now depending on how much RAM you have, you might hit the Out of Memory a lot sooner than myself (64GB RAM).

Cheers,

---

<div class="post-metadata">

**Author:** ![BlueMind\_Studio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BlueMind\_Studio](https://forums.unrealengine.com/u/BlueMind_Studio)\
**Post date:** [May 9, 2017, 5:00pm UTC](https://forums.unrealengine.com/t/memory-leak-in-4-15-when-using-planar-reflection-component/392060/5 "2017-05-09T17:00:24Z")

</div>

Hey Andrew, thank you for your response.  
No, Compilation doesn’t help. But if you hit saveAll or start a PIE it frees up the memory.

The Problem occurs only in the Editor, when rotating the PlanarReflection in Game everything is fine (but I have heavy performance impact using the component at all! I need it for 2 CarMirrors, but it drops my FPS from 120 to 30 and each mirror requires around 6ms of GPU Time - I’m going for SceneCapture2d because it is useless in my case until getting fixed but the quality is not near of the great one I get out of PlanarReflection)

I’ve got 64GB in my notebook too, but it is not enought, even with the swap file 🙂 the problem is not the RAM, it is eating up the VideoRam - so my GPUMemory of 6GB are gone if I rotate the planar a few times - then it starts eating up the System RAM to free up the GPU.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [May 9, 2017, 5:29pm UTC](https://forums.unrealengine.com/t/memory-leak-in-4-15-when-using-planar-reflection-component/392060/6 "2017-05-09T17:29:22Z")

</div>

Well now the issue has been reopened, the memory consumption VRAM or RAM issues should get addressed in any case. I will say be careful with using SceneCapture2D within blueprints, as they also have a known issue with memory consumption when manipulating a blueprint actor that contains a SceneCapture2D component.

**[UE-43455](https://issues.unrealengine.com/issue/UE-43455)**

Cheers,

H
