Memory leaks?

zenoahzenoah Member, PRO Posts: 56

So, I've made a game with 15 levels (scenes). I just use the 'Next Scene' behaviour to change from scene to scene. The RAM used when starting at level 1 is about 70Mb. By the time i've reached level 12 it's over 600Mb!

Is this correct behaviour? Am I suppose to be doing something to release all of the RAM being used?

I've attached a couple of Instrument screenshots just before it crashes on the device. The black bars on the graph are memory warnings.

Can't really publish it in this state...

Thanks,
Anthony

Comments

  • BlackCloakGSBlackCloakGS Member, PRO Posts: 2,250

    @zenoah submit a support ticket with a trace file from instruments and you project and i will look into it. We may have fix this issue on the nightly build.

  • zenoahzenoah Member, PRO Posts: 56

    Tried a few times upload to the support form but it times out. Project is 32mb compressed.

    Not sure if the last attempt made it by splitting it with 7z.

  • BlackCloakGSBlackCloakGS Member, PRO Posts: 2,250

    just put it on Dropbox and send us a link

  • HappyKat78HappyKat78 Member, BASIC Posts: 173

    I'm still finding memory continuously increases on scene changes too, so I don't believe RAM is properly being dumped. Is a fix for this being worked on?? Thanks

  • BlackCloakGSBlackCloakGS Member, PRO Posts: 2,250

    Yep we are testing our fixes in the next nightly build and things are looking promising.

  • vikingviking Member, PRO Posts: 322

    @BlackCloakGS I am so happy to hear that you guys are working on this and have a potential fix :) I assume this is related to the changeTableValue + or - X issue that leaks memory after a scene change, right? I have a project that has been stalled because of this bug as I can't get through half of my levels when testing on the device without crashing out of memory.

  • BenSawyerBenSawyer Member, PRO Posts: 37

    I think I have this bug still happening to me in the latest RC but I need to understand more what this changetablevalue issue is. I have a game where I change a table value in a table with another value from the same table, then when I change scenes there is no memory release.

Sign In or Register to comment.