# Cooking infinite Loop with UE 5.1 on Mac

**URL:** <https://forums.unrealengine.com/t/cooking-infinite-loop-with-ue-5-1-on-mac/717626>\
**Category:** Mobile\
**Tags:** Cooking, unreal-engine, crash, bug-report, question, Cooking-Failed\
**Created:** [November 29, 2022, 9:52am UTC](https://forums.unrealengine.com/t/cooking-infinite-loop-with-ue-5-1-on-mac/717626 "2022-11-29T09:52:18Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![lully](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lully](https://forums.unrealengine.com/u/lully)\
**Post date:** [November 29, 2022, 9:52am UTC](https://forums.unrealengine.com/t/cooking-infinite-loop-with-ue-5-1-on-mac/717626/1 "2022-11-29T09:52:18Z")

</div>

In my UE5.1 version when i tried to do a cooking for iOS, it started a infinite loop and doesn’t do anything else, no crashes or error, just compiling even for 24+ hours. I posted a screenshoot of a part of the loop.

 ![Screenshot 2022-11-29 alle 10.27.07](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/a/1/fa1cffe752c28ca875f18719782a6d061f9f259f.jpeg)  
There’s a solution?

I have MacOS Ventura and XCode 14.1 installed on my Macbook Pro 2022 with m1 pro.

---

<div class="post-metadata">

**Author:** ![andreyrd1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@andreyrd1](https://forums.unrealengine.com/u/andreyrd1)\
**Post date:** [November 30, 2022, 11:37am UTC](https://forums.unrealengine.com/t/cooking-infinite-loop-with-ue-5-1-on-mac/717626/2 "2022-11-30T11:37:39Z")

</div>

Having the same issue here. Tried to change various memory settings in BaseEngine.ini but no luck.

---

<div class="post-metadata">

**Author:** ![andreyrd1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@andreyrd1](https://forums.unrealengine.com/u/andreyrd1)\
**Post date:** [November 30, 2022, 1:04pm UTC](https://forums.unrealengine.com/t/cooking-infinite-loop-with-ue-5-1-on-mac/717626/3 "2022-11-30T13:04:15Z")

</div>

Got it.

Somewhere in the log it should also show how much memory it actually has available. If you set `MemoryMinFreePhysical` and `MemoryMinFreeVirtual` in your BaseEngine.ini (/Users/Shared/Epic Games/UE\_5.1/Config/) to just under that amount (I had to go all the way down the 768), it will complete successfully.

---

<div class="post-metadata">

**Author:** ![Automaticow](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Automaticow](https://forums.unrealengine.com/u/Automaticow)\
**Post date:** [December 4, 2022, 10:36pm UTC](https://forums.unrealengine.com/t/cooking-infinite-loop-with-ue-5-1-on-mac/717626/4 "2022-12-04T22:36:30Z")

</div>

I’m seeing the same problem as described here. I can’t seem to get the setting properly enabled. Can you share your .ini config lines so that the rest of us can learn how to master this dark art?

---

<div class="post-metadata">

**Author:** ![Automaticow](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Automaticow](https://forums.unrealengine.com/u/Automaticow)\
**Post date:** [December 5, 2022, 8:56pm UTC](https://forums.unrealengine.com/t/cooking-infinite-loop-with-ue-5-1-on-mac/717626/5 "2022-12-05T20:56:09Z")

</div>

Finally figured it out. In unreal engine 5.1, the setting is in the BaseEditor.ini file, not the BaseEngine.ini file

---

<div class="post-metadata">

**Author:** ![andreyrd1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@andreyrd1](https://forums.unrealengine.com/u/andreyrd1)\
**Post date:** [December 6, 2022, 2:12pm UTC](https://forums.unrealengine.com/t/cooking-infinite-loop-with-ue-5-1-on-mac/717626/6 "2022-12-06T14:12:05Z")

</div>

Yes, sorry - updating my original reply.  
Apparently I can’t…

---

<div class="post-metadata">

**Author:** ![lully](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lully](https://forums.unrealengine.com/u/lully)\
**Post date:** [December 9, 2022, 9:58am UTC](https://forums.unrealengine.com/t/cooking-infinite-loop-with-ue-5-1-on-mac/717626/7 "2022-12-09T09:58:06Z")

</div>

sorry, i don’t find BaseEditor.ini in my Project, where is it?

---

<div class="post-metadata">

**Author:** ![CatalanGeneral](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/catalangeneral/32/633574_2.png) [@CatalanGeneral](https://forums.unrealengine.com/u/CatalanGeneral)\
**Post date:** [December 26, 2022, 9:55pm UTC](https://forums.unrealengine.com/t/cooking-infinite-loop-with-ue-5-1-on-mac/717626/8 "2022-12-26T21:55:47Z")

</div>

I still have this problem , but I can’t find those two things to set on any of the files… how the heck did you find those lines? or how do I fix this now?

---

<div class="post-metadata">

**Author:** ![lully](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lully](https://forums.unrealengine.com/u/lully)\
**Post date:** [January 16, 2023, 2:24pm UTC](https://forums.unrealengine.com/t/cooking-infinite-loop-with-ue-5-1-on-mac/717626/9 "2023-01-16T14:24:29Z")

</div>

UP

---

<div class="post-metadata">

**Author:** ![Malquadrato](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Malquadrato](https://forums.unrealengine.com/u/Malquadrato)\
**Post date:** [January 18, 2023, 5:10pm UTC](https://forums.unrealengine.com/t/cooking-infinite-loop-with-ue-5-1-on-mac/717626/10 "2023-01-18T17:10:29Z")

</div>

I added these rows in the Config/DefaultEditor.ini file:

```auto
[CookSettings]
MemoryMinFreeVirtual=1024
MemoryMinFreePhysical=512

```

It solves that memory error, but I can’t manage to finish the packaging build, because after half an hour it stucks

Update: For Android for me it works only selecting ASTC. If you still have the memory problem you can try to close all the other apps in backgrounds that are using a lot of RAM

---

<div class="post-metadata">

**Author:** ![Footman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Footman](https://forums.unrealengine.com/u/Footman)\
**Post date:** [February 13, 2023, 8:51am UTC](https://forums.unrealengine.com/t/cooking-infinite-loop-with-ue-5-1-on-mac/717626/11 "2023-02-13T08:51:46Z")

</div>

same. was you able to solve it on mac?

---

<div class="post-metadata">

**Author:** ![lully](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lully](https://forums.unrealengine.com/u/lully)\
**Post date:** [February 13, 2023, 12:04pm UTC](https://forums.unrealengine.com/t/cooking-infinite-loop-with-ue-5-1-on-mac/717626/12 "2023-02-13T12:04:45Z")

</div>

nope…

---

<div class="post-metadata">

**Author:** ![Andrew\_Bindraw](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/andrew_bindraw/32/1008648_2.png) [@Andrew\_Bindraw](https://forums.unrealengine.com/u/Andrew_Bindraw)\
**Post date:** [February 20, 2023, 9:27am UTC](https://forums.unrealengine.com/t/cooking-infinite-loop-with-ue-5-1-on-mac/717626/13 "2023-02-20T09:27:06Z")

</div>

Open BaseEditor.ini  
/Users/Shared/Epic Games/UE\_5.1/Engine/Config/BaseEditor.ini  
Section  
[CookSettings]  
MemoryMinFreePhysical=2048  
MemoryMinFreeVirtual=2048

Open project logs and find

CookSettings.MemoryMinFreeVirtual: Available virtual memory XMiB less than XMiB  
CookSettings.MemoryMinFreePhysical: Available physical memory XMiB less than XMiB

Set correct values for  
BaseEditor.ini  
[CookSettings]  
MemoryMinFreePhysical  
MemoryMinFreeVirtual

Optional: force quit unused apps

Done

---

<div class="post-metadata">

**Author:** ![syduar82](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@syduar82](https://forums.unrealengine.com/u/syduar82)\
**Post date:** [February 20, 2023, 4:26pm UTC](https://forums.unrealengine.com/t/cooking-infinite-loop-with-ue-5-1-on-mac/717626/14 "2023-02-20T16:26:07Z")

</div>

Greetings I just installed unreal 5.1 and I can’t find the cooking option.

 ![Screenshot 2023-02-20 085442](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/5/b/15b6d3186eb507fbeb1455ca51b274c5e529f29e.jpeg)

---

<div class="post-metadata">

**Author:** ![andreyrd1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@andreyrd1](https://forums.unrealengine.com/u/andreyrd1)\
**Post date:** [February 24, 2023, 3:58pm UTC](https://forums.unrealengine.com/t/cooking-infinite-loop-with-ue-5-1-on-mac/717626/15 "2023-02-24T15:58:08Z")

</div>

It’s under “Platforms” in the second toolbar

---

<div class="post-metadata">

**Author:** ![Gustavo\_Lima](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gustavo\_Lima](https://forums.unrealengine.com/u/Gustavo_Lima)\
**Post date:** [April 1, 2023, 1:59am UTC](https://forums.unrealengine.com/t/cooking-infinite-loop-with-ue-5-1-on-mac/717626/16 "2023-04-01T01:59:08Z")

</div>

Adding MemoryMaxUsedPhysical also, make it work for me

[CookSettings]  
MemoryMinFreePhysical=1024  
MemoryMinFreeVirtual=1024  
MemoryMaxUsedPhysical=16384

---

<div class="post-metadata">

**Author:** ![Drakon74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Drakon74](https://forums.unrealengine.com/u/Drakon74)\
**Post date:** [April 29, 2023, 9:49am UTC](https://forums.unrealengine.com/t/cooking-infinite-loop-with-ue-5-1-on-mac/717626/17 "2023-04-29T09:49:14Z")

</div>

I had to go as low as 512 Mib, even though my Mac M1 has 16 GB total memory and, at least according to the activity monitor, 4 GB are still free, even while the cooking runs into the loop error.

This has to be a bug…
