TitleView causes memory leaks #21968
Labels
area-controls-titleview
TitleView
delighter-sc
fixed-in-8.0.60
fixed-in-9.0.0-preview.5.24307.10
memory-leak 💦
Memory usage grows / objects live forever
partner/cat 😻
this is an issue that impacts one of our partners or a customer our advisory team is engaged with
platform/android 🤖
platform/iOS 🍎
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
t/perf
The issue affects performance (runtime speed, memory usage, startup time, etc.)
Milestone
Description
Adding a TitleView to any page, no matter how simple, causes a catastrophic memory leak.
In the repo i included, you'll find the basic MAUI new project with 3 test pages, one is for a simple page with a TitleView. I included in the repo a GC dump resulting from 1 navigation to/ back from the TitleView Test Page.
In order to limit the scope of this discussion i won't go into the many many many other leaks we have, i'll try to create separate bug reports and app samples whenever possible. But my god how is it possible that one small leak caused by TitleView results in the entire page, context and all child elements living forever in memory??!!!
Leaks happen, and that's fine as long as some effort goes into compartimentalisation and fault tolerance, it cannot be that 1 small leak in 1 small component could root the entire page and its object tree in memory, this just should not be! This is the real discussion. I would refer anyone insterested into #21918 (comment).
Steps to Reproduce
Link to public reproduction project repository
https://github.com/GUELIANEBelkacem/MySuperLeakyApp.git
Version with bug
8.0.10 SR3
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: