iPad Simulator Intermittent Crash When Accessing Settings
iPad Simulator Intermittent Crash When Accessing Settings
- Subject: iPad Simulator Intermittent Crash When Accessing Settings
- From: Philip McIntosh <email@hidden>
- Date: Tue, 04 Oct 2011 21:59:56 -0600
> On Tue, 27 Sep 2011 20:25:59 +0000 (GMT), Philip McIntosh <email@hidden> said:
>>>> I have a relatively simple iPad app that overall works pretty well. It doesn't need to store or update any data (I don't think) if it enters the background. The problem is that about 5% of the time, when I double click the home button, and then click the setting app, it will crash as soon as I click the setting app with no messages in the debugger. Does this sound like there is something wrong with my app, and should I be concerned about it, or is it something peculiar with the simulator? Like I said, the majority of the time, I can bounce back and forth between my app and the setting app without a hitch.
>>>
>>> What is "it" in the sentence "it will crash"?
>>
>> Ah. I mean my app crashes. The simulator keeps running but the screen goes black. I also get a SIG ABORT in main.
>
> Then yes, it sounds like there is something wrong with your app, and yes, you should be concerned about it. The problem is evidently being revealed when your app is backgrounded, though the damage (dangling pointer?) may have occurred earlier. The system does clean up a bunch of stuff when the app goes into the background (for example, non-visible views are unloaded). m.
Okay I am officially concerned. I have tested my app numerous ways (Analyzer, Instruments) and by running it on an actual device now for several days without a malfunction. I do have a small (quite small) memory leak, but I don't think this could cause the crash I have described. Any tips for trying to find a dangling pointer? As I understand it, a dangling pointer results when I fail to take ownership of something that I should. What kinds of objects are candidates for retaining in this way? Is there anything relating to settings bundles that are suspect in this area? My best clue is that the crash happens the instant I tap the Settings App icon after the app enters the background.
I have enabled MallocStackLogging but am a little unclear on how to use it.
Maybe the question is too general, but I appreciate any advice to steer me in the right direction.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden