[I-mobile-u] MIT Mobile iPhone App

Justin Anderson jander at MIT.EDU
Fri Mar 16 17:22:30 EDT 2012


We've seen a few crashes in MyLog as well, always at line 20, which is very strange because it's not doing anything worth crashing over. We never been able to reproduce crashes there with a device attached to a debugger, so if you have code which crashes in MyLog every time, we'd love to see it.

Justin

On Mar 16, 2012, at 4:22 PM, Daniel Mancusi wrote:

Thanks for the response.  We've made quite a few customizations, and I have only recently attempted to run it on an iOS5+ device, so it may well have been able to run out of the box.  Luckily, I did figure out at least part of what was going on today. Here's the relevant part of the crash log:

...
3   CoreFoundation                0x353167ab +[NSException raise:format:] + 35
4   Foundation                    0x31191d15 _NSFileHandleRaiseOperationException + 153
5   Foundation                    0x3116f2a3 -[NSConcreteFileHandle writeData:] + 131
6   BucknellMobile                0x0002939f MyLog (MITLogging.m:20)
7   BucknellMobile                0x00005137 -[MIT_MobileAppDelegate application:didFailToRegisterForRemoteNotificationsWithError:] (MIT_MobileAppDelegate.m:439)
...

It was crashing when the MITLogging class tried to write a message after the didFailToRegiserForRemoteNotifications handler was called.  I did not figure out exactly why that was crashing, but since we are not using remote notifications just yet, I just disabled the attempt to register, and the app now loads without crashing.  There are still a few more issues, but I haven't had a chance to look too closely at those yet.

Thanks,
Dan


On Fri, Mar 16, 2012 at 3:57 PM, Justin Anderson <jander at mit.edu<mailto:jander at mit.edu>> wrote:
Hi Daniel,

The code should build and run straight from github with just one change. You need to create your own Common/Secret.m containing the domain for the API server you want the app to use. For MIT that would be m.mit.edu<http://m.mit.edu/>. I assume you've done that much if you were able to build the app.

I can't think of why it would successfully install on a device but then crash on the home screen. Do you have a crash log or console output from the debugger for that?

Justin Anderson
Project Lead - Mobile Computing
MIT IS&T

On Mar 15, 2012, at 4:37 PM, Daniel Mancusi wrote:

Hello,

Bucknell is trying to create an app based on the MIT Mobile iPhone code (https://github.com/MIT-Mobile/MIT-Mobile-for-iPhone) and running in to some trouble.  Most development was done in the simulators within XCode, where it runs without any trouble in all iOS versions, but we have not had any luck testing it on an actual device.

Our latest attempt was on an iOS 5.1 iPhone where it launched briefly, displayed the home screen and icons for a few seconds and then crashed.  I'm aware there are a plethora of things that could be going wrong, but since I have not yet had much luck in tracking down the cause I thought I'd ask the list to see if anyone else has seen anything similar.

Please let me know if you have any tips for debugging these types of problems or have had any similar experience.  Thanks!

Daniel Mancusi
Bucknell University
_______________________________________________
I-mobile-u mailing list
I-mobile-u at mit.edu<mailto:I-mobile-u at mit.edu>
http://mailman.mit.edu/mailman/listinfo/i-mobile-u


_______________________________________________
I-mobile-u mailing list
I-mobile-u at mit.edu<mailto:I-mobile-u at mit.edu>
http://mailman.mit.edu/mailman/listinfo/i-mobile-u


_______________________________________________
I-mobile-u mailing list
I-mobile-u at mit.edu<mailto:I-mobile-u at mit.edu>
http://mailman.mit.edu/mailman/listinfo/i-mobile-u

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/i-mobile-u/attachments/20120316/a8578a46/attachment-0001.htm


More information about the I-mobile-u mailing list