Terminated Due To Memory Issue

Discussion in 'Technical Discussion' started by AaroArts, Aug 12, 2018.

  1. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    Hello
    So I've exported my latest game to Xcode, but when testing on my device is terminates at about 99% on the Splash screen, then crashes.

    Anyone experience this? Or know what this would occur?

    Console Output:
    Screen Shot 2018-08-12 at 16.39.24.png

    Thanks.
    @Andy @NikRudenko @Sean Buildbox
     
    micdune likes this.
  2. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    After loads of testing and debugging, it appears to be the amount of connections I have in my Mind Map.
    Is there an upper limit to the amount of Connections that can be loaded?
     
  3. NikRudenko

    NikRudenko Administrator Staff Member

    Joined:
    Sep 25, 2015
    Messages:
    179
    Likes Received:
    493
    it might be too much images (how many atlases you have?)
    What device you trying to run on ?
     
    AaroArts likes this.
  4. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    Update.
    After going back and re-exporting loads of backups to see when the error started, then trying to remove the most recent UIs/Connections made since the last working version, I can remove the error by disconnecting as little as 5 Connections...

    But I'm yet to add sounds or a shop UI with Connections from every Level.

    I have 3 Atlases, 72 Worlds and 370 UIs.
    Currently testing on an iPhone 6+.
     
    micdune likes this.
  5. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    Another update...

    Connections that create Looping UI's appear to be the problem.
    After changing 9 Connections that would be "looping" to Back Jumps instead, I've been able to add a further 120 connections to a new Shop UI and it currently loads fine.

    There is a down side to using Back Jump though.
    You can't use it to jump back to Worlds that load a random scene because it loads the START scene for a split second before selecting the Scene, creating a flash/glitch, where as if you redirect via a Connection the transition to a random Scene is instant.
     
    Last edited: Aug 12, 2018
    micdune likes this.
  6. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    This is my mind map.
    Each column is a World A - E and each of these World Menus had Connections back to the previous World Menu (4 Connections).
    Also the 5 UI's at the very top had Connections back to the previous World Menu too.
    These were causing the Memory Error.

    After removing the 9 (looping) Connections and adding Back Jumps instead, it loaded.
    I was then able to at the Shop in the top left, which has 120 new Connections (2 form each level) and still loads.
    So this shows that looping was the problem.

    Screen Shot 2018-08-12 at 20.02.29.png
     
    micdune likes this.
  7. bmsingha

    bmsingha Serious Boxer

    Joined:
    Feb 17, 2016
    Messages:
    517
    Likes Received:
    198
    @AaroArts Yes exactly, I too had this same issue in one my game. It was superly designed but unfortunately there was a need to remove some of the images as BB wasn't able to handle this. After removing the png, it stopped crashing so eventually it's nothing but something as a limit to Buildbox
     
  8. micdune

    micdune Boxer

    Joined:
    Dec 27, 2016
    Messages:
    57
    Likes Received:
    13
    @AaroArts I actually have the same issue and have actually sent a bbdoc to support some time ago. Game loads on iphone 6s for instance but crashes on iphone 6, same for some android devices and regardless of their ram specs. It's actually not related to the number of images since i have only two atlases.

    Thanks for the investigation, will look into my file, try your solution and come back to post results.
     
    AaroArts likes this.
  9. micdune

    micdune Boxer

    Joined:
    Dec 27, 2016
    Messages:
    57
    Likes Received:
    13
    A quick update: i have replaced looping connections in my game with back jump but it didn't change anything, gale keeps crashing on some devices. I have sent my bbdoc to support and as far as i know, Nik is looking into it to see here this problem comes from.
     
  10. Vadim

    Vadim Boxer

    Joined:
    Aug 31, 2018
    Messages:
    7
    Likes Received:
    1
    Hi, @micdune
    Did you find a solution to this issue?
     
  11. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    I solved mine by removing unnecessary connections and replacing them with Back Jumps instead.
     
  12. micdune

    micdune Boxer

    Joined:
    Dec 27, 2016
    Messages:
    57
    Likes Received:
    13
    Actually, the team provided us with an early version 2.3.7. It fixed the problem and i would assume the fix is in the final release (haven't tried yet).
     
  13. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    Which build is this?
     
  14. micdune

    micdune Boxer

    Joined:
    Dec 27, 2016
    Messages:
    57
    Likes Received:
    13
    Hmm, as far as i know Nik had a look at our game and managed to fix that very particular issue we had. Actually it seemed to be quite a tricky one. The about box refers to "Version 2.3.7 / B#2238".
     

Share This Page