Unreal 5.1 + Xcode 14.2 memory leak

Hi there! There seams to be a memory leak in UE 5.1 or in Xcode currently on MacOS. I had the following issues while testing some example projects from UE5.1.

  • when starting the editor with Xcode attached, the editor takes up about 15GB RAM which is constantly growing even without any interaction with the editor. At some point the OS starts to create swap memory on the disc which can grow up to 100GB and then Xcode crashes! The whole editor is really unresponsive (the whole machine is) after the swap memory reaches around 10GB which happens after 5 minutes of usage.
  • I also noticed that when I build any project or the unreal engine, I have to restart the build 3-4 times, as the swap memory is also created and grows steadily till 100GB when all crashes again. This one is particularly annoying as the whole dotnet and clang processes won’t be terminated and I have to manually kill all of them otherwise I cannot start a new build…

Any help is highly appreciated, but my gut feeling tells me we need to wait for a fix from either UE or Xcode, but I might be wrong and there’s a hidden setting I need to set?

No problems with any other apps, it just happens with UE5.1 but might be also a Xcode bug

“SOLVED”

  • I switched to VS Code as Xcode was just killing my Mac with the 100GB memory allocated. Now with VSCode, it eats max 10GB RAM which is fully OK and the Mac is fast again. Intellisence also works ok - it’s really slow but it finds everything given 5-30s of time - with Xcode, Intellisence was completely broken, so this is a huge bonus.

I had significant trouble getting vs code to compile anything. Did you follow any specific tutorial to get it setup?

Do you also happen to get this crash on top of 100GB memory?

void FMetalDynamicRHI::RHICopySharedMips(FRHITexture2D* DestTexture2D, FRHITexture2D* SrcTexture2D)

{
NOT_SUPPORTED(“RHICopySharedMips”);
}

I somehow can’t generate VSCode on mac 5.1.1. Is this github release real or staging with release label? anyone knows?