-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
flutter/packages
#6493Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listc: fatal crashCrashes that terminate the processCrashes that terminate the processfound in release: 3.19Found to occur in 3.19Found to occur in 3.19found in release: 3.22Found to occur in 3.22Found to occur in 3.22has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: cameraThe camera pluginThe camera pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.perf: memoryPerformance issues related to memoryPerformance issues related to memoryplatform-androidAndroid applications specificallyAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-androidOwned by Android platform teamOwned by Android platform team
Description
Steps to reproduce
pubspec.yaml
camera: ^0.10.5+9
camera_android_camerax: ^0.6.1
- Paste the attached code anywhere in Flutter application
- Add necessary dependencies/permissions to respective Android files
- Run application (tested in debug, profile, and prod)
Expected results
Flutter should stream images and clean up the memory periodically.
Actual results
Memory continues to build up until the application crashes. Higher camera resolutions cause crashes much quicker. Occasionally, the memory profiler will show a drastic drop in memory usage before building up again.
Code sample
Code sample
// Assign the format group based on the platform
final formatGroup = Platform.isIOS ? ImageFormatGroup.bgra8888 : ImageFormatGroup.yuv420;
// Set the target camera resolution
ResolutionPreset resolutionPreset = ResolutionPreset.ultraHigh;
// Get the correct camera lens
final cameras = await availableCameras();
final description = cameras.firstWhere(
(c) => c.lensDirection == CameraLensDirection.back,
);
// Create a camera controller
final CameraController controller = CameraController(
description,
resolutionPreset,
enableAudio: false,
imageFormatGroup: formatGroup,
);
// Initialize the controller
await controller.initialize();
// Start the image stream with an empty callback
await controller.startImageStream((image) {
return;
});
// Wait for 60 seconds
await Future.delayed(const Duration(seconds: 60));
// Stop and dispose the camera controller
await controller.stopImageStream();
await controller.dispose();Screenshots or Video
Logs
Logs
D/CameraOrientationUtil(26626): getRelativeImageRotation: destRotationDegrees=0, sourceRotationDegrees=90, isOppositeFacing=true, result=90
4
I/CameraManagerGlobal(26626): postSingleUpdate device: camera id 0 status STATUS_PRESENT
I/CameraManagerGlobal(26626): Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_CLOSED for client com.converus.mobile API Level 2User Id 0
D/UseCaseAttachState(26626): Active and attached use case: [] for camera: 0
D/Camera2CameraImpl(26626): {Camera@922bc09[id=0]} Use case androidx.camera.core.ImageCapture-caef0ff3-d70c-4426-bb28-d81ffe2b067133284237 ACTIVE
D/UseCaseAttachState(26626): Active and attached use case: [] for camera: 0
D/Camera2CameraImpl(26626): {Camera@922bc09[id=0]} Use case androidx.camera.core.Preview-bcdbf3d8-99c8-44e3-b09d-85c93c432aa099292953 ACTIVE
D/UseCaseAttachState(26626): Active and attached use case: [] for camera: 0
D/Camera2CameraImpl(26626): {Camera@922bc09[id=0]} Use case androidx.camera.core.ImageCapture-caef0ff3-d70c-4426-bb28-d81ffe2b067133284237 ACTIVE
D/UseCaseAttachState(26626): Active and attached use case: [] for camera: 0
D/Camera2CameraImpl(26626): {Camera@922bc09[id=0]} Use case androidx.camera.core.ImageAnalysis-fc2861ba-12b9-4ff3-ba67-066c2ce6c61d209322579 INACTIVE
2
D/UseCaseAttachState(26626): Active and attached use case: [] for camera: 0
D/Camera2CameraImpl(26626): {Camera@922bc09[id=0]} Use cases [androidx.camera.core.Preview-bcdbf3d8-99c8-44e3-b09d-85c93c432aa099292953, androidx.camera.core.ImageCapture-caef0ff3-d70c-4426-bb28-d81ffe2b067133284237, androidx.camera.core.ImageAnalysis-fc2861ba-12b9-4ff3-ba67-066c2ce6c61d209322579] now ATTACHED
D/UseCaseAttachState(26626): All use case: [androidx.camera.core.ImageCapture-caef0ff3-d70c-4426-bb28-d81ffe2b067133284237, androidx.camera.core.Preview-bcdbf3d8-99c8-44e3-b09d-85c93c432aa099292953, androidx.camera.core.ImageAnalysis-fc2861ba-12b9-4ff3-ba67-066c2ce6c61d209322579] for camera: 0
D/UseCaseAttachState(26626): Active and attached use case: [androidx.camera.core.ImageCapture-caef0ff3-d70c-4426-bb28-d81ffe2b067133284237, androidx.camera.core.Preview-bcdbf3d8-99c8-44e3-b09d-85c93c432aa099292953] for camera: 0
D/CameraOrientationUtil(26626): getRelativeImageRotation: destRotationDegrees=0, sourceRotationDegrees=90, isOppositeFacing=true, result=90
D/CameraOrientationUtil(26626): getRelativeImageRotation: destRotationDegrees=0, sourceRotationDegrees=270, isOppositeFacing=false, result=270
D/Camera2CameraImpl(26626): {Camera@922bc09[id=0]} Resetting Capture Session
D/Camera2CameraImpl(26626): {Camera@922bc09[id=0]} Releasing session in state CLOSING
D/Camera2CameraImpl(26626): {Camera@922bc09[id=0]} Transitioning camera internal state: CLOSING --> REOPENING
D/CameraStateRegistry(26626): Recalculating open cameras:
D/CameraStateRegistry(26626): Camera State
D/CameraStateRegistry(26626): -------------------------------------------------------------------
D/CameraStateRegistry(26626): Camera@6ecc0e6[id=1] UNKNOWN
D/CameraStateRegistry(26626): Camera@922bc09[id=0] OPENING
D/CameraStateRegistry(26626): Camera@575b979[id=2] UNKNOWN
D/CameraStateRegistry(26626): Camera@2a4a23b[id=3] UNKNOWN
D/CameraStateRegistry(26626): -------------------------------------------------------------------
D/CameraStateRegistry(26626): Open count: 1 (Max allowed: 1)
D/CameraStateMachine(26626): New public camera state CameraState{type=OPENING, error=null} from OPENING and null
D/CameraStateMachine(26626): Publishing new public camera state CameraState{type=OPENING, error=null}
2
E/ObserverFlutterApi(26626): The Observer that received a callback has been garbage collected. Please create a new instance to receive any further data changes.
D/Camera2CameraImpl(26626): {Camera@922bc09[id=0]} Use case androidx.camera.core.Preview-bcdbf3d8-99c8-44e3-b09d-85c93c432aa099292953 ACTIVE
D/UseCaseAttachState(26626): Active and attached use case: [androidx.camera.core.ImageCapture-caef0ff3-d70c-4426-bb28-d81ffe2b067133284237, androidx.camera.core.Preview-bcdbf3d8-99c8-44e3-b09d-85c93c432aa099292953] for camera: 0
D/Camera2CameraImpl(26626): {Camera@922bc09[id=0]} Use case androidx.camera.core.ImageCapture-caef0ff3-d70c-4426-bb28-d81ffe2b067133284237 ACTIVE
D/UseCaseAttachState(26626): Active and attached use case: [androidx.camera.core.ImageCapture-caef0ff3-d70c-4426-bb28-d81ffe2b067133284237, androidx.camera.core.Preview-bcdbf3d8-99c8-44e3-b09d-85c93c432aa099292953] for camera: 0
D/Camera2CameraImpl(26626): {Camera@922bc09[id=0]} Use case androidx.camera.core.ImageAnalysis-fc2861ba-12b9-4ff3-ba67-066c2ce6c61d209322579 INACTIVE
D/UseCaseAttachState(26626): Active and attached use case: [androidx.camera.core.ImageCapture-caef0ff3-d70c-4426-bb28-d81ffe2b067133284237, androidx.camera.core.Preview-bcdbf3d8-99c8-44e3-b09d-85c93c432aa099292953] for camera: 0
D/DeferrableSurface(26626): use count-1, useCount=0 closed=true androidx.camera.core.processing.SurfaceEdge$SettableSurface@3788de6
D/DeferrableSurface(26626): Surface no longer in use[total_surfaces=8, used_surfaces=4](androidx.camera.core.processing.SurfaceEdge$SettableSurface@3788de6}
D/DeferrableSurface(26626): Surface terminated[total_surfaces=7, used_surfaces=4](androidx.camera.core.processing.SurfaceEdge$SettableSurface@3788de6}
D/DeferrableSurface(26626): use count-1, useCount=0 closed=false androidx.camera.core.SurfaceRequest$2@72fa272
D/DeferrableSurface(26626): Surface no longer in use[total_surfaces=7, used_surfaces=3](androidx.camera.core.SurfaceRequest$2@72fa272}
D/DeferrableSurface(26626): surface closed, useCount=0 closed=true androidx.camera.core.SurfaceRequest$2@72fa272
D/DeferrableSurface(26626): Surface terminated[total_surfaces=6, used_surfaces=3](androidx.camera.core.SurfaceRequest$2@72fa272}
D/DeferrableSurface(26626): use count-1, useCount=0 closed=true androidx.camera.core.impl.ImmediateSurface@9665c1f
D/DeferrableSurface(26626): Surface no longer in use[total_surfaces=6, used_surfaces=2](androidx.camera.core.impl.ImmediateSurface@9665c1f}
D/DeferrableSurface(26626): Surface terminated[total_surfaces=5, used_surfaces=2](androidx.camera.core.impl.ImmediateSurface@9665c1f}
D/DeferrableSurface(26626): use count-1, useCount=0 closed=true androidx.camera.core.impl.ImmediateSurface@be08535
D/DeferrableSurface(26626): Surface no longer in use[total_surfaces=5, used_surfaces=1](androidx.camera.core.impl.ImmediateSurface@be08535}
D/DeferrableSurface(26626): Surface terminated[total_surfaces=4, used_surfaces=1](androidx.camera.core.impl.ImmediateSurface@be08535}
D/Camera2CameraImpl(26626): {Camera@922bc09[id=0]} CameraDevice.onClosed()
D/Camera2CameraImpl(26626): {Camera@922bc09[id=0]} Attempting to open the camera.
D/CameraStateRegistry(26626): tryOpenCamera(Camera@922bc09[id=0]) [Available Cameras: 0, Already Open: true (Previous state: OPENING)] --> SUCCESS
D/CameraStateRegistry(26626): Recalculating open cameras:
D/CameraStateRegistry(26626): Camera State
D/CameraStateRegistry(26626): -------------------------------------------------------------------
D/CameraStateRegistry(26626): Camera@6ecc0e6[id=1] UNKNOWN
D/CameraStateRegistry(26626): Camera@922bc09[id=0] OPENING
D/CameraStateRegistry(26626): Camera@575b979[id=2] UNKNOWN
D/CameraStateRegistry(26626): Camera@2a4a23b[id=3] UNKNOWN
D/CameraStateRegistry(26626): -------------------------------------------------------------------
D/CameraStateRegistry(26626): Open count: 1 (Max allowed: 1)
D/Camera2CameraImpl(26626): {Camera@922bc09[id=0]} Opening camera.
D/Camera2CameraImpl(26626): {Camera@922bc09[id=0]} Transitioning camera internal state: REOPENING --> OPENING
D/CameraStateMachine(26626): New public camera state CameraState{type=OPENING, error=null} from OPENING and null
D/UseCaseAttachState(26626): All use case: [androidx.camera.core.ImageCapture-caef0ff3-d70c-4426-bb28-d81ffe2b067133284237, androidx.camera.core.Preview-bcdbf3d8-99c8-44e3-b09d-85c93c432aa099292953, androidx.camera.core.ImageAnalysis-fc2861ba-12b9-4ff3-ba67-066c2ce6c61d209322579] for camera: 0
D/CameraOrientationUtil(26626): getRelativeImageRotation: destRotationDegrees=0, sourceRotationDegrees=90, isOppositeFacing=true, result=90
D/CameraOrientationUtil(26626): getRelativeImageRotation: destRotationDegrees=0, sourceRotationDegrees=270, isOppositeFacing=false, result=270
I/BpBinder(26626): onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
D/DeferrableSurface(26626): surface closed, useCount=0 closed=true androidx.camera.core.processing.SurfaceEdge$SettableSurface@9bda8a8
D/DeferrableSurface(26626): Surface terminated[total_surfaces=3, used_surfaces=1](androidx.camera.core.processing.SurfaceEdge$SettableSurface@9bda8a8}
D/DeferrableSurface(26626): use count-1, useCount=0 closed=false androidx.camera.core.SurfaceRequest$2@698a754
D/DeferrableSurface(26626): Surface no longer in use[total_surfaces=3, used_surfaces=0](androidx.camera.core.SurfaceRequest$2@698a754}
D/DeferrableSurface(26626): surface closed, useCount=0 closed=true androidx.camera.core.SurfaceRequest$2@698a754
D/DeferrableSurface(26626): Surface terminated[total_surfaces=2, used_surfaces=0](androidx.camera.core.SurfaceRequest$2@698a754}
D/ImageCapture(26626): clearPipeline
D/DeferrableSurface(26626): surface closed, useCount=0 closed=true androidx.camera.core.impl.ImmediateSurface@6ee15f9
D/DeferrableSurface(26626): Surface terminated[total_surfaces=1, used_surfaces=0](androidx.camera.core.impl.ImmediateSurface@6ee15f9}
D/DeferrableSurface(26626): surface closed, useCount=0 closed=true androidx.camera.core.impl.ImmediateSurface@e4ce39f
D/DeferrableSurface(26626): Surface terminated[total_surfaces=0, used_surfaces=0](androidx.camera.core.impl.ImmediateSurface@e4ce39f}
4
I/CameraManagerGlobal(26626): postSingleUpdate device: camera id 0 status STATUS_NOT_AVAILABLE
I/CameraManagerGlobal(26626): Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_OPEN for client com.converus.mobile API Level 2User Id 0
D/Camera2CameraImpl(26626): {Camera@922bc09[id=0]} Use case androidx.camera.core.ImageAnalysis-fc2861ba-12b9-4ff3-ba67-066c2ce6c61d209322579 ACTIVE
D/UseCaseAttachState(26626): Active and attached use case: [androidx.camera.core.ImageCapture-caef0ff3-d70c-4426-bb28-d81ffe2b067133284237, androidx.camera.core.Preview-bcdbf3d8-99c8-44e3-b09d-85c93c432aa099292953, androidx.camera.core.ImageAnalysis-fc2861ba-12b9-4ff3-ba67-066c2ce6c61d209322579] for camera: 0
D/Camera2CameraImpl(26626): {Camera@922bc09[id=0]} Use cases [androidx.camera.core.Preview-bcdbf3d8-99c8-44e3-b09d-85c93c432aa099292953, androidx.camera.core.ImageCapture-caef0ff3-d70c-4426-bb28-d81ffe2b067133284237, androidx.camera.core.ImageAnalysis-fc2861ba-12b9-4ff3-ba67-066c2ce6c61d209322579] now DETACHED for camera
D/UseCaseAttachState(26626): All use case: [] for camera: 0
D/Camera2CameraImpl(26626): {Camera@922bc09[id=0]} Resetting Capture Session
D/Camera2CameraImpl(26626): {Camera@922bc09[id=0]} Releasing session in state OPENING
2
D/UseCaseAttachState(26626): Active and attached use case: [] for camera: 0
D/Camera2CameraImpl(26626): {Camera@922bc09[id=0]} Closing camera.
D/Camera2CameraImpl(26626): {Camera@922bc09[id=0]} Transitioning camera internal state: OPENING --> CLOSING
D/CameraStateRegistry(26626): Recalculating open cameras:
D/CameraStateRegistry(26626): Camera State
D/CameraStateRegistry(26626): -------------------------------------------------------------------
D/CameraStateRegistry(26626): Camera@6ecc0e6[id=1] UNKNOWN
D/CameraStateRegistry(26626): Camera@922bc09[id=0] CLOSING
D/CameraStateRegistry(26626): Camera@575b979[id=2] UNKNOWN
D/CameraStateRegistry(26626): Camera@2a4a23b[id=3] UNKNOWN
D/CameraStateRegistry(26626): -------------------------------------------------------------------
D/CameraStateRegistry(26626): Open count: 1 (Max allowed: 1)
D/CameraStateMachine(26626): New public camera state CameraState{type=CLOSING, error=null} from CLOSING and null
D/CameraStateMachine(26626): Publishing new public camera state CameraState{type=CLOSING, error=null}
2
E/ObserverFlutterApi(26626): The Observer that received a callback has been garbage collected. Please create a new instance to receive any further data changes.
D/Camera2CameraImpl(26626): {Camera@922bc09[id=0]} CameraDevice.onOpened()
5
D/CameraOrientationUtil(26626): getRelativeImageRotation: destRotationDegrees=0, sourceRotationDegrees=90, isOppositeFacing=true, result=90
D/DynamicRangeResolver(26626): Resolved dynamic range for use case androidx.camera.core.Preview-85d3634a-7e78-44cb-b2f7-c7f2c404148e to no compatible HDR dynamic ranges.
D/DynamicRangeResolver(26626): DynamicRange@d4d62ea{encoding=UNSPECIFIED, bitDepth=0}
D/DynamicRangeResolver(26626): ->
D/DynamicRangeResolver(26626): DynamicRange@ce67ad5{encoding=SDR, bitDepth=8}
4
I/CameraManagerGlobal(26626): postSingleUpdate device: camera id 0 status STATUS_PRESENT
I/CameraManagerGlobal(26626): Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_CLOSED for client com.converus.mobile API Level 2User Id 0
2
D/UseCaseAttachState(26626): Active and attached use case: [] for camera: 0
D/Camera2CameraImpl(26626): {Camera@922bc09[id=0]} CameraDevice.onClosed()
D/Camera2CameraImpl(26626): {Camera@922bc09[id=0]} Transitioning camera internal state: CLOSING --> INITIALIZED
D/CameraStateRegistry(26626): Recalculating open cameras:
D/CameraStateRegistry(26626): Camera State
D/CameraStateRegistry(26626): -------------------------------------------------------------------
D/CameraStateRegistry(26626): Camera@6ecc0e6[id=1] UNKNOWN
D/CameraStateRegistry(26626): Camera@922bc09[id=0] CLOSED
D/CameraStateRegistry(26626): Camera@575b979[id=2] UNKNOWN
D/CameraStateRegistry(26626): Camera@2a4a23b[id=3] UNKNOWN
D/CameraStateRegistry(26626): -------------------------------------------------------------------
D/CameraStateRegistry(26626): Open count: 0 (Max allowed: 1)
D/CameraStateMachine(26626): New public camera state CameraState{type=CLOSED, error=null} from CLOSED and null
D/CameraStateMachine(26626): Publishing new public camera state CameraState{type=CLOSED, error=null}
D/CameraOrientationUtil(26626): getRelativeImageRotation: destRotationDegrees=0, sourceRotationDegrees=90, isOppositeFacing=true, result=90
D/DeferrableSurface(26626): Surface created[total_surfaces=1, used_surfaces=0](androidx.camera.core.processing.SurfaceEdge$SettableSurface@bb8e074}
D/DeferrableSurface(26626): Surface created[total_surfaces=2, used_surfaces=0](androidx.camera.core.SurfaceRequest$2@fbd8fe0}
D/DeferrableSurface(26626): New surface in use[total_surfaces=2, used_surfaces=1](androidx.camera.core.SurfaceRequest$2@fbd8fe0}
D/DeferrableSurface(26626): use count+1, useCount=1 androidx.camera.core.SurfaceRequest$2@fbd8fe0
D/CameraOrientationUtil(26626): getRelativeImageRotation: destRotationDegrees=0, sourceRotationDegrees=90, isOppositeFacing=true, result=90
D/ImageCapture(26626): createPipeline(cameraId: 0, streamSpec: StreamSpec{resolution=3840x2160, dynamicRange=DynamicRange@ce67ad5{encoding=SDR, bitDepth=8}, expectedFrameRateRange=[0, 0], implementationOptions=androidx.camera.camera2.impl.Camera2ImplConfig@b9bca0c})
D/DeferrableSurface(26626): Surface created[total_surfaces=3, used_surfaces=1](androidx.camera.core.impl.ImmediateSurface@a2cdf55}
D/Camera2CameraImpl(26626): {Camera@922bc09[id=0]} Use case androidx.camera.core.ImageCapture-2053cd2b-6ee4-43ed-a08f-cb06c1392191190190806 ACTIVE
D/UseCaseAttachState(26626): Active and attached use case: [] for camera: 0
2
D/CameraOrientationUtil(26626): getRelativeImageRotation: destRotationDegrees=0, sourceRotationDegrees=90, isOppositeFacing=true, result=90
D/DeferrableSurface(26626): Surface created[total_surfaces=4, used_surfaces=1](androidx.camera.core.impl.ImmediateSurface@c66d25b}
D/Camera2CameraImpl(26626): {Camera@922bc09[id=0]} Use case androidx.camera.core.Preview-85d3634a-7e78-44cb-b2f7-c7f2c404148e38959739 ACTIVE
D/UseCaseAttachState(26626): Active and attached use case: [] for camera: 0
D/Camera2CameraImpl(26626): {Camera@922bc09[id=0]} Use case androidx.camera.core.ImageCapture-2053cd2b-6ee4-43ed-a08f-cb06c1392191190190806 ACTIVE
2
E/ObserverFlutterApi(26626): The Observer that received a callback has been garbage collected. Please create a new instance to receive any further data changes.
D/UseCaseAttachState(26626): Active and attached use case: [] for camera: 0
D/Camera2CameraImpl(26626): {Camera@922bc09[id=0]} Use case androidx.camera.core.ImageAnalysis-b7f526b1-5214-4b8c-9c4a-826970b66783236936772 INACTIVE
2
D/UseCaseAttachState(26626): Active and attached use case: [] for camera: 0
D/Camera2CameraImpl(26626): {Camera@922bc09[id=0]} Use cases [androidx.camera.core.Preview-85d3634a-7e78-44cb-b2f7-c7f2c404148e38959739, androidx.camera.core.ImageCapture-2053cd2b-6ee4-43ed-a08f-cb06c1392191190190806, androidx.camera.core.ImageAnalysis-b7f526b1-5214-4b8c-9c4a-826970b66783236936772] now ATTACHED
D/UseCaseAttachState(26626): All use case: [androidx.camera.core.ImageCapture-2053cd2b-6ee4-43ed-a08f-cb06c1392191190190806, androidx.camera.core.Preview-85d3634a-7e78-44cb-b2f7-c7f2c404148e38959739, androidx.camera.core.ImageAnalysis-b7f526b1-5214-4b8c-9c4a-826970b66783236936772] for camera: 0
D/UseCaseAttachState(26626): Active and attached use case: [androidx.camera.core.ImageCapture-2053cd2b-6ee4-43ed-a08f-cb06c1392191190190806, androidx.camera.core.Preview-85d3634a-7e78-44cb-b2f7-c7f2c404148e38959739] for camera: 0
D/Camera2CameraImpl(26626): {Camera@922bc09[id=0]} Resetting Capture Session
D/Camera2CameraImpl(26626): {Camera@922bc09[id=0]} Releasing session in state INITIALIZED
D/Camera2CameraImpl(26626): {Camera@922bc09[id=0]} Attempting to force open the camera.
D/CameraStateRegistry(26626): tryOpenCamera(Camera@922bc09[id=0]) [Available Cameras: 1, Already Open: false (Previous state: CLOSED)] --> SUCCESS
D/CameraStateRegistry(26626): Recalculating open cameras:
D/CameraStateRegistry(26626): Camera State
D/CameraStateRegistry(26626): -------------------------------------------------------------------
D/CameraStateRegistry(26626): Camera@6ecc0e6[id=1] UNKNOWN
D/CameraStateRegistry(26626): Camera@922bc09[id=0] OPENING
D/CameraStateRegistry(26626): Camera@575b979[id=2] UNKNOWN
D/CameraStateRegistry(26626): Camera@2a4a23b[id=3] UNKNOWN
D/CameraStateRegistry(26626): -------------------------------------------------------------------
D/CameraStateRegistry(26626): Open count: 1 (Max allowed: 1)
D/Camera2CameraImpl(26626): {Camera@922bc09[id=0]} Opening camera.
D/Camera2CameraImpl(26626): {Camera@922bc09[id=0]} Transitioning camera internal state: INITIALIZED --> OPENING
D/CameraStateMachine(26626): New public camera state CameraState{type=OPENING, error=null} from OPENING and null
D/CameraStateMachine(26626): Publishing new public camera state CameraState{type=OPENING, error=null}
D/UseCaseAttachState(26626): All use case: [androidx.camera.core.ImageCapture-2053cd2b-6ee4-43ed-a08f-cb06c1392191190190806, androidx.camera.core.Preview-85d3634a-7e78-44cb-b2f7-c7f2c404148e38959739, androidx.camera.core.ImageAnalysis-b7f526b1-5214-4b8c-9c4a-826970b66783236936772] for camera: 0
D/CameraOrientationUtil(26626): getRelativeImageRotation: destRotationDegrees=0, sourceRotationDegrees=90, isOppositeFacing=true, result=90
4
I/CameraManagerGlobal(26626): postSingleUpdate device: camera id 0 status STATUS_NOT_AVAILABLE
I/CameraManagerGlobal(26626): Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_OPEN for client com.converus.mobile API Level 2User Id 0
D/Camera2CameraImpl(26626): {Camera@922bc09[id=0]} Use case androidx.camera.core.Preview-85d3634a-7e78-44cb-b2f7-c7f2c404148e38959739 ACTIVE
D/UseCaseAttachState(26626): Active and attached use case: [androidx.camera.core.ImageCapture-2053cd2b-6ee4-43ed-a08f-cb06c1392191190190806, androidx.camera.core.Preview-85d3634a-7e78-44cb-b2f7-c7f2c404148e38959739] for camera: 0
D/Camera2CameraImpl(26626): {Camera@922bc09[id=0]} Use case androidx.camera.core.ImageCapture-2053cd2b-6ee4-43ed-a08f-cb06c1392191190190806 ACTIVE
D/UseCaseAttachState(26626): Active and attached use case: [androidx.camera.core.ImageCapture-2053cd2b-6ee4-43ed-a08f-cb06c1392191190190806, androidx.camera.core.Preview-85d3634a-7e78-44cb-b2f7-c7f2c404148e38959739] for camera: 0
D/Camera2CameraImpl(26626): {Camera@922bc09[id=0]} Use case androidx.camera.core.ImageAnalysis-b7f526b1-5214-4b8c-9c4a-826970b66783236936772 INACTIVE
D/UseCaseAttachState(26626): Active and attached use case: [androidx.camera.core.ImageCapture-2053cd2b-6ee4-43ed-a08f-cb06c1392191190190806, androidx.camera.core.Preview-85d3634a-7e78-44cb-b2f7-c7f2c404148e38959739] for camera: 0
D/Camera2CameraImpl(26626): {Camera@922bc09[id=0]} Use case androidx.camera.core.ImageAnalysis-b7f526b1-5214-4b8c-9c4a-826970b66783236936772 ACTIVE
D/UseCaseAttachState(26626): Active and attached use case: [androidx.camera.core.ImageCapture-2053cd2b-6ee4-43ed-a08f-cb06c1392191190190806, androidx.camera.core.Preview-85d3634a-7e78-44cb-b2f7-c7f2c404148e38959739, androidx.camera.core.ImageAnalysis-b7f526b1-5214-4b8c-9c4a-826970b66783236936772] for camera: 0
D/Camera2CameraImpl(26626): {Camera@922bc09[id=0]} CameraDevice.onOpened()
D/Camera2CameraImpl(26626): {Camera@922bc09[id=0]} Transitioning camera internal state: OPENING --> OPENED
D/CameraStateRegistry(26626): Recalculating open cameras:
D/CameraStateRegistry(26626): Camera State
D/CameraStateRegistry(26626): -------------------------------------------------------------------
D/CameraStateRegistry(26626): Camera@6ecc0e6[id=1] UNKNOWN
D/CameraStateRegistry(26626): Camera@922bc09[id=0] OPEN
D/CameraStateRegistry(26626): Camera@575b979[id=2] UNKNOWN
D/CameraStateRegistry(26626): Camera@2a4a23b[id=3] UNKNOWN
D/CameraStateRegistry(26626): -------------------------------------------------------------------
D/CameraStateRegistry(26626): Open count: 1 (Max allowed: 1)
D/CameraStateMachine(26626): New public camera state CameraState{type=OPEN, error=null} from OPEN and null
D/CameraStateMachine(26626): Publishing new public camera state CameraState{type=OPEN, error=null}
D/UseCaseAttachState(26626): All use case: [androidx.camera.core.ImageCapture-2053cd2b-6ee4-43ed-a08f-cb06c1392191190190806, androidx.camera.core.Preview-85d3634a-7e78-44cb-b2f7-c7f2c404148e38959739, androidx.camera.core.ImageAnalysis-b7f526b1-5214-4b8c-9c4a-826970b66783236936772] for camera: 0
D/UseCaseAttachState(26626): Active and attached use case: [androidx.camera.core.ImageCapture-2053cd2b-6ee4-43ed-a08f-cb06c1392191190190806, androidx.camera.core.Preview-85d3634a-7e78-44cb-b2f7-c7f2c404148e38959739, androidx.camera.core.ImageAnalysis-b7f526b1-5214-4b8c-9c4a-826970b66783236936772] for camera: 0
D/SyncCaptureSessionBase(26626): [androidx.camera.camera2.internal.SynchronizedCaptureSessionBaseImpl@4589f17] getSurface...done
D/CaptureSession(26626): Opening capture session.
D/DeferrableSurface(26626): New surface in use[total_surfaces=4, used_surfaces=2](androidx.camera.core.processing.SurfaceEdge$SettableSurface@bb8e074}
D/DeferrableSurface(26626): use count+1, useCount=1 androidx.camera.core.processing.SurfaceEdge$SettableSurface@bb8e074
D/DeferrableSurface(26626): New surface in use[total_surfaces=4, used_surfaces=3](androidx.camera.core.impl.ImmediateSurface@a2cdf55}
D/DeferrableSurface(26626): use count+1, useCount=1 androidx.camera.core.impl.ImmediateSurface@a2cdf55
D/DeferrableSurface(26626): New surface in use[total_surfaces=4, used_surfaces=4](androidx.camera.core.impl.ImmediateSurface@c66d25b}
D/DeferrableSurface(26626): use count+1, useCount=1 androidx.camera.core.impl.ImmediateSurface@c66d25b
D/CaptureSession(26626): Attempting to send capture request onConfigured
D/CaptureSession(26626): Issuing request for session.
D/Camera2CaptureRequestBuilder(26626): createCaptureRequest
I/CameraManagerGlobal(26626): Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_ACTIVE for client com.converus.mobile API Level 2User Id 0
D/CaptureSession(26626): CameraCaptureSession.onConfigured() mState=OPENED
D/CaptureSession(26626): CameraCaptureSession.onReady() OPENED
I/converus.mobile(26626): Background young concurrent copying GC freed 590(114KB) AllocSpace objects, 0(0B) LOS objects, 0% free, 47MB/47MB, paused 8.716ms,28us total 20.731ms
I/converus.mobile(26626): Background young concurrent copying GC freed 283(115KB) AllocSpace objects, 1(8104KB) LOS objects, 0% free, 107MB/107MB, paused 5.809ms,28us total 33.923ms
I/converus.mobile(26626): Background young concurrent copying GC freed 161(63KB) AllocSpace objects, 0(0B) LOS objects, 0% free, 71MB/71MB, paused 5.424ms,21us total 32.499ms
I/converus.mobile(26626): Background concurrent copying GC freed 824(123KB) AllocSpace objects, 9(63MB) LOS objects, 35% free, 43MB/67MB, paused 5.529ms,96us total 51.553ms
I/converus.mobile(26626): Background young concurrent copying GC freed 592(85KB) AllocSpace objects, 1(8104KB) LOS objects, 0% free, 103MB/103MB, paused 2.749ms,5.733ms total 29.452ms
W/converus.mobile(26626): Suspending all threads took: 8.048ms
I/converus.mobile(26626): Background young concurrent copying GC freed 603(115KB) AllocSpace objects, 2(11MB) LOS objects, 0% free, 91MB/91MB, paused 3.295ms,8.198ms total 28.013ms
I/converus.mobile(26626): Background concurrent copying GC freed 139(23KB) AllocSpace objects, 6(51MB) LOS objects, 42% free, 32MB/56MB, paused 6.626ms,33us total 35.488ms
I/converus.mobile(26626): Background young concurrent copying GC freed 476(102KB) AllocSpace objects, 0(0B) LOS objects, 0% free, 67MB/67MB, paused 5.483ms,28us total 25.179ms
I/converus.mobile(26626): Background concurrent copying GC freed 280(59KB) AllocSpace objects, 17(102MB) LOS objects, 35% free, 43MB/67MB, paused 7.499ms,57us total 52.006ms
I/converus.mobile(26626): Background concurrent copying GC freed 842(143KB) AllocSpace objects, 17(118MB) LOS objects, 14% free, 142MB/166MB, paused 67us,113us total 106.177ms
I/converus.mobile(26626): Background concurrent copying GC freed 890(137KB) AllocSpace objects, 18(126MB) LOS objects, 35% free, 43MB/67MB, paused 26.758ms,23us total 77.662ms
I/converus.mobile(26626): Background concurrent copying GC freed 880(123KB) AllocSpace objects, 13(63MB) LOS objects, 22% free, 83MB/107MB, paused 5.233ms,25us total 68.956ms
I/converus.mobile(26626): Background young concurrent copying GC freed 641(131KB) AllocSpace objects, 10(55MB) LOS objects, 0% free, 107MB/107MB, paused 10.431ms,26us total 58.220ms
I/converus.mobile(26626): Background young concurrent copying GC freed 620(118KB) AllocSpace objects, 5(27MB) LOS objects, 0% free, 103MB/103MB, paused 25.658ms,79us total 65.939ms
I/converus.mobile(26626): Background concurrent copying GC freed 805(128KB) AllocSpace objects, 14(102MB) LOS objects, 17% free, 115MB/139MB, paused 67us,4.802ms total 122.726ms
I/converus.mobile(26626): Waiting for a blocking GC Alloc
I/converus.mobile(26626): Background concurrent copying GC freed 794(128KB) AllocSpace objects, 17(118MB) LOS objects, 15% free, 131MB/155MB, paused 295us,27us total 139.449ms
I/converus.mobile(26626): WaitForGcToComplete blocked Alloc on Background for 41.780ms
I/converus.mobile(26626): Starting a blocking GC Alloc
I/converus.mobile(26626): Background concurrent copying GC freed 639(118KB) AllocSpace objects, 17(118MB) LOS objects, 16% free, 123MB/147MB, paused 56us,1.088ms total 117.397ms
I/converus.mobile(26626): Waiting for a blocking GC Alloc
I/converus.mobile(26626): Background concurrent copying GC freed 996(148KB) AllocSpace objects, 23(150MB) LOS objects, 18% free, 103MB/127MB, paused 122us,35us total 103.019ms
I/converus.mobile(26626): WaitForGcToComplete blocked Alloc on Background for 18.782ms
I/converus.mobile(26626): Starting a blocking GC Alloc
I/converus.mobile(26626): Background young concurrent copying GC freed 1016(172KB) AllocSpace objects, 12(79MB) LOS objects, 9% free, 115MB/127MB, paused 5.781ms,67us total 45.389ms
I/converus.mobile(26626): Background concurrent copying GC freed 888(149KB) AllocSpace objects, 22(134MB) LOS objects, 22% free, 83MB/107MB, paused 432us,59us total 100.560ms
I/converus.mobile(26626): Background young concurrent copying GC freed 1196(165KB) AllocSpace objects, 13(87MB) LOS objects, 24% free, 75MB/99MB, paused 5.135ms,22us total 41.955ms
I/converus.mobile(26626): Background young concurrent copying GC freed 661(108KB) AllocSpace objects, 1(8104KB) LOS objects, 0% free, 91MB/91MB, paused 6.034ms,23us total 30.155ms
I/converus.mobile(26626): Background concurrent copying GC freed 888(141KB) AllocSpace objects, 25(162MB) LOS objects, 20% free, 91MB/115MB, paused 7.253ms,80us total 111.805ms
I/converus.mobile(26626): Background young concurrent copying GC freed 569(113KB) AllocSpace objects, 0(0B) LOS objects, 0% free, 51MB/51MB, paused 5.839ms,33us total 22.579ms
I/converus.mobile(26626): Background young concurrent copying GC freed 629(124KB) AllocSpace objects, 0(0B) LOS objects, 0% free, 71MB/71MB, paused 5.687ms,30us total 28.258ms
I/converus.mobile(26626): Background concurrent copying GC freed 771(124KB) AllocSpace objects, 19(130MB) LOS objects, 30% free, 55MB/79MB, paused 90us,28us total 117.873ms
I/converus.mobile(26626): Background concurrent copying GC freed 1070(145KB) AllocSpace objects, 13(71MB) LOS objects, 22% free, 83MB/107MB, paused 12.661ms,23us total 59.285ms
W/converus.mobile(26626): Suspending all threads took: 5.613ms
I/converus.mobile(26626): Background young concurrent copying GC freed 528(120KB) AllocSpace objects, 5(27MB) LOS objects, 0% free, 99MB/99MB, paused 3.580ms,5.766ms total 33.748ms
I/converus.mobile(26626): Background young concurrent copying GC freed 589(115KB) AllocSpace objects, 6(31MB) LOS objects, 0% free, 123MB/123MB, paused 7.275ms,21us total 38.286ms
I/converus.mobile(26626): Background concurrent copying GC freed 815(143KB) AllocSpace objects, 24(174MB) LOS objects, 35% free, 44MB/68MB, paused 7.731ms,21us total 59.687ms
I/converus.mobile(26626): Background concurrent copying GC freed 1382(179KB) AllocSpace objects, 19(114MB) LOS objects, 15% free, 127MB/151MB, paused 6.922ms,70us total 140.113ms
I/converus.mobile(26626): Background young concurrent copying GC freed 480(132KB) AllocSpace objects, 18(110MB) LOS objects, 28% free, 59MB/83MB, paused 7.308ms,23us total 36.951ms
I/converus.mobile(26626): Background young concurrent copying GC freed 781(148KB) AllocSpace objects, 6(31MB) LOS objects, 0% free, 123MB/123MB, paused 5.944ms,28us total 38.983ms
I/converus.mobile(26626): Background young concurrent copying GC freed 164(85KB) AllocSpace objects, 0(0B) LOS objects, 0% free, 43MB/43MB, paused 5.370ms,24us total 20.895ms
I/converus.mobile(26626): Background young concurrent copying GC freed 268(120KB) AllocSpace objects, 1(8104KB) LOS objects, 0% free, 91MB/91MB, paused 6.931ms,1.699ms total 50.539ms
I/converus.mobile(26626): Background young concurrent copying GC freed 1199(186KB) AllocSpace objects, 12(79MB) LOS objects, 8% free, 83MB/91MB, paused 9.669ms,77us total 78.542ms
I/converus.mobile(26626): Background concurrent copying GC freed 1088(158KB) AllocSpace objects, 17(106MB) LOS objects, 30% free, 55MB/79MB, paused 1.417ms,26us total 130.908ms
D/InputMethodManager(26626): startInputInner - Id : 0
I/InputMethodManager(26626): startInputInner - mService.startInputOrWindowGainedFocus
I/converus.mobile(26626): Background concurrent copying GC freed 455(120KB) AllocSpace objects, 17(118MB) LOS objects, 22% free, 83MB/107MB, paused 59us,1.348ms total 130.715ms
D/InputTransport(26626): Input channel destroyed: 'ClientS', fd=143
D/InputMethodManager(26626): startInputInner - Id : 0
I/InputMethodManager(26626): startInputInner - mService.startInputOrWindowGainedFocus
I/converus.mobile(26626): Background young concurrent copying GC freed 1343(173KB) AllocSpace objects, 13(87MB) LOS objects, 0% free, 154MB/154MB, paused 3.658ms,74us total 132.097ms
I/converus.mobile(26626): Background young concurrent copying GC freed 544(127KB) AllocSpace objects, 1(8104KB) LOS objects, 0% free, 59MB/59MB, paused 19.792ms,34us total 58.255ms
I/converus.mobile(26626): Background concurrent copying GC freed 762(140KB) AllocSpace objects, 11(71MB) LOS objects, 22% free, 83MB/107MB, paused 786us,2.132ms total 139.564ms
I/converus.mobile(26626): Background young concurrent copying GC freed 867(121KB) AllocSpace objects, 13(87MB) LOS objects, 14% free, 91MB/107MB, paused 108.460ms,23us total 229.041ms
I/converus.mobile(26626): Background young concurrent copying GC freed 585(130KB) AllocSpace objects, 0(0B) LOS objects, 0% free, 87MB/87MB, paused 14.911ms,1.274ms total 37.501ms
I/converus.mobile(26626): Background young concurrent copying GC freed 1114(159KB) AllocSpace objects, 13(87MB) LOS objects, 0% free, 154MB/154MB, paused 12.549ms,80us total 225.039ms
I/converus.mobile(26626): Background concurrent copying GC freed 1672(188KB) AllocSpace objects, 24(154MB) LOS objects, 23% free, 79MB/103MB, paused 41us,90us total 136.457ms
I/converus.mobile(26626): Background young concurrent copying GC freed 865(144KB) AllocSpace objects, 12(79MB) LOS objects, 4% free, 99MB/103MB, paused 8.174ms,3.734ms total 142.960ms
I/converus.mobile(26626): Background young concurrent copying GC freed 579(112KB) AllocSpace objects, 1(8104KB) LOS objects, 0% free, 146MB/146MB, paused 3.676ms,2.130ms total 218.960ms
I/converus.mobile(26626): Background concurrent copying GC freed 1289(155KB) AllocSpace objects, 21(138MB) LOS objects, 25% free, 71MB/95MB, paused 40us,60us total 106.555ms
I/converus.mobile(26626): Background concurrent copying GC freed 1237(157KB) AllocSpace objects, 16(83MB) LOS objects, 28% free, 59MB/83MB, paused 14.640ms,22us total 170.314ms
I/converus.mobile(26626): Background concurrent copying GC freed 453(120KB) AllocSpace objects, 16(114MB) LOS objects, 26% free, 67MB/91MB, paused 68us,437us total 275.481ms
I/converus.mobile(26626): Background young concurrent copying GC freed 1410(173KB) AllocSpace objects, 12(79MB) LOS objects, 0% free, 146MB/146MB, paused 41.107ms,62us total 265.016ms
I/converus.mobile(26626): Background young concurrent copying GC freed 562(143KB) AllocSpace objects, 0(0B) LOS objects, 0% free, 83MB/83MB, paused 7.956ms,27us total 53.511ms
I/converus.mobile(26626): Background concurrent copying GC freed 929(153KB) AllocSpace objects, 16(118MB) LOS objects, 35% free, 44MB/68MB, paused 14.935ms,22us total 95.028ms
I/converus.mobile(26626): Background young concurrent copying GC freed 754(162KB) AllocSpace objects, 8(43MB) LOS objects, 0% free, 123MB/123MB, paused 18.890ms,57us total 161.656ms
Lost connection to device.
Exited.Flutter Doctor output
Doctor output
flutter doctor -v
[✓] Flutter (Channel beta, 3.19.0-0.4.pre, on macOS 14.1.1 23B81 darwin-arm64, locale en-US)
• Flutter version 3.19.0-0.4.pre on channel beta at /Users/jamesstevens/Development/MOBILE DEV/SOURCE/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision b7e7d46a04 (8 weeks ago), 2024-02-02 08:21:06 -0600
• Engine revision 98820f0a77
• Dart version 3.3.0 (build 3.3.0-279.3.beta)
• DevTools version 2.31.0
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0-rc2)
• Android SDK at /Users/jamesstevens/Library/Android/sdk
• Platform android-34, build-tools 34.0.0-rc2
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 15E204a
• CocoaPods version 1.14.3
[✓] Chrome - develop for the web
• CHROME_EXECUTABLE = /Applications/Brave Browser.app/Contents/MacOS/Brave Browser
[✓] Android Studio (version 2021.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
[✓] VS Code (version 1.86.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.84.0
[✓] Connected device (3 available)
• SM G781U1 (mobile) • RFCN90BNDBB • android-arm64 • Android 13 (API 33)
• macOS (desktop) • macos • darwin-arm64 • macOS 14.1.1 23B81 darwin-arm64
• Chrome (web) • chrome • web-javascript • Brave Browser 121.1.62.165
! Error: Browsing on the local area network for James’s Test iPhone. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this
Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
! Error: Browsing on the local area network for James’s iPhone. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
! Error: Browsing on the local area network for iPhone. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources
• All expected network resources are available.
• No issues found!Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listc: fatal crashCrashes that terminate the processCrashes that terminate the processfound in release: 3.19Found to occur in 3.19Found to occur in 3.19found in release: 3.22Found to occur in 3.22Found to occur in 3.22has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: cameraThe camera pluginThe camera pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.perf: memoryPerformance issues related to memoryPerformance issues related to memoryplatform-androidAndroid applications specificallyAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-androidOwned by Android platform teamOwned by Android platform team
Type
Projects
Status
Done
