Skip to content

Issue with Camera Controller #2

@muck27

Description

@muck27

I am running this application on a google pixel 4a.
I am getting these issues for all 4 models of media pipe..

Encountering the following errors:

======== Exception caught by foundation library ====================================================
The following _CastError was thrown while dispatching notifications for CameraController:
Null check operator used on a null value

When the exception was thrown, this was the stack:
#0 _CameraPageState.onNewCameraSelected. (package:flutter_with_mediapipe/pages/camera_page.dart:131:28)
#1 ChangeNotifier.notifyListeners (package:flutter/src/foundation/change_notifier.dart:243:25)
#2 ValueNotifier.value= (package:flutter/src/foundation/change_notifier.dart:309:5)
#3 CameraController.initialize. (package:camera/src/camera_controller.dart:267:9)
#11 Where.whereType. (package:stream_transform/src/where.dart:21:30)
...
The CameraController sending notification was: CameraController#a6084(CameraValue(isRecordingVideo: false, isInitialized: true, errorDescription: null, previewSize: Size(720.0, 480.0), isStreamingImages: true, flashMode: FlashMode.auto, exposureMode: ExposureMode.auto, focusMode: FocusMode.auto, exposurePointSupported: true, focusPointSupported: true, deviceOrientation: DeviceOrientation.portraitUp, lockedCaptureOrientation: null, recordingOrientation: null))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions