I'm working on a Xamarin.iOS app currently which has a feature that allows the user to scan barcodes using the device camera, done through the ZBar SDK (bound from an Obj-C library). When it wants to work, everything works great. The scanning is very accurate and quick, and it would really be a shame if I had to switch libraries.
Unfortunately, I'm running into a really weird issue with it. It starts off with me compiling the binding project and referencing the .dll in my real application. The library contains a child class of UIViewController, called ZBarReaderViewController. This view controller activates the camera and displays what it sees, and (from what I assume) periodically takes snapshots and analyzes them for valid barcodes.
In my app, I have a button in my navigation bar which instantiates my own child class of ZBarReaderViewController in order for the user to start scanning. This is where I run into my issue. After a seemingly random amount of time, or number of app launches, all of a sudden when I click the camera button, the app instantly crashes. This happens again and again, consecutively, until I either rebuild both the binding project and my app (which doesn't always work), or reboot the device (which also doesn't always work).
No exception is thrown either, so there isn't anything useful in Xamarin Studio while debugging, and often times the program itself will crash or otherwise experience issues after the app on the phone does. All I have to go by is the Xcode console output during the crash, which you can see here: http://pastebin.com/raw.php?i=x11YHYpu
Unfortunately I'm still a newbie at deciphering these iOS errors, so I'm not even sure where to look at this point. If anyone has any suggestions or things to try to at least narrow down the cause of the issue, I would be very grateful.