Skip to content

🐛 NSInvalidArgumentException: *** -[AVCapturePhotoOutput capturePhotoWithSettings:delegate:] No active and enabled video connection #3633

@Velraj-Dmg

Description

@Velraj-Dmg

What's happening?

NSInvalidArgumentException: *** -[AVCapturePhotoOutput capturePhotoWithSettings:delegate:] No active and enabled video connection. ios26

Reproduceable Code

<ReanimatedCamera
                style={StyleSheet.absoluteFill}
                device={device!}
                isActive={isActive}
                ref={camera}
                onInitialized={onInitialized}
                onError={onError}
                zoom={0}
                onStarted={handleCameraStarted}
                onStopped={handleCameraStopped}
                onPreviewStarted={handlePreviewStarted}
                onPreviewStopped={handlePreviewStopped}
                onOutputOrientationChanged={handleOutputOrientationChanged}
                onPreviewOrientationChanged={handlePreviewOrientationChanged}
                onUIRotationChanged={handleUIRotationChanged}
                format={format}
                fps={fps}
                photoHdr={photoHdr}
                photoQualityBalance={cameraSettings.photoQualityBalance}
                lowLightBoost={canToggleNightMode && enableNightMode}
                enableZoomGesture={cameraSettings.enableZoomGesture}
                exposure={cameraSettings.exposure}
                outputOrientation={cameraSettings.outputOrientation}
                photo={cameraSettings.photo}
                video={cameraSettings.video}
                audio={cameraSettings.audio}
                enableLocation={cameraSettings.enableLocation}
              />

Relevant log output

In production this issue happen IOS

Camera Device

'

Device

iphone 17

VisionCamera Version

"react-native-vision-camera": "4.5.1",

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions