Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Error - Out of memory - When building for iOS

Discussion in 'iOS and tvOS' started by Manu-Jack, Jan 20, 2015.

  1. Manu-Jack

    Manu-Jack

    Joined:
    Jan 20, 2015
    Posts:
    1
    Hello,

    Im running into a very annoying issue right now.
    Since I added another plugin in my project (UltimateMobile), the build for ios won't work, unity crashes with an "Out of memory!" error.
    I tried to use another lib, UniBill, with the same result.
    It looks like, if I add more code and assets, Unity reach a point where the memory isn't enough.

    The project runs fine on Editor mode.
    By the way, I am building on a Mac with 16Gb of ram.
    My project has an Assets folder with about 900MB of content, with about 350MB in the Resources folder.

    Any insight on this? Some help would really be appreciated.

    Thanks
     
  2. dreadris

    dreadris

    Joined:
    Oct 21, 2013
    Posts:
    20
    Hi,

    I'm in similar situation here. After I've updated my Mac to Yosemite, Unity started to crash while trying to build the project. My project is also pretty large (Assets = ca 1,1 GB Resource = ca 230 MB). From what I've read in crash report it seemed that Unity crashes while converting textures. It all started after updating to yosemite and there was no difference whether it was 4.6.2v or 4.5.1v. That's why we thought it could be a matter of system drivers and decided to run MacOS on virtual machine. I've installed MacOS 10.9.5 on vm and Unity was able to build the iOS player - no crashes. This idyll lasted for a few months until recently Unity started to throw error at the end of AOT compilation: "Error building Player: OutOfMemoryException: Out of memory". Error is displayed after the build player progress bar already disappeared. Increasing VM memory from 4 GB to 5.5 GB made no difference. I have already reported a bug concerning the crash on the Mac (http://goo.gl/viuK1A) but it was a few moths ago and there is no response from Unity. I'll get back here if I have any news on this.
     
  3. alpahbeta2000

    alpahbeta2000

    Joined:
    Sep 11, 2013
    Posts:
    9
    Hello,
    we had same problem since 4.6.3p1. does anyone have any solution?

    thanks
     
  4. Mantas-Puida

    Mantas-Puida

    Unity Technologies

    Joined:
    Nov 13, 2008
    Posts:
    1,864
    I believe it should be fixed in patch 4 (4.6.3p4).
    Could you please try it?
     
  5. alpahbeta2000

    alpahbeta2000

    Joined:
    Sep 11, 2013
    Posts:
    9
    thanks mantas.
    patch 4 fixed this issue
     
  6. allpay

    allpay

    Joined:
    Mar 28, 2012
    Posts:
    31
    I have same issue with patch 4.6.3p4 while building for windows