-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work liste: device-specificOnly manifests on certain devicesOnly manifests on certain devicesp: cameraThe camera pluginThe camera pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyAndroid applications specificallyteam-androidOwned by Android platform teamOwned by Android platform teamtriaged-androidTriaged by Android platform teamTriaged by Android platform teamwaiting for customer responseThe Flutter team cannot make further progress on this issue until the original reporter respondsThe Flutter team cannot make further progress on this issue until the original reporter responds
Description
I am getting below error when i use "await camController.takePicture();" function:
I/flutter ( 3986): Error: camera initialized
I/RequestQueue( 3986): Repeating capture request cancelled.
I/RequestQueue( 3986): Repeating capture request set.
W/LegacyRequestMapper( 3986): convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
W/LegacyRequestMapper( 3986): mapAeAndFlashMode - Ignore control.aeMode == ON_AUTO_FLASH;camera does not support it
W/LegacyRequestMapper( 3986): convertRequestToMetadata - Ignoring android.lens.focusDistance false, only 0.0f is supported
I/art ( 3986): Do partial code cache collection, code=60KB, data=61KB
I/art ( 3986): After code cache collection, code=60KB, data=61KB
I/art ( 3986): Increasing code cache capacity to 256KB
D/AndroidRuntime( 3986): Shutting down VM
E/AndroidRuntime( 3986): FATAL EXCEPTION: main
E/AndroidRuntime( 3986): Process: com.example.whatsupflutter, PID: 3986
E/AndroidRuntime( 3986): java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Enum.ordinal()' on a null object reference
E/AndroidRuntime( 3986): at io.flutter.plugins.camera.DeviceOrientationManager.getMediaOrientation(DeviceOrientationManager.java:60)
E/AndroidRuntime( 3986): at io.flutter.plugins.camera.DeviceOrientationManager.getMediaOrientation(DeviceOrientationManager.java:55)
E/AndroidRuntime( 3986): at io.flutter.plugins.camera.Camera.runPictureCapture(Camera.java:552)
E/AndroidRuntime( 3986): at io.flutter.plugins.camera.Camera.access$1500(Camera.java:73)
E/AndroidRuntime( 3986): at io.flutter.plugins.camera.Camera$3.processCapture(Camera.java:510)
E/AndroidRuntime( 3986): at io.flutter.plugins.camera.Camera$3.onCaptureCompleted(Camera.java:442)
E/AndroidRuntime( 3986): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 3986): at android.hardware.camera2.dispatch.InvokeDispatcher.dispatch(InvokeDispatcher.java:39)
E/AndroidRuntime( 3986): at android.hardware.camera2.dispatch.HandlerDispatcher$1.run(HandlerDispatcher.java:65)
E/AndroidRuntime( 3986): at android.os.Handler.handleCallback(Handler.java:754)
E/AndroidRuntime( 3986): at android.os.Handler.dispatchMessage(Handler.java:95)
E/AndroidRuntime( 3986): at android.os.Looper.loop(Looper.java:165)
E/AndroidRuntime( 3986): at android.app.ActivityThread.main(ActivityThread.java:6375)
E/AndroidRuntime( 3986): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 3986): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:912)
E/AndroidRuntime( 3986): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:802)
I/Process ( 3986): Sending signal. PID: 3986 SIG: 9
Lost connection to device.
Exited (sigterm)
Please check and suggest what is the issue and solution? Thanks a lot.
llearn, dmiedev, chris-wickens, zltnDC, sbis04 and 2 more
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work liste: device-specificOnly manifests on certain devicesOnly manifests on certain devicesp: cameraThe camera pluginThe camera pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyAndroid applications specificallyteam-androidOwned by Android platform teamOwned by Android platform teamtriaged-androidTriaged by Android platform teamTriaged by Android platform teamwaiting for customer responseThe Flutter team cannot make further progress on this issue until the original reporter respondsThe Flutter team cannot make further progress on this issue until the original reporter responds