FlutterWithMediaPipe icon indicating copy to clipboard operation
FlutterWithMediaPipe copied to clipboard

Issue with Camera Controller

Open muck27 opened this issue 4 years ago • 0 comments

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))

muck27 avatar Oct 25 '21 07:10 muck27