W/art (26834): Suspending all threads took: 5.887ms I/art (26834): Background sticky concurrent mark sweep GC freed 1234(54KB) AllocSpace objects, 11(10MB) LOS objects, 15% free, 28MB/33MB, paused 6.493ms total 18.434ms D/skia (26834): onFlyCompress D/skia (26834): onFlyCompress D/skia (26834): onFlyCompress D/skia (26834): onFlyCompress D/skia (26834): onFlyCompress D/skia (26834): onFlyCompress D/skia (26834): onFlyCompress W/art (26834): Suspending all threads took: 9.822ms I/art (26834): Background sticky concurrent mark sweep GC freed 1499(62KB) AllocSpace objects, 11(9MB) LOS objects, 7% free, 32MB/35MB, paused 10.665ms total 21.818ms D/skia (26834): onFlyCompress D/skia (26834): onFlyCompress D/skia (26834): onFlyCompress I/RequestQueue(26834): Repeating capture request cancelled. I/CameraDeviceState(26834): Legacy camera service transitioning to state IDLE I/CameraDeviceState(26834): Legacy camera service transitioning to state CONFIGURING I/RequestThread-0(26834): Configure outputs: 2 surfaces configured. D/Camera (26834): app passed NULL surface D/libEGL (26834): eglTerminate EGLDisplay = 0x9116afac D/libEGL (26834): eglTerminate EGLDisplay = 0x9116afac D/libEGL (26834): eglTerminate EGLDisplay = 0x9116afac D/libEGL (26834): eglTerminate EGLDisplay = 0x9116afac D/libEGL (26834): eglTerminate EGLDisplay = 0x9116afac D/libEGL (26834): eglTerminate EGLDisplay = 0x9116afac I/RequestThread-0(26834): configureOutputs - set take picture size to 5312x2988 D/libEGL (26834): eglTerminate EGLDisplay = 0x91066374 D/libEGL (26834): eglTerminate EGLDisplay = 0x9106648c D/libEGL (26834): eglTerminate EGLDisplay = 0x9106642c D/libEGL (26834): eglInitialize EGLDisplay = 0x910663f4 I/CameraDeviceState(26834): Legacy camera service transitioning to state IDLE D/libEGL (26834): eglTerminate EGLDisplay = 0x9106648c D/libEGL (26834): eglTerminate EGLDisplay = 0xbe9a158c D/libEGL (26834): eglTerminate EGLDisplay = 0xbe9a1574 E/EventChannel#plugins.flutter.io/camera/imageStream(26834): Failed to close event stream E/EventChannel#plugins.flutter.io/camera/imageStream(26834): java.lang.NullPointerException: Attempt to invoke virtual method 'void android.media.ImageReader.setOnImageAvailableListener(android.media.ImageReader$OnImageAvailableListener, android.os.Handler)' on a null object reference E/EventChannel#plugins.flutter.io/camera/imageStream(26834): at io.flutter.plugins.camera.CameraHandler$Camera$9.onCancel(CameraHandler.java:827) E/EventChannel#plugins.flutter.io/camera/imageStream(26834): at io.flutter.plugin.common.EventChannel$IncomingStreamRequestHandler.onCancel(EventChannel.java:194) E/EventChannel#plugins.flutter.io/camera/imageStream(26834): at io.flutter.plugin.common.EventChannel$IncomingStreamRequestHandler.onMessage(EventChannel.java:162) E/EventChannel#plugins.flutter.io/camera/imageStream(26834): at io.flutter.view.FlutterNativeView$PlatformMessageHandlerImpl.handleMessageFromDart(FlutterNativeView.java:188) E/EventChannel#plugins.flutter.io/camera/imageStream(26834): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:202) E/EventChannel#plugins.flutter.io/camera/imageStream(26834): at android.os.MessageQueue.nativePollOnce(Native Method) E/EventChannel#plugins.flutter.io/camera/imageStream(26834): at android.os.MessageQueue.next(MessageQueue.java:323) E/EventChannel#plugins.flutter.io/camera/imageStream(26834): at android.os.Looper.loop(Looper.java:143) E/EventChannel#plugins.flutter.io/camera/imageStream(26834): at android.app.ActivityThread.main(ActivityThread.java:7225) E/EventChannel#plugins.flutter.io/camera/imageStream(26834): at java.lang.reflect.Method.invoke(Native Method) E/EventChannel#plugins.flutter.io/camera/imageStream(26834): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) E/EventChannel#plugins.flutter.io/camera/imageStream(26834): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120) I/flutter (26834): ══╡ EXCEPTION CAUGHT BY SERVICES LIBRARY ╞══════════════════════════════════════════════════════════ I/flutter (26834): The following PlatformException was thrown while de-activating platform stream on channel I/flutter (26834): plugins.flutter.io/camera/imageStream: I/flutter (26834): PlatformException(error, Attempt to invoke virtual method 'void I/flutter (26834): android.media.ImageReader.setOnImageAvailableListener(android.media.ImageReader$OnImageAvailableListener, I/flutter (26834): android.os.Handler)' on a null object reference, null) I/flutter (26834): When the exception was thrown, this was the stack: I/flutter (26834): #0 StandardMethodCodec.decodeEnvelope I/flutter (26834): #1 MethodChannel.invokeMethod I/flutter (26834): I/flutter (26834): #2 EventChannel.receiveBroadcastStream. I/flutter (26834): I/flutter (26834): #9 CameraController.stopImageStream I/flutter (26834): I/flutter (26834): #10 CameraMlVisionState._stop I/flutter (26834): I/flutter (26834): #11 CameraMlVisionState.deactivate I/flutter (26834): #12 StatefulElement.deactivate I/flutter (26834): #13 _InactiveElements._deactivateRecursively I/flutter (26834): #14 _InactiveElements.add I/flutter (26834): #15 Element.deactivateChild I/flutter (26834): #16 Element.updateChild I/flutter (26834): #17 ComponentElement.performRebuild I/flutter (26834): #18 Element.rebuild I/flutter (26834): #19 StatelessElement.update I/flutter (26834): #20 Element.updateChild I/flutter (26834): #21 ComponentElement.performRebuild I/flutter (26834): #22 Element.rebuild I/flutter (26834): #23 BuildOwner.buildScope I/flutter (26834): #24 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding&WidgetsBinding.drawFrame I/flutter (26834): #25 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding._handlePersistentFrameCallback I/flutter (26834): #26 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback I/flutter (26834): #27 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame I/flutter (26834): #28 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._handleDrawFrame I/flutter (26834): #32 _invoke (dart:ui/hooks.dart:209:10) I/flutter (26834): #33 _drawFrame (dart:ui/hooks.dart:168:3) I/flutter (26834): (elided 9 frames from package dart:async) I/flutter (26834): ════════════════════════════════════════════════════════════════════════════════════════════════════ D/ViewRootImpl(26834): ViewPostImeInputStage processPointer 0 D/ViewRootImpl(26834): ViewPostImeInputStage processPointer 1 Application finished.