Terminated due to memory issue

Discussion in 'How Can I...?' started by nourhaider, Mar 18, 2016.

  1. nourhaider

    nourhaider Boxer

    Joined:
    Mar 12, 2016
    Messages:
    6
    Likes Received:
    0
    Hello,

    i have built my first app with buildbox ( thanks to this great platform ),
    now im having a hard time figuring our this error,
    the game i have built its size before exporting is 23.7 mb but after exporting to iOS is becomes 222 mb, tried to trace where is the main source of this size by going through the exported source files, and found that one file has 126 mb which is PTAdHeyzap file and by the way i don't even use heyzap as an ads source on my game but still taking more that half the size of the game, i tried to remove the file by simply deleting it ( thought that with fix the problem ) but i got an error of missing files, so i exported the game again and tried it without removnig heyzap file, when i tried to open up the game on xcode simulator its working but very slow and when i tried to open up the game on the phone i keep getting this error,
    "Terminated due to memory issue"
    [​IMG]
    can you please tell me how to fix it, and how to remove heyzap without getting the error of missing files,
    Any help would be appreciated,

    Regards,
     

    Attached Files:

  2. trudnai

    trudnai Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,235
    Likes Received:
    701
    Hi, HeyZap takes 126MB on disk or memory? If you know how to develop software it is fairly easy to create an empty stub.

    Btw you do not have 60 Atlases in your game, do you? If you do, you may can consider to reduce it as tat might be a problem...
     
    nourhaider likes this.
  3. nourhaider

    nourhaider Boxer

    Joined:
    Mar 12, 2016
    Messages:
    6
    Likes Received:
    0
    i don't know how to develop/coding a software, this is my first time to built a game ( easy to do it with buildbox )
     
  4. heathclose

    heathclose Miniboss Boxer

    Joined:
    Jan 28, 2016
    Messages:
    1,810
    Likes Received:
    1,026
    Screen Shot 2016-03-18 at 8.24.00 PM.png
     
    nourhaider likes this.
  5. nourhaider

    nourhaider Boxer

    Joined:
    Mar 12, 2016
    Messages:
    6
    Likes Received:
    0
    Wow, i have found 86 atlases,
    Is there any possible way to merge them together or decrease the number without loosing anything ?
    Do you this is the reason for the error ?
     
  6. heathclose

    heathclose Miniboss Boxer

    Joined:
    Jan 28, 2016
    Messages:
    1,810
    Likes Received:
    1,026
    nourhaider likes this.
  7. nourhaider

    nourhaider Boxer

    Joined:
    Mar 12, 2016
    Messages:
    6
    Likes Received:
    0
    thank you that really helped me to decrease the number of atlases down to 36, But still have the same error "Terminated due to memory issue",
    any idea why ?
    am i going to need to start from scratch ?:(
    and also Heyzap folder still the largest one in size.
     
    Last edited: Mar 18, 2016
  8. Machine Rises

    Machine Rises Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    591
    Likes Received:
    834
    36 atlases is way too many. You need to keep it under 5 or 6 I think.
     
    nourhaider likes this.
  9. nourhaider

    nourhaider Boxer

    Joined:
    Mar 12, 2016
    Messages:
    6
    Likes Received:
    0
    How can i do that ?
    by the way i got the atlases down to 36 by clicking optimized and optimize atlas on the atlas editing area,
     
  10. AndyG

    AndyG Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,100
    Likes Received:
    915
    you really need to get that down to around 10 or so. You either have a lot of animations so lots of png's or perhaps the png's themselves are too big. Are you finding you are resizing your images smaller in the game? If so you need to resize them externally to the correct dimensions and then replace those images in the game. Then do all the Atlas optimizing again etc.
    Also make sure you go into Tools and remove the various unused objects (then Atlas optimize again).
     

Share This Page