Open tgreco opened 1 month ago
Guten Tag, Hans here 🍻
Thanks for reporting ze issue! It looks like you’ve already provided some helpful information, but we do need a bit more to help you effectively.
Could you please confirm if you are able to reproduce zis issue in ze VisionCamera Example app? It’s important to test zis, as it can help narrow down if it’s an issue with your implementation or ze library itself.
Also, please make sure to provide any relevant logs from Xcode, as they can be very useful in diagnosing ze problem. You can find ze logs in Xcode's Output window while running your app.
If you have not tried these steps yet, I recommend doing so, and if ze problem persists, we can take a deeper look together.
Danke!
Note: If you think I made a mistake, please ping
@mrousavy
to take a look.
Hey! I have the same issue in Sentry (400+ times, 150+ users), cannot reproduce in dev though. I'm using code scanner
const device = useCameraDevice('back', {
physicalDevices: [
'ultra-wide-angle-camera',
'telephoto-camera',
'wide-angle-camera',
],
});
const format =
device &&
getCameraFormat(device, [
{fps: 20},
{videoAspectRatio: screenAspectRatio},
{videoResolution: 'max'},
{photoAspectRatio: screenAspectRatio},
{photoResolution: 'max'},
{autoFocusSystem: 'contrast-detection'},
]);
<GestureDetector gesture={tap}>
<Camera
format={format}
zoom={device.neutralZoom}
device={device}
ref={cameraRef}
isActive={isActive}
onError={onError}
codeScanner={codeScanner}
/>
</GestureDetector>
{
"id": "com.apple.avfoundation.avcapturedevice.built-in_video:7",
"maxZoom": 123.75,
"sensorOrientation": "portrait",
"minFocusDistance": 2,
"position": "back",
"formats": [],
"supportsFocus": true,
"supportsRawCapture": false,
"neutralZoom": 2,
"physicalDevices": [
"ultra-wide-angle-camera",
"wide-angle-camera",
"telephoto-camera"
],
"hardwareLevel": "full",
"isMultiCam": true,
"hasTorch": true,
"supportsLowLightBoost": false,
"maxExposure": 8,
"name": "Rear triple camera",
"hasFlash": true,
"minExposure": -8,
"minZoom": 1
}
"react-native-vision-camera": "^4.5.2",
"react-native": "^0.75.4"
@tgreco Did you manage to find a solution?
No solution as of yet unfortunately
What's happening?
When taking a photo randomly I get this error thrown.
Reproduceable Code
Relevant log output
If I try to print the error description I get this nonsense:
Camera Device
Device
iPhone 16 - ios 18.1
VisionCamera Version
4.5.3
Can you reproduce this issue in the VisionCamera Example app?
I didn't try (⚠️ your issue might get ignored & closed if you don't try this)
Additional information