Skip to content

Camera X orientation memory leak #624

@ali72-20

Description

@ali72-20

CameraActivity causes a memory leak when using CameraX with Jetpack Compose. LeakCanary reports that the ProcessCameraProvider retains a reference to the destroyed CameraActivity through the LifecycleCameraProviderImpl and its internal lifecycleCameraKeys map. Even after calling unbindAll() in onDestroy(), the activity is not properly garbage collected, leading to a memory leak.

Image Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions