-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
🐛 [Android] CodeScanner doesn't work at all on Samsung Galaxy A23 (Android 14) #3248
Comments
Guten Tag, Hans here! 🍻 This looks like a valid issue and you provided relevant logs, Danke! It seems you have detailed the behaviour on your Samsung Galaxy A23 with Android 14 after updating. However, not being able to reproduce the issue in the Example app suggests that it could be device-specific or related to your specific configuration. I recommend double-checking all your camera permissions and settings. If the issue persists, please monitor for updates from mrousavy. Feel free to sponsor the project here to support further development!
|
But it's working with version 3.8.2 of the same model, so it shouldn't be a problem with permissions or settings. |
Hi guys, I'm also experiencing same issue with I'm using now:
<Camera
isActive
enableZoomGesture
ref={cameraRef}
device={device}
lowLightBoost={device.supportsLowLightBoost && nightModeEnabled}
codeScanner={codeScanner}
torch={isCameraMounted && supportsFlash && flash ? 'on' : 'off'}
onError={onError}
onInitialized={onInitialized}
style={StyleSheet.absoluteFill}
/> @MaksymKuzmych do you have
Some details from my users:
I found this topic on flutter camera library:
I'm digging in this direction now:
|
And here is a sample with debug output of frame to skia: But on my phone and also my emulator:
Not sure why? is it issue with resize-plugin? or 4.5.2 produces corrupted frames?
My phone output from sample: Same sample with pixelFormat='rgba': |
Updated my gist sample with debug output to skia:
|
Hi, @zwerg44
with the format in your suggestion
and for now it works and I don't receive the Error
Yes, the quality is worse than before, but it scanning QR codes really good without any problems, so I just did the helper function just for this model:
|
I also confirm that just passing I used workaround like this: // constants
const MODEL = DeviceInfo.getModel();
const MODELS_HAS_CAMERA_ISSUE = [
'SM-A235F',
'SM-A235M',
'SM-A235N',
'SM-A233C',
'SM-A2360',
'SM-A236B', // my users
'SM-A236E',
'SM-A236M',
'SM-A236U',
'SM-A236U1',
'SM-S236DL',
'SM-S237VL',
'SM-A236V',
];
const HAS_CAMERA_ISSUE = MODELS_HAS_CAMERA_ISSUE.includes(MODEL);
...
// and then passed format like this to camera
const selectedFormat = useCameraFormat(device, [{ videoResolution: { width: 640, height: 480 } }]);
const format = HAS_CAMERA_ISSUE ? selectedFormat : undefined; |
What's happening?
Issue: QR Code Scanner Fails on Samsung A23 (Android 14)
After updating from version 3.8.2 to 4.5.3, I've encountered an issue on the Samsung A23 running Android 14. The QR code scanner doesn't appear, and I'm receiving the following error:
[session/recoverable-error: An unknown error occurred while creating the Camera Session, but the Camera can recover from it.]
If I remove either the "codeScanner" or "format" prop, the camera will mount, but it won't scan any QR codes.
Code Sample (CodeScannerPipeline.kt)
Issue Details:
Before updating to 4.5.3, everything worked fine on the Samsung A23 as well.
Has anyone encountered this issue or found a workaround? Any assistance would be appreciated!
Reproduceable Code
Relevant log output
Camera Device
Device
Samsung Galaxy A23 (Android 14)
VisionCamera Version
4.5.3
Can you reproduce this issue in the VisionCamera Example app?
No, I cannot reproduce the issue in the Example app
Additional information
The text was updated successfully, but these errors were encountered: