Skip to content

Memomry leak caused by ComposeView detected by LeakCanary #94

@racka98

Description

@racka98

Describe the bug
After the ComposeView in AppScreenTimeOverlayUI is detached from the Window it stays in memory and leaks.

All details match this issue that hasn't been fixed yet: https://issuetracker.google.com/issues/240975572

To Reproduce
Steps to reproduce the behavior:

  1. Set a screen time limit for an App
  2. Open the app so the block overlay ui shows up
  3. Exit the Overlay using the Exit Button or Home button
  4. Leak canary will be observing the ComposeView instance and report that it's leaking

Expected behavior
ComposeView for AppScreenTimeOverlayUI should be destroyed and should not stay in memory

Screenshots
Will attach stack trace later

Device:

  • Model: Pixel 4a 5G
  • OS: Android
  • Version: 13 (API 33)
  • App version: 1.0.0-alpha07

Additional context
None at the moment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High PrioritybugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions