Zxing.net.mobile: [UWP] ArgumentException on desktop with webcam

Created on 2 Sep 2016  路  6Comments  路  Source: Redth/ZXing.Net.Mobile

When scanning a QR code on a desktop with an attachted webcam, the Events section in the Diagnostics Tools in Visual Studio is being spammed with a System.ArgumentException. Also, a QR code on a paper is not being scanned and I'm pretty sure that's caused by the same error as the exception cause.

Most helpful comment

@Tapperi it has been fixed in ZXing.Net already and will be merged in near future (#417)

All 6 comments

Bitmaps may raise and catch this exception internal, when an image is loaded. If that is the case, nothing can be done. Also make shure your barcode is in focus.

Please post a picture of the webcam output.
Please post the whole stacktrace or console log.

In my Output window, I see the following being spammed:

Exception thrown: 'System.ArgumentException' in ZXingNetMobile.dll
WinRT information: The parameter is incorrect.

1
Showing the image is currently not possible, but I can ensure you that I can scan and read it correctly on my phone (Lumia 950).

Any updates on this?

I have same issue. Trying to get Xamarin Forms uwp sample working with desktop webcam.

@Tapperi it has been fixed in ZXing.Net already and will be merged in near future (#417)

@F1nZeR do you know when a Xamarin update will be available? Because this fix is not available in the last Xamarin NuGet package (2.1.47).

Thanks for reporting this issue! Unforunately it took me way too long to respond 馃槶. Sorry, I apologize! Recently the source code for this project was completely refactored to modernize it. Many PR's were included in this effort, and many bugs were hopefully fixed. Please try out the latest 3.x series of NuGet packages (currently in prerelease). To try and make the project more maintainable in my spare time going forward, I've decided to close all existing issues to start with a clean slate. If you're still experiencing this issue on the newest version, please open a new issue with as much detail as possible. Thank you for your patience and understanding! Happy scanning!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alberk8 picture alberk8  路  5Comments

fekberg picture fekberg  路  8Comments

wegascee picture wegascee  路  5Comments

radioactiveman picture radioactiveman  路  7Comments

woutermeuwis picture woutermeuwis  路  5Comments