Cooking infinite Loop with UE 5.1 on Mac

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.


There’s a solution?

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

3 Likes

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

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.

1 Like

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?

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

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

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

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?

1 Like

UP

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

[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

1 Like

same. was you able to solve it on mac?

nope…

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

2 Likes

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

It’s under “Platforms” in the second toolbar

Adding MemoryMaxUsedPhysical also, make it work for me

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

1 Like

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…