Re: iPad Simulator Intermittent Crash When Accessing Settings
Re: iPad Simulator Intermittent Crash When Accessing Settings
- Subject: Re: iPad Simulator Intermittent Crash When Accessing Settings
- From: Jeffrey Walton <email@hidden>
- Date: Wed, 05 Oct 2011 00:21:50 -0400
On Tue, Oct 4, 2011 at 11:59 PM, Philip McIntosh <email@hidden> wrote:
>> 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.
Philip - I've noticed different behavior between my iPad and the iPad
simulator, even when emulating the exact iOS my iPad runs. The
differences are very slight, but they exist. You can write it off as a
simulator bug, or file a bug report (or perhaps open a paid support
incident). I would be inclined to write it off as a simulator bug
since I consider the hardware to be the ultimate arbitrator.
> 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 use the leaks tool to help locate such things. its served me well in
the past. In addition, running with zombies enabled is also very
helpful. Just remember to remove leak and zombie instrumentation from
the executable's arguments before submitting to the store.
Jeff
_______________________________________________
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