Release builds stopped running - how to debug?

gbanfillgbanfill USMember
edited July 2016 in Xamarin.iOS

So, recently our release builds (i.e. built by the TeamCity Server) have stopped working. Everything is being built properly and sent to TestFlight ok and can be installed on my iPad correctly. However when I try to run the app, it shows the launch screen storyboard correctly, but when it shows the Main storyboard, it crashes. No automated errors reports via error catching service (Raygun.io).

When I plug the iPad in and get the device console from Xcode, I can see the following messages:

Jul 12 20:51:30 Georges-iPad VentusARIOS[2114] : * Assertion at ../../../../../mono/mono/mini/aot-runtime.c:1692, condition `data' not met
Jul 12 20:51:30 Georges-iPad VentusARIOS[2114] :
Native stacktrace:
Jul 12 20:51:30 Georges-iPad VentusARIOS[2114] : 0 VentusARIOS 0x00000001000c5774 VentusARIOS + 366452
Jul 12 20:51:30 Georges-iPad VentusARIOS[2114] : 1 libsystem_platform.dylib 0x000000018099194c _sigtramp + 68
Jul 12 20:51:30 Georges-iPad VentusARIOS[2114] : 2 libsystem_pthread.dylib 0x0000000180998ef8 pthread_kill + 112
Jul 12 20:51:30 Georges-iPad VentusARIOS[2114] : 3 libsystem_c.dylib 0x000000018083ddac abort + 140
Jul 12 20:51:30 Georges-iPad VentusARIOS[2114] : 4 VentusARIOS 0x00000001001c4690 VentusARIOS + 1410704
Jul 12 20:51:30 Georges-iPad VentusARIOS[2114] : 5 VentusARIOS 0x00000001001c4778 VentusARIOS + 1410936
Jul 12 20:51:30 Georges-iPad VentusARIOS[2114] : 6 VentusARIOS 0x0000000100090cf4 VentusARIOS + 150772
Jul 12 20:51:30 Georges-iPad VentusARIOS[2114] : 7 VentusARIOS 0x00000001000e1110 VentusARIOS + 479504
Jul 12 20:51:30 Georges-iPad VentusARIOS[2114] : 8 VentusARIOS 0x00000001000e0d20 VentusARIOS + 478496
Jul 12 20:51:30 Georges-iPad VentusARIOS[2114] : 9 VentusARIOS 0x00000001001d52dc xamarin_GetFolderPath + 724
Jul 12 20:51:30 Georges-iPad VentusARIOS[2114] : 10 VentusARIOS 0x00000001000e2b50 VentusARIOS + 486224
Jul 12 20:51:30 Georges-iPad VentusARIOS[2114] : 11 VentusARIOS 0x00000001000feab4 VentusARIOS + 600756
Jul 12 20:51:30 Georges-iPad VentusARIOS[2114] : 12 VentusARIOS 0x00000001000d10f8 VentusARIOS + 413944
Jul 12 20:51:30 Georges-iPad VentusARIOS[2114] : 13 VentusARIOS 0x00000001001d56e8 xamarin_GetFolderPath + 1760
Jul 12 20:51:30 Georges-iPad VentusARIOS[2114] : 14 VentusARIOS 0x00000001013b86f8 WriteZStream + 18753996
Jul 12 20:51:30 Georges-iPad VentusARIOS[2114] : 15 libdyld.dylib 0x00000001807ae8b8 + 4
Jul 12 20:51:30 Georges-iPad VentusARIOS[2114] :
=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
Jul 12 20:51:30 Georges-iPad com.apple.xpc.launchd[1] (UIKitApplication:uk.co.linknode.VentusAR[0xc23f][2114]) : Service exited due to signal: Abort trap: 6
Jul 12 20:51:30 Georges-iPad diagnosticd[1838] : error evaluating process info - pid: 2114, puniqueid: 2114
Jul 12 20:51:30 Georges-iPad SpringBoard[54] : Application 'UIKitApplication:uk.co.linknode.VentusAR[0xc23f]' crashed.
Jul 12 20:51:31 Georges-iPad ReportCrash[2116] : Formulating report for corpse[2114] VentusARIOS
Jul 12 20:51:31 Georges-iPad ReportCrash[2116] : Saved type '109(109_VentusARIOS)' report (1 of max 25) at /var/mobile/Library/Logs/CrashReporter/VentusARIOS-2016-07-12-205131.ips.beta

The way I am reading this error log is that something is calling WriteZStream which is calling xamarin_GetFolderPath. How would I work out what is calling that and where it is coming from?

Other points of note:

  • I don't think it is a certificate / signing issue. All certificates / provisioning profiles have been regenerated last week (I needed to add another provisioning profile and got to wrong, so ended up recreating everything).
  • I have another build running off a branch from approx 50 revisions ago which builds using the same process and is delivered ok via TestFlight.
  • building locally as an Ad-Hoc / AppStore build allows me to install and run, things built from the build server fail.
  • I build an AdHoc build and an AppStore build - both exhibit the same behaviour, AdHoc directly from iTunes install, AppStore goes via TestFlight.
  • there is nothing obvious in the recent checkins that would be causing this, however, I haven't manually eyeballed every commit (as this is reasonably boring to do and it takes about 30mins to build, upload to test flight and test).
  • the build server has recently been upgraded to Xamarin.Studio 6.0.1 (I believe)

Any suggestions on what I should do next? How can I work out what is causing the app not to run? its almost like it is not running any of the app code and it is crashing before it runs any of my code.

Thanks
George

Sign In or Register to comment.