Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Barcode scanner does not work #604

Open
apohh opened this issue Jan 24, 2025 · 8 comments
Open

[BUG] Barcode scanner does not work #604

apohh opened this issue Jan 24, 2025 · 8 comments
Labels
barcode bug Something isn't working

Comments

@apohh
Copy link

apohh commented Jan 24, 2025

Since last update, the barcode scanner does not identify barcodes anymore.
I have observed this for QR Codes generated by Inventree and Digikey barcodes.

App has been reinstalled, to no avail.

Inventree App : 0.17.3 Build 95
Inventree Server : 0.17.2
Phone : VNE-N41 with Android 12

inventreeApp_barcodeReaderBug.mp4

Thank you.

@SchrodingersGat
Copy link
Member

@apohh that's strange. I have justed tested on my phone (Android 15) and it scans the barcodes directly from your video.

@apohh
Copy link
Author

apohh commented Jan 24, 2025

Strange indeed!

I have asked a colleague to install the application to see if the bug can be reproduced on another phone.

In the meantime I tried collecting some debug information with USB debug + adb + logcat (first time use).
That's a lot of chatter for a 5s log but I don't know how to filter without deleting relevant information.

I first tapped on the InvenTree App icon then I tapped as fast as possible on the barcode reader button. Camera was still running at the time I killed logcat.

I don't know how useful it will be.
Anyway many errors popped up after initializing the camera. EDIT : there are apparently a lot of error even when using the system camera app, mainly "[ERROR][STATS_AEC]".

inventreeApp_BarcodeReaderBug_logcat.txt

@SchrodingersGat
Copy link
Member

We use the flutter_zxing library for barcode scanning. That has a minum Android API level requirement of 21 (Android version 5).

@apohh
Copy link
Author

apohh commented Jan 24, 2025

@SchrodingersGat Thank you for the information.

To confirm the incompatibility, I tested ZXScanner V1.2.0, which is based on flutter_zxing, and it doesn't work either, despite my phone running Android 12.

I will wait for a possible update to the library. Since there’s no immediate solution, I’ll leave it up to you to decide whether to close this issue or not.

@matmair
Copy link
Member

matmair commented Jan 24, 2025

@apohh are you using Microsoft Intune on the device? That can block some functions that interact with the camera.

@apohh
Copy link
Author

apohh commented Jan 24, 2025

I don’t have Microsoft Intune, but thank you for asking nonetheless.

Barcode scanning worked with a previous version of the InvenTree app, although I don’t remember which one exactly.

If I had to guess from the release notes, it would be version 0.16.5, as it seems the switch to flutter_zxing happened with version 0.17.0.

I’ve also tested other barcode scanning apps which were installed on my phone, and they are still functional.

@SchrodingersGat
Copy link
Member

@apohh it might be worth checking in the GitHub page for flutter_zxing to see if there are any reported compatibility issues

@SchrodingersGat
Copy link
Member

khoren93/flutter_zxing#150

@SchrodingersGat SchrodingersGat added bug Something isn't working barcode labels Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
barcode bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants