[MonoTouch] App is crashing at random - the app completely freezes indefinitely
Rolf Bjarne Kvinge
rolf at xamarin.com
Wed Mar 7 11:00:21 UTC 2012
Hi,
On Wed, Mar 7, 2012 at 12:42 AM, MilkyJoe <leigh.bowers at curvenet.co.uk>wrote:
> Hi. Sorry for the delayed response. I had to add a number of new features
> to
> the app, but I'm back to trying to get to the bottom of this now. It hasn't
> frozen for a few days, but it just did with:
>
> Mar 6 22:52:30 unknown
> UIKitApplication:com.company.MilkyJoeApp[0xb009][4417] <Notice>:
> [CWEB-INFO]
> HomeScreen.ViewDidAppear()
> Mar 6 22:52:33 unknown
> UIKitApplication:com.company.MilkyJoeApp[0xb009][4417] <Notice>:
> [CWEB-INFO]
> ArticleScreen.ViewDidLoad()
> Mar 6 22:52:33 unknown
> UIKitApplication:com.company.MilkyJoeApp[0xb009][4417] <Notice>:
> [CWEB-INFO]
> ArticleScreen.ViewWillAppear(), ArticleId: 23
> Mar 6 22:52:33 unknown
> UIKitApplication:com.company.MilkyJoeApp[0xb009][4417] <Notice>:
> [CWEB-INFO]
> ArticleScreen.webView.ShouldStartLoad():
>
> file:///private/var/mobile/Applications/E570F685-302D-44F0-A445-C6F6AA1FE757/Documents/Article/article.html/
> Mar 6 22:52:33 unknown
> UIKitApplication:com.company.MilkyJoeApp[0xb009][4417] <Notice>:
> [CWEB-INFO]
> ArticleScreen.webView.LoadStarted()
> Mar 6 22:52:33 unknown
> UIKitApplication:com.company.MilkyJoeApp[0xb009][4417] <Notice>:
> [CWEB-INFO]
> HomeScreen.ViewDidDisappear()
> Mar 6 22:52:34 unknown
> UIKitApplication:com.company.MilkyJoeApp[0xb009][4417] <Notice>:
> [CWEB-INFO]
> ArticleScreen.webView.LoadFinished()
> Mar 6 22:52:34 unknown com.apple.launchd[1] <Notice>:
> (UIKitApplication:uk.co.bbc.newsuk[0x996b]) Exited: Killed: 9
> Mar 6 22:52:34 unknown UserEventAgent[12] <Notice>: jetsam: kernel
> termination snapshot being created
> Mar 6 22:52:34 unknown
> UIKitApplication:com.company.MilkyJoeApp[0xb009][4417] <Notice>:
> [CWEB-INFO]
> ArticleScreen.ViewWillDisappear()
> Mar 6 22:52:34 unknown
> UIKitApplication:com.company.MilkyJoeApp[0xb009][4417] <Notice>:
> [CWEB-INFO]
> HomeScreen.ViewWillAppear()
> Mar 6 22:52:34 unknown SpringBoard[15] <Warning>: Application 'BBC News'
> exited abnormally with signal 9: Killed: 9
> Mar 6 22:52:34 unknown MobileMail[4293] <Warning>: Received memory
> warning.
> Mar 6 22:52:35 unknown AppName[4417] <Warning>: Received memory warning.
> Mar 6 22:52:36 unknown SpringBoard[15] <Warning>: Received memory warning.
> Mar 6 22:52:36 unknown ReportCrash[4420] <Error>: Failed to save memory
> report to /Library/Logs/CrashReporter/LowMemory-2012-03-06-225236.plist
> using uid: 0 gid: 0, euid: 0 egid: 0. 100 logs already present.
> Mar 6 22:52:36 unknown ReportCrash[4420] <Error>: Error: 2 No such file or
> directory
> Mar 6 22:56:07 unknown SpringBoard[15] <Notice>: Posting
> 'com.apple.iokit.hid.displayStatus' notifyState=0
> Mar 6 22:56:07 unknown SpringBoard[15] <Notice>: MultitouchHID: detection
> mode: 0->255
> Mar 6 22:56:10 unknown SpringBoard[15] <Notice>: Posting
> 'com.apple.iokit.hid.displayStatus' notifyState=1
> Mar 6 22:56:11 unknown SpringBoard[15] <Notice>: MultitouchHID: detection
> mode: 255->0 (deferring until bootloaded)
> Mar 6 22:56:11 unknown SpringBoard[15] <Notice>: MultitouchHID: device
> bootloaded
> Mar 6 22:56:11 unknown SpringBoard[15] <Notice>: MultitouchHID: detection
> mode: 0->0
> Mar 6 22:56:11 unknown kernel[0] <Debug>: set_crc_notification_state 0
> Mar 6 22:56:23 unknown SpringBoard[15] <Warning>: com.company.MilkyJoeApp
> failed to resume in time
> Mar 6 22:56:23 unknown SpringBoard[15] <Warning>: Forcing crash report of
> AppName[4417]...
> Mar 6 22:56:24 unknown SpringBoard[15] <Warning>: Finished crash
> reporting.
> Mar 6 22:56:24 unknown com.apple.launchd[1] <Notice>:
> (UIKitApplication:com.company.MilkyJoeApp[0xb009]) Exited: Killed: 9
> Mar 6 22:56:24 unknown SpringBoard[15] <Warning>: Application 'CMSO Forum'
> exited abnormally with signal 9: Killed: 9
> Mar 6 22:56:24 unknown com.apple.networkd[4424] <Notice>: main:212
> networkd.4424 built Nov 2 2011 20:21:54
>
> I log the View events, so that I can determine at which point the app locks
> up. It looks to be triggered by low memory, but I can't figure out what if
> causing the problem.
>
Have you tried simulating low memory events in the simulator?
>
> >Also, if you google for the warning you'll see that it looks related to
> UIWebView.
>
> Which phrase did you google on Rolf?
>
"failed to return after waiting 10 seconds. main run loop mode:
kCFRunLoopDefaultMode"
>
> I didn't seem to be able to get the symbolicated version of the log. The
> previous extract is how it looked it XCode.
>
Unfortunately the unsymbolicated version isn't helpful, so I'd suggest you
look into making this work. Note that you can save the dSYM directory (copy
it to somewhere else) for a build (if you want to continue working on a
project while still having the old build installed on your device), and
then when it crashes you can symbolicate manually using the
symbolicatecrash script:
/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKit.framework/Versions/A/Resources/symbolicatecrash
path/to/log.crash path/to/project.app.dSYM
I hope this helps,
Rolf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monotouch/attachments/20120307/e78ab536/attachment-0001.html>
More information about the MonoTouch
mailing list