-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[iOS] Investigate if MauiCALayer needs to use a weakreference for the IShape #26169
Copy link
Copy link
Closed
Closed
Copy link
Labels
area-drawingShapes, Borders, Shadows, Graphics, BoxView, custom drawingShapes, Borders, Shadows, Graphics, BoxView, custom drawingp/2Work that is important, but is currently not scheduled for releaseWork that is important, but is currently not scheduled for releaseperf/memory-leak 💦Memory usage grows / objects live forever (sub: perf)Memory usage grows / objects live forever (sub: perf)
Milestone
Description
Description
We should confirm this a bit more
[UnconditionalSuppressMessage("Memory", "MEM0002", Justification = "IShape is a non-NSObject in MAUI.")]
IShape? _shape;You might get some shapes that inherit from View and those will have Handlers and NSObjects associated with them
public sealed partial class RoundRectangle : Shape, IShape, IRoundRectangle
Reproduction
Haven't been ablet to reproduce as of yet.
From what I can tell everything is collecting without any issues.
I've just seen some signs of lingering in larger apps but still need to narrow down if this is a culprit
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-drawingShapes, Borders, Shadows, Graphics, BoxView, custom drawingShapes, Borders, Shadows, Graphics, BoxView, custom drawingp/2Work that is important, but is currently not scheduled for releaseWork that is important, but is currently not scheduled for releaseperf/memory-leak 💦Memory usage grows / objects live forever (sub: perf)Memory usage grows / objects live forever (sub: perf)
Type
Projects
Status
Done