Memory leaks?
zenoah
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
@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.
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.
just put it on Dropbox and send us a link
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
Yep we are testing our fixes in the next nightly build and things are looking promising.
@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.
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.