rebuy-de / rb-forms-barcode

Rb.Forms.Barcode is a Xamarin.Forms view for scanning barcodes.
https://github.com/rebuy-de/rb-forms-barcode
MIT License
43 stars 21 forks source link

Xamarin cycle 8 compatibility issues #56

Closed NaurisAndzans closed 8 years ago

NaurisAndzans commented 8 years ago

Yesterday I followed the release of the new and stable version of Xamarin and its components just to find that rb-forms-barcode is not longer working. So I dowloaded the sample project to see if the same problems occurs running clean sample and the problem does occur.

The problem persists every time.

As soon as I try to open the scanner page app crashes with the following message: " Got a SIGABRT while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries. "

Has anyone else experienced such behaviour after following the upgrade to cycle 8?

fvermeulen commented 8 years ago

Hello @NaurisAndzans

I am as well on cycle 8 and everything is working on ios and android for me. Can you clean and build the project completly new please.

What are you doing. I need more infos to help you in this case.

Is it everytime crashing, or only one time?

NaurisAndzans commented 8 years ago

I forgot to add that I'm working on a Macbook and I encounter this problem only with iOS builds. Android builds works as expected.

As soon as the following line gets called the app crashes with the message I posted previously. Detail.Navigation.PushAndRemovePrevious(ScannerPageControl.Instance.CreateScannerPage(), 1);

fvermeulen commented 8 years ago

we work as well on mac....

and you think that happens due to the scannerlibrary?

armintelker commented 8 years ago

can you please create a sample github project that contains the bug.

NaurisAndzans commented 8 years ago

can you please create a sample github project that contains the bug.

No need, cause I used your original sample without introducing any new features for testing this behaviour. Any other information or additional logs I can provide you with ?

armintelker commented 8 years ago

@NaurisAndzans

  1. the exact build version
  2. the version of the iphone
  3. the version of ios
  4. xcode version
  5. if possible the complete stack trace.
  6. mac os version
NaurisAndzans commented 8 years ago

@armintelker

  1. Rb.Forms.Barcode 0.6.6 and Rb.Forms.Barcode 0.7.1
  2. 5S and iPad Air
  3. iOS 10.0.1
  4. XCode 8
  5. Native stacktrace from our app. Your clean sample produced the same results as soon as I tried to access barcode library: image 2016-09-19 at 12 54 55 pm
  6. OSX 10.11.6
jmockjm commented 8 years ago

I am also experiencing the same issue. Everything was working fine before iOS10. Now, as soon as the page opens and gets past the default constructor, it crashes. I am only testing with iOS and have not yet implemented for Android.

I also just downloaded the sample and ran it without changing a thing. It opens, but then when I click on SCAN ALL THINGS, it crashes:

screen shot 2016-09-21 at 4 51 20 pm

RB.Forms.Barcode 0.7.1 Xamarin Studio 6.1 Xamarin.iOS 10.0.0.6 XCode 8/iOS 10 iPhone 6s iOS 10.0.1 Mac OS 10.11.6

jmockjm commented 8 years ago

I appears to be crashing in RootPage.xaml.cs line 21: await cameraPermission.RequestCameraPermissionIfNeeded();

I am wondering if there is some new plist setting we need?

jmockjm commented 8 years ago

Yep, just figured out the solution.

@NaurisAndzans add this to your info.plist:

Property: "Privacy - Camera Usage Description" Value: "Use the camera for XYZ"

reference: http://useyourloaf.com/blog/privacy-settings-in-ios-10/

NaurisAndzans commented 8 years ago

@jmockjm thank you, case closed!