smooth-app
smooth-app copied to clipboard
App does not read barcode from camera on Sony Xperia 10 IV
What
The barcode from a product that I hold into the camera is never detected and read.
Steps to reproduce the behavior
- Open App
- Switch to find/scan view
- Hold product barcode into rectangle on screen
- 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
- #2741
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.
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
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.
Thanks a lot for your report @chk1. A new "alternative" mode will be released soon and should fix your issue.
It's now implemented @chk1. Please follow the PR #2953
I just updated to 3.17.0, I can confirm that the alternative scan mode works now. Thank you!
Cool, closing the issue