Tuesday, 17 September 2013

XCODE App has memory crash after

XCODE App has memory crash after

I have a problem, I have written my first app which is just about finished.
There is one VC (the start up) with a button to take the user to a game in
another VC.
The user can return to the first (menu) VC by clicking on a button in the
second VC.
During testing i noticed that when the home button is clicked and then the
app is bought back into view and the PLAY button is clicked the app
crashes and the device restarts.
To try and isolate the cause, i removed the iAD and Games Centre from the
game VC. The same problem occurs but now only after repeating the home
button/bring back to focus/PLAY around 2-3 times.
Below is the device console but I'm new to this so its not clear to me.
When it crashes it shows the second VB for a millisecond or partly
displays before it crashes.
From what it can read online something is using a lot of memory but i cant
see anything in the code (viewdidload etc).
I ran the Analyze and only Dead stores were detected.
I cant emulate the same problem on the simulator, it only occurs on the
devise (iPhone 3). I suspect because the Mac has more memory.
When i use the Analyse Instrument it doesn't show any spike in memory.
Please let me know if you need any other information. I've "nutted" out a
lot of problems to this point, I cant wait to get it into the store!!

Sep 18 13:08:38 Andys-iPhone mobile_house_arrest[178] <Error>: Max open
files: 78

No comments:

Post a Comment