Skip to content

Crash when setup CameraManager #249

Open

Description

@piv199

"*** -[AVCaptureSession startRunning] startRunning may not be called between calls to beginConfiguration and commitConfiguration"

Example setup:

public private(set) lazy var cameraManager = with(CameraManager()) {
            $0.shouldEnableExposure = false
            $0.cameraDevice = .front
            $0.writeFilesToPhoneLibrary = false
            $0.cameraOutputMode = .videoWithMic
            $0.cameraOutputQuality = .hd1280x720
        }

And I have the same call as in example app

cameraManager.addPreviewLayerToView(cameraView, newCameraOutputMode: .videoWithMic)

Activity

  1. Hamna21 commented on Jan 17, 2022

    @Hamna21

    Hello @piv199,

    Were you able to find a solution to resolve this crash?

  2. villyGreen commented on Feb 29, 2024

    @villyGreen

    some issue

  3. chiraggujarati commented on Jul 12, 2025

    @chiraggujarati

    @villyGreen solved, there are 1 case in my side so it's crashing my app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions