Note that there are some explanatory texts on larger screens.

plurals
  1. POiPhone app works hundreds of times, then crashes from memory error on startup, then never works until restart - why?
    text
    copied!<p>I have a Cocos2d/openGL iPhone game. It's a universal app and I'm dealing with an occasional but nasty error on the iPad.</p> <p>We are loading a lot of textures up front (3 2048x2048 textures). I'm working on reducing this up front load, but what worries me is I really don't understand the root cause of this crash that permanently breaks the app.</p> <p>This is the deal: 1. App works fine for hundreds of plays on the iPad 2. Eventually (I'm guessing due to other programs using up some memory and not letting go or whatever) the app starts crashing on startup. It just closes again in the middle of loading. 3. The App will now never work again on that iPad, closing immediately every time, until the iPad is restarted.</p> <p>Obviously my app is demanding too much memory up front to work reliably every time, I get that. What I don't get is why when it fails once, it has failed forever until the iPad is restarted. Can anyone explain what is going on here?</p> <p>EDIT: forgot to add</p> <h2> organizer crash lags just say low memory, like this every time (I changed my app name to MyAppName below). Again, I know it's low memory, but why does it stay low memory until restart?:</h2> <pre><code>Incident Identifier: E7A2507C-3FB1-4E3B-B315-09F094236541 CrashReporter Key: 0fda9d667f2c6073f20a76809aa25438b6854d15 OS Version: iPhone OS 3.2 (7B367) Date: 2010-04-30 16:59:44 -0400 Free pages: 437 Wired pages: 17228 Purgeable pages: 0 Largest process: MyAppName Processes Name UUID Count resident pages MyAppName &lt;6307ce41802850944baa78d29224fa7f&gt; 22385 (jettisoned) (active) mediaserverd &lt;ea8bac28b06fe3980fdd44b5caceb563&gt; 242 DTMobileIS &lt;a0f651e43881e66f50f8a95abea72921&gt; 5826 notification_pro &lt;4c9a7ee0a5bbe160465991228f2d2f2e&gt; 67 syslog_relay &lt;4ceaed776d2df957fa130712f4ef21d0&gt; 66 notification_pro &lt;4c9a7ee0a5bbe160465991228f2d2f2e&gt; 67 notification_pro &lt;4c9a7ee0a5bbe160465991228f2d2f2e&gt; 67 afcd &lt;4f3c9566e33b4463f05603d990584e5d&gt; 72 ptpd &lt;83de0f774bd6553d513ae9e19b0f9b56&gt; 181 syslogd &lt;66247e305d5c0bf6f1ce1cc950653263&gt; 81 lsd &lt;a4d852c1c8da2b3d231bdc90887b52ba&gt; 130 iapd &lt;a8534cbde4b90ad5915dd26ab03ff3e3&gt; 204 notifyd &lt;5e9d5bee7c3eae1c8b494c79eb11406e&gt; 71 BTServer &lt;64e4a6ea6b1240db2331e05a29caa862&gt; 108 CommCenter &lt;97bf297944ac4bde19bcee96dd23bd5f&gt; 181 SpringBoard &lt;c7a5904c12db7b14334a4edaa4cabaa9&gt; 5339 (active) configd &lt;aca9fa3380322669164fd6b1a3864300&gt; 373 fairplayd.K48 &lt;2d997ffca1a568f9c5400ac32d8f0782&gt; 84 locationd &lt;dd1ea88105c62173908ce767db5c4d37&gt; 599 mDNSResponder &lt;820560222d47a1f2a0dce98a7f8a9721&gt; 108 lockdownd &lt;497fd54c79a680bf29f5d9320f514613&gt; 303 MobileStorageMou &lt;c277b79c2157c4dc5cfc5c3ca35bd5f2&gt; 69 launchd &lt;66972eee4d865c4383b33d985d22994b&gt; 98 **End** </code></pre> <hr>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload