Thanks Jon, I'll try and get a reproducible scenario wrapped up. Is a .apk on its own any use to you or do you need the whole project?
Testing today I've found that putting in loads of GC.Collect(0)s doesn't make the hanging go away (ie. it GCs small amounts of data frequently but then, all of a sudden, it'll hang for X minutes without a "force close" type message and then happily continue processing.) But no crashes!!! If I replace the GC.Collect(0) with GC.Collect(1) then I'm more likely to see an old-style crash. As you say, it's as though the hard crash is replaced by a hang. Nicer from the programmer's point of view because the app is still running, but more irritating for an end user because things tend to re-start quickly after a crash whereas they have to wait around during a hang. I'll try and get something to you to illustrate all of this. Cheers, Andy -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Jonathan Pryor Sent: 24 August 2011 03:01 To: Discussions related to Mono for Android Subject: Re: [mono-android] Mono for Android 1.0.3 Available [Link Fixed] On Aug 23, 2011, at 7:43 PM, Andrew Sinclair wrote: >> From my initial tests I think most of the GC problems I was seeing have been > resolved - random crashes where the app just dies don't seem to be happening > nearly as much. ... > One thing I have noticed is that the GC now seems to hang the application > for a long time in some cases, sometimes for minutes. In those cases the adb > log will have no entries for the app, then a couple of minutes later it'll > say GC_EXPLICIT freed X objects/bytes in Yms (where X is large, maybe 200K, > and Y is small, maybe 50 ms). Following this GC_EXPLICIT everything just > carries on as normal, no crash. So we've gone from "the app crashes randomly, instantly, with no recourse" to "the app hangs, but eventually comes back." This is an improvement, but not perfect. Unfortunately none of the bugs I've looked at to date have exhibited the multi-minute GC hangs you're reporting. Would it be possible for you to file a bug for this and attach a project exhibiting this issue? Thanks, - Jon _______________________________________________ Monodroid mailing list [email protected] UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid _______________________________________________ Monodroid mailing list [email protected] UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
