Skip to content

[BUG] IconTintColorBehavior huge memory leak and app freeze on Android #1612

@Marioo1357

Description

@Marioo1357

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

After change ImageSource, the GC clear a lot of memory. Every change cause more GC work and more app not responing time.
After 10-15 times, the app completly freeze

Expected Behavior

After change imagesource every think still smooth work

Steps To Reproduce

  1. Open and run project from repo
  2. Click buttons one by one several times (10-15 times)

Link to public reproduction project repository

https://github.com/Marioo1357/MemoryLeakDemo

Environment

- .NET MAUI CommunityToolkit:
- OS: Android
- .NET MAUI: 8

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/behaviorsIssue/Discussion/PR that has to do with BehaviorsbugSomething isn't workingunverified

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions