Open tnewell opened 3 years ago
@tnewell Update Xamarin.Forms to 5.0.0.2012 and I bet that will fix it. I had basically the same Native Stack trace and upgrading the NuGet packages across the solution removed the crash.
Same problem for me for both, the stabel (2.4.1) and the current newest beta (3.1.0-beta2) version. I allready using Xamarin.Forms 5.0.0.212.
2021-06-02 12:23:54.291 UniversalInventory.iOS[5326:5133071] Starting to scan...
2021-06-02 12:23:54.335 UniversalInventory.iOS[5326:5133071] ZXingScannerView.Setup() took 41,221 ms.
2021-06-02 12:23:54.335 UniversalInventory.iOS[5326:5133071] StartScanning
=================================================================
Native Crash Reporting
=================================================================
Got a abrt while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
=================================================================
Native stacktrace:
=================================================================
0x10d6604e4 - /private/var/containers/Bundle/Application/051ED1DD-582D-456F-ADD3-BA04964BBE87/UniversalInventory.iOS.app/UniversalInventory.iOS : mono_dump_native_crash_info
0x10d656750 - /private/var/containers/Bundle/Application/051ED1DD-582D-456F-ADD3-BA04964BBE87/UniversalInventory.iOS.app/UniversalInventory.iOS : mono_handle_native_crash
0x10d65fa30 - /private/var/containers/Bundle/Application/051ED1DD-582D-456F-ADD3-BA04964BBE87/UniversalInventory.iOS.app/UniversalInventory.iOS : sigabrt_signal_handler
0x1ea1f7298 - /usr/lib/system/libsystem_platform.dylib :
iPhone 12, iOS 14.4.2
Visual Studio 2019 - v16.9.6 Xamarin.iOS SDK - 14.16.0.5
Xamarin.Forms - v5.0.0.2012 Xamarin.Essentials - v1.6.1
ZXing.Net.Mobile - v2.4.1 / v3.1.0-beta2 ZXing.Net.Mobile.Forms - v2.4.1 / v3.1.0-beta2
Any updates on this?
I think that this might be related to using the Hot Restart feature in Visual Studio. I have ran https://github.com/jfversluis/XFScanBarcodeSample project with Hot Restart and I always got the native crash reporting stuff.
However, after deploying to iPhone device through Mac device (paired Mac device) while still in Visual Studio in Windows it seems to work properly.
Can anyone try if they get the same results on this?
EDIT: Looks like this is the issue, confirmed in this issues thread: https://github.com/Redth/ZXing.Net.Mobile/issues/967#issuecomment-782840533
I got the same error. still not fixed
Not sure if this helps anyone, I had this error until I added the correct permission req. for iOS in Info.plist
:
<key>NSCameraUsageDescription</key>
<string>Please allow the camera to be used for scanning barcodes</string>
I'm testing the iOS version of my Xamarin.Forms app on my iPhone from Visual Studio 2019 and when the code reaches the point of calling the Scan method of the MobileBarcodeScanner object, the app crashes. In particular, the screen displays the overlay and the camera is on, but no scanning happens and I get the output below. When I hit the Cancel option at the bottom of the screen, I get a return from the Scan call with a null result. My code for making the call follows the error dump and that's followed by version data. I'm using the Hot Restart feature in Visual Studio that allows me to deploy to an iPhone as long as I have iTunes running. Scanning seems to work fine on UWP and Android simulators and Android Fire tablet.
-- Start Error Dump --
`2021-01-31 22:01:01.928 Xamarin.PreBuilt.iOS[20513:3446096] Starting to scan...
2021-01-31 22:01:01.984 Xamarin.PreBuilt.iOS[20513:3446096] ZXingScannerView.Setup() took 50.176 ms. 2021-01-31 22:01:01.985 Xamarin.PreBuilt.iOS[20513:3446096] StartScanning
Thread started: #16 Thread started: #17
================================================================= Native Crash Reporting
Got a segv while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application.
================================================================= Native stacktrace:
================================================================= Basic Fault Address Reporting
Memory around native instruction pointer (0x1023aa8c4):0x1023aa8b4 a8 83 5e f8 09 00 80 52 09 01 00 39 a8 03 5f f8 ..^....R...9... 0x1023aa8c4 09 01 40 3 9 69 0f 00 34 a8 03 5f f8 09 01 c0 39 ..@9i..4......9 0x1023aa8d4 29 8d 00 71 e8 03 09 aa 08 7d 40 d3 1f 69 01 f1 )..q.....}@..i.. 0x1023aa8e4 e8 13 00 f9 68 0b 00 54 08 00 00 90 08 61 2c 91 ....h..T.....a,.
================================================================= Managed Stacktrace:
=================================================================
2021-01-31 22:01:12.694 Xamarin.PreBuilt.iOS[20513:3446096] Stopping... ` -- End Error Dump --
-- Start Code Fragment --
-- End Code Fragment --
-- Start Version Info --
iPhone XR, iOS 14.3
Visual Studio 2019 - v16.8.4 Xamarin.iOS SDK - 14.8.0.3
The shared Xamarin app is a .NET Standard 2.0 library
All parts use: Xamarin.Forms - v5.0.0.1931 Xamarin.Essentials - v1.6.1 ZXing.Net.Mobile - v3.0.0.0-beta5 ZXing.Net.Mobile.Forms - v3.0.0.0-beta5