Search Unity

iOS Bulding Error ( EXC_RESOURCE RESOURCE_TYPE_MEMORY (limit=2048 MB, unused=0x0))

Discussion in 'Editor & General Support' started by udede, Jul 18, 2018.

  1. udede

    udede

    Joined:
    Jul 26, 2011
    Posts:
    62
    Hi

    I am using 5.6.6 version

    I have this error

    Thread 1: EXC_RESOURCE RESOURCE_TYPE_MEMORY (limit=2048 MB, unused=0x0)

    city was compiled with optimization - stepping may behave oddly; variables may not be available.
     

    Attached Files:

  2. udede

    udede

    Joined:
    Jul 26, 2011
    Posts:
    62
    help me please!!!

    thanks!
     
  3. udede

    udede

    Joined:
    Jul 26, 2011
    Posts:
    62
    why does nobody write something??
     
  4. sama-van

    sama-van

    Joined:
    Jun 2, 2009
    Posts:
    1,657
    Having the same issue right now actually from iPhone 7! :D

    Code (CSharp):
    1. EXC_RESOURCE RESOURCE_TYPE_MEMORY (limit=1400 MB, unused=0x0)
     
    Last edited: Oct 15, 2018
  5. andrew_lee

    andrew_lee

    Joined:
    Dec 13, 2016
    Posts:
    1
    I was running into this issue earlier today. For me, it seems to be an Xcode 10 issue.

    When launching my app, it would immediately crash on a new iPad when loading the main menu with the error:
    EXC_RESOURCE RESOURCE_TYPE_MEMORY (limit=700 MB, unused=0x0)


    I downloaded Xcode 9.4.1 from the iOS Developer archive, but of course it doesn't contain support for iOS 12, so I also needed to copy those files from Xcode 10 into Xcode 9.4.1.

    The only strange thing I have noticed now is that debugging in Xcode 10 will sometimes get past the menu, but then crash at a later time.

    It's not the greatest solution, but it seems to be working for me. Give that a try. I wish I had a better idea of why it is actually happening.
     
    wuzhouu3d and hayksmartpixeltv like this.
  6. sama-van

    sama-van

    Joined:
    Jun 2, 2009
    Posts:
    1,657
    I did have massive log from my AssetBundle Factory since I am download a very lot of asset once into the apps...
    After muting all those logs, the error disappeared :)
     
  7. hayksmartpixeltv

    hayksmartpixeltv

    Joined:
    Jul 18, 2018
    Posts:
    1
    Thanks a lot for this solution. It's really helped me too.
     
  8. wuzhouu3d

    wuzhouu3d

    Joined:
    Nov 3, 2014
    Posts:
    6
    It's really helped me. Thank you so much!
     
  9. nmerkas

    nmerkas

    Joined:
    Mar 14, 2015
    Posts:
    7
    Thank you very much @andrew_lee . After loosing a whole day, this helped me.
     
  10. kantagara

    kantagara

    Joined:
    Sep 15, 2014
    Posts:
    11
    how did you copy everything for iOS 12 from xcode 10 to 9?
     
    Atif_Butt likes this.
  11. unity_SoYKTUYipHIJAg

    unity_SoYKTUYipHIJAg

    Joined:
    Sep 4, 2018
    Posts:
    1

    how did you copy everything for iOS 12 from xcode 10 to 9?
     
  12. wana7262

    wana7262

    Joined:
    Jul 2, 2012
    Posts:
    97
    how did you copy everything for iOS 12 from xcode 10 to 9?
     
  13. Atif_Butt

    Atif_Butt

    Joined:
    Sep 22, 2017
    Posts:
    6
    right click on Xcode and show package content then
    /Contents/Developer/Platforms/iPhoneOS.platform here is the path for these platforms you can switch iOS support between two different Xcode versions
     
  14. FingerClicks

    FingerClicks

    Joined:
    Jul 30, 2017
    Posts:
    5
    I have also this problem.

    UnityGfxDeviceWorker (32): EXC_RESOURCE RESOURCE_TYPE_MEMORY (limit=650 MB, unused=0x0)
     
  15. renman3000

    renman3000

    Joined:
    Nov 7, 2011
    Posts:
    6,564
    Same in Xcode 11.
     
    transat likes this.
  16. freedom667

    freedom667

    Joined:
    Sep 6, 2015
    Posts:
    405
    I have the same issue
    JobWorker (32): EXC_RESOURCE RESOURCE_TYPE_MEMORY (limit=650 MB, unused=0x0)
     
    adammpolak likes this.
  17. transat

    transat

    Joined:
    May 5, 2018
    Posts:
    772
    In Xcode 11.3.1 I'm getting:

    Loading.PreloadManager (37): EXC_RESOURCE RESOURCE_TYPE_MEMORY (limit=1450 MB, unused=0x0)
     
  18. jeff-renderheads

    jeff-renderheads

    Joined:
    Oct 4, 2016
    Posts:
    1
    Is it not because you have exceeded the memory capacity on the phone? There is a limit to the amount of textures that can be loaded into memory. Try selecting all your textures and changing the Max Size from 2048 to 1024 and see if it persists?
     
    uniteiro likes this.
unityunity