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

App does not read barcode from camera on Sony Xperia 10 IV #2927

Closed
chk1 opened this issue Sep 5, 2022 · 6 comments
Closed

App does not read barcode from camera on Sony Xperia 10 IV #2927

chk1 opened this issue Sep 5, 2022 · 6 comments
Assignees
Labels
scan alternative mode Alternative mode required for the scanner 🤳🥫 Scan We need to be able to scan on low-end, old devices, even with a bad camera, connexion…

Comments

@chk1
Copy link

chk1 commented Sep 5, 2022

What

The barcode from a product that I hold into the camera is never detected and read.

Steps to reproduce the behavior

  1. Open App
  2. Switch to find/scan view
  3. Hold product barcode into rectangle on screen
  4. Code is never read and search is never triggered

Expected behavior

App should detect the barcode after a short time and trigger a search

Part of

Smartphone model

  • Device: Sony Xperia 10 IV
  • OS: Android 12 (unmodified)
  • App Version: 3.8.1+722 from Google Play

Additional context

On my phone, the app does not crash, and the camera keeps working.

I tried to find any obvious issues via adb logcat, the log it generates is getting huge quick. I coulnd't see any obvious issues, like stack traces. The log consists mainly of the following messages in a loop (I'm not sure if this is just device specific camera debug output).

09-05 19:19:10.883  1139  2211 W CHIUSECASE: [WARN   ] chifeature2realtime.cpp:1479 PopulateSensorModeOnMetadataResult() Couldn't translate result metadata to initial crop values.pMetadata = 0xb400007cfe7ae930, pInSensorZoomInfo = 0x0, m_pRoiTranslator = 0x0, pCameraInfo = 0x7baa739b88
09-05 19:19:10.883  1139  2209 E CamX    : [ERROR][STATS_AWB] camxcawbioutil.cpp:3197 PartialMWBOverride() awbColorCompensationAb: 0
09-05 19:19:10.883  1139  2209 E CamX    : [ERROR][STATS_AWB] camxcawbioutil.cpp:3213 PartialMWBOverride() awbColorTemperatureRange: [1500, 10000]
09-05 19:19:10.893  1139  2212 E CamX    : [ERROR][CHI    ] camxchinodewrapper.cpp:3536 ExecuteProcessRequest() Node::ZSLPreviewRaw_LT1080p_com.qti.node.asfl122 i=0, Output Port/Image Buffer is Null 
09-05 19:19:10.893  1139  2208 E ASSFP   : [ERROR  ] camxchinodeassfprocess.cpp:1467 ProcessRequest() Arcsoft SingleFrameProcessNode has unsatisfied Dependencies
09-05 19:19:10.893  1139  2209 E CamX    : [ERROR][CHI    ] camxchinodewrapper.cpp:3536 ExecuteProcessRequest() Node::ZSLPreviewRaw_LT1080p_com.qti.node.asot107 i=0, Output Port/Image Buffer is Null 
09-05 19:19:10.893  1139  2209 W CHIAsot : [WARN   ] camxchinodeasot.cpp:991 GetPowerSaveMode() Failed to get vendor tag com.sonymobile.control.powerSaveMode!
09-05 19:19:10.893  1139  2212 W CHIAsfl : [WARN   ] camxchinodeasfl.cpp:675 GetPowerSaveMode() Failed to get vendor tag com.sonymobile.control.powerSaveMode!
09-05 19:19:10.893  1139  2208 E CamX    : [ERROR][CHI    ] camxchinodewrapper.cpp:3536 ExecuteProcessRequest() Node::ZSLPreviewRaw_LT1080p_com.qti.node.ascd105 i=0, Output Port/Image Buffer is Null 
09-05 19:19:10.893  1139  2209 W CamX    : [ WARN][CORE   ] camxvendortags.cpp:339 QueryVendorTagLocation() Vendor tag sensorId in section org.codeaurora.qcamera3.sensor_meta_data does not exist!
09-05 19:19:10.893  1139  2208 W CHIAscd : [WARN   ] camxchinodeascd.cpp:577 GetPowerSaveMode() Failed to get vendor tag com.sonymobile.control.powerSaveMode!
09-05 19:19:10.893  1139  2211 E CamX    : [ERROR][CHI    ] camxchinodewrapper.cpp:3536 ExecuteProcessRequest() Node::ZSLPreviewRaw_LT1080p_com.qti.node.asaisd101 i=0, Output Port/Image Buffer is Null 
09-05 19:19:10.893  1139  2209 W ASSFP   : [WARN   ] camxchinodeassfprocess.cpp:3334 GetPowerSaveMode() Failed to get vendor tag com.sonymobile.control.powerSaveMode!
09-05 19:19:10.893  1139  2209 W ASSFP   : [WARN   ] camxchinodeassfprocess.cpp:2738 ReadAlgoMetadata() Failed to read com.sonymobile.statistics.condition
09-05 19:19:10.893  1139  2209 W ASSFP   : [WARN   ] camxchinodeassfprocess.cpp:2897 ReadAlgoMetadata() Failed to read com.sonymobile.statistics.autoHDR
09-05 19:19:10.893  1139  2209 W ASSFP   : [WARN   ] camxchinodeassfprocess.cpp:2911 ReadAlgoMetadata() Failed to read org.codeaurora.qcamera3.asft.lFaceNumber
09-05 19:19:10.893  1139  2209 W ASSFP   : [WARN   ] camxchinodeassfprocess.cpp:3008 ReadAlgoMetadata() Failed to read com.sonymobile.statistics.scene

If needed, I can send the full 3MB adb log to one of you developers (maybe on Slack), I don't want to post it here publicly.

@teolemon teolemon added the 🤳🥫 Scan We need to be able to scan on low-end, old devices, even with a bad camera, connexion… label Sep 5, 2022
@g123k
Copy link
Collaborator

g123k commented Sep 6, 2022

Hello @chk1 and thanks for your report.
Since the release of the new app (the Flutter's one), did the scan ever work on your device or never?

Also, could you try this APK: https://drive.google.com/file/d/1F6S0pGpf8OQHhqKSw1opWQPRxpcmYdDV/view?usp=sharing (app name: ML Kit in Flutter) and go to Barcode Scanning (first item) and tell me if you're able to scan barcodes.

Thanks

@chk1
Copy link
Author

chk1 commented Sep 6, 2022

Since the release of the new app (the Flutter's one), did the scan ever work on your device or never?

I have only tried this version (3.8.1+722) of the new Flutter app. First installed yesterday and never got scanning to work.

(I do have two other phones where it works, so I can compare how the app is supposed to work I guess. Redmi 4X on custom ROMs Android 9 and 11)

Also, could you try this APK

I tested it and it doesn't detect barcodes in the camera view. I've seen green texts and lines flash up and quickly disappear (within a few milliseconds), but that looked like mis-identification, like it detected a non-existing barcode on my table or computer keyboard instead of on the product.

But it does detect codes when I pick a photo from gallery.

Barcode scanner camera view
Barcode scanner gallery pick

@g123k
Copy link
Collaborator

g123k commented Sep 6, 2022

Thanks a lot for your report @chk1.
A new "alternative" mode will be released soon and should fix your issue.

@g123k g123k added the scan alternative mode Alternative mode required for the scanner label Sep 6, 2022
@g123k
Copy link
Collaborator

g123k commented Sep 6, 2022

It's now implemented @chk1.
Please follow the PR #2953

@chk1
Copy link
Author

chk1 commented Sep 14, 2022

I just updated to 3.17.0, I can confirm that the alternative scan mode works now. Thank you!

@g123k g123k self-assigned this Sep 15, 2022
@g123k
Copy link
Collaborator

g123k commented Oct 24, 2022

Cool, closing the issue

@g123k g123k closed this as completed Oct 24, 2022
Repository owner moved this from To discuss and validate to Done in 🤳🥫 The Open Food Facts mobile app (Android & iOS) Oct 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scan alternative mode Alternative mode required for the scanner 🤳🥫 Scan We need to be able to scan on low-end, old devices, even with a bad camera, connexion…
Development

No branches or pull requests

3 participants