# Fatal error C1060: compiler is out of heap space while compilimg sources

**URL:** <https://forums.unrealengine.com/t/fatal-error-c1060-compiler-is-out-of-heap-space-while-compilimg-sources/367880>\
**Category:** Pipeline & Plugins\
**Tags:** fatal-error, unreal-engine, compiler, question\
**Created:** [August 22, 2016, 8:58am UTC](https://forums.unrealengine.com/t/fatal-error-c1060-compiler-is-out-of-heap-space-while-compilimg-sources/367880 "2016-08-22T08:58:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_c91f08fc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c91f08fc](https://forums.unrealengine.com/u/anonymous_user_c91f08fc)\
**Post date:** [August 22, 2016, 8:58am UTC](https://forums.unrealengine.com/t/fatal-error-c1060-compiler-is-out-of-heap-space-while-compilimg-sources/367880/1 "2016-08-22T08:58:16Z")

</div>

I am trying to compiling UE4 source code with visual studio2015 (upd2) . Win8 -64bit 10G Ram, total ram usage\<70%.  
What to do with this problem?

---

<div class="post-metadata">

**Author:** ![Jakey113G](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jakey113G](https://forums.unrealengine.com/u/Jakey113G)\
**Post date:** [September 20, 2016, 4:34pm UTC](https://forums.unrealengine.com/t/fatal-error-c1060-compiler-is-out-of-heap-space-while-compilimg-sources/367880/2 "2016-09-20T16:34:25Z")

</div>

My guess is this isn’t actually a ram issue and is more likely a hard drive space issue. When compiling very large projects that use a large amount of ram, your PC might use a swap file to store some of the in-memory compilation, so the RAM is free for other more crucial things.

Maybe this link of suggested solutions can help you [Fatal Error C1060 | Microsoft Docs](https://msdn.microsoft.com/en-us/library/yz7kx3y2.aspx)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d2a56a15](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d2a56a15](https://forums.unrealengine.com/u/anonymous_user_d2a56a15)\
**Post date:** [September 23, 2016, 2:10pm UTC](https://forums.unrealengine.com/t/fatal-error-c1060-compiler-is-out-of-heap-space-while-compilimg-sources/367880/3 "2016-09-23T14:10:18Z")

</div>

If you are using incredibuild you might want to update to the latest version which may also fix your issue.

---

<div class="post-metadata">

**Author:** ![EvlSpirit](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EvlSpirit](https://forums.unrealengine.com/u/EvlSpirit)\
**Post date:** [May 8, 2018, 2:26pm UTC](https://forums.unrealengine.com/t/fatal-error-c1060-compiler-is-out-of-heap-space-while-compilimg-sources/367880/4 "2018-05-08T14:26:47Z")

</div>

just for fun [https://twitter.com/Evl\_Spirit/status/993777818294276096](https://twitter.com/Evl_Spirit/status/993777818294276096)

---

<div class="post-metadata">

**Author:** ![DentonJC](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DentonJC](https://forums.unrealengine.com/u/DentonJC)\
**Post date:** [October 21, 2022, 8:31pm UTC](https://forums.unrealengine.com/t/fatal-error-c1060-compiler-is-out-of-heap-space-while-compilimg-sources/367880/5 "2022-10-21T20:31:51Z")

</div>

Make sure that the hard drive that the project you are currently compiling on has a decent size of virtual memory set up in windows.

Go to Start-\>Adjust the Appearance and Performance of Windows-\> Advanced-\>VirtualMemory-\>Change

Then select your hard drive you are compiling on and use a custom size. Set the Initial and Max sizes to be the same. As a rule of thumb I prefer to have about 10% of the total storage space to be dedicated to virtual memory. So on a 500GB harddrive, 50GB would be dedicated to virtual memory.

If you still get the error after setting the memory, you can try increasing it more.

Note that high core count CPU’s will require more virtual memory than lower core counts.  
A 32 core cpu is going to need considerably more virtual memory and RAM for compiling big projects like Unreal.

If you don’t want to set aside virtual memory, you can also decrease the number of cores you use to compile with.

Ideally, you should just update your RAM size, since that is the best option. But expanding your virtual memory is the next option if you can’t add more.

---

<div class="post-metadata">

**Author:** ![calyptus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@calyptus](https://forums.unrealengine.com/u/calyptus)\
**Post date:** [October 12, 2023, 5:35pm UTC](https://forums.unrealengine.com/t/fatal-error-c1060-compiler-is-out-of-heap-space-while-compilimg-sources/367880/6 "2023-10-12T17:35:55Z")

</div>

This worked for me! thank you!
