Possible memory leak after Xcode 8 installation

Create an empty C++ project ( i was working with empty/ no templated project )
wait for Xcode to launch .
wait until you see indexing on status bar in Xcode and monitor system memory, you will see, system memory will start to spike up to a level where it will make your system unresponsive and unsable

  1. Launch Unreal Engine 4.13
  2. Create a C++ Project from empty Template
  3. Wait for Xcode 8 to load up
  4. Wait for few second for XCode to start indexing and observer system memory spiking to a level where it renders
    the system completely

Please see attach image

We’re also seeing this, however I think this is an issue with XCode 8, not specifically UE4.
I’ve worked on other native XCode projects and had the same thing happen, just not as quickly.

interesting, you are probably right, however, i have not been able to reproduce this with any other of my native XCode projects,

I should add, they are nowhere, close as big of a project as UE4

Hey ,

Does the memory continue to rise after XCode is done indexing?

Thanks.

Hi

No, it doesn’t finish indexing, as per screenshot, indexing stays at same location while memory starts to spike up

update
, i included more precise instruction

Hey ,

I did some internal checking and there is a known issue using XCode 8. This is the message I got regarding it:

8 has a serious bug that makes using it with UE4 a very bad experience - it tries to use ~50 GB of memory to index the project. We have to wait for Apple to fix this.

Here is a post regarding the same issue:

https://answers.unrealengine.com/questions/462233/xcode-using-20-gb-of-ram-with-ue4.html

Best option for the moment is don’t use XCode 8.

I reported this bug to apple. Thanks for looking into this

I wouldn’t call it a possible memory leak…Mine went up to like 48 gigs and my mouse barely moved

Issue is resolved in xcode 8.1

Just tested and it never crossed 248 megs of memory used. Yeaaa!! :slight_smile: Also the indexing went super fast!! Not complaining though. Normally it takes 15 minutes or so with 7.2 but now it was done in 30 seconds.