Open AidarNurmukhametov opened 2 years ago
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.
Related to https://github.com/dotnet/maui/issues/1389
Verified this on Visual Studio Enterprise 17.7.0 Preview 4.0. Repro on iOS 16.4 .NET 8, not repro on Android 13.0-API33 with below Project: 10801.zip iOS:
Can you test with the latest nightly build? https://github.com/dotnet/maui/wiki/Nightly-Builds
Description
Custom view causes a memory leak. Everything works fine on Android, but on iOS it leaks. Calling DisconnectHandler on Unloaded event crashes the application. You can test this on this example. As I can see it, everything worked fine on previous version of .NET MAUI.
Is there a common way to garbage collect views/pages? Or everything must be done by .NET MAUI itself?
Steps to Reproduce
Link to public reproduction project repository
https://github.com/AidarNurmukhametov/TestLeaks
Version with bug
7.0 Release Candidate 2
Last version that worked well
7.0 Release Candidate 1
Affected platforms
iOS
Affected platform versions
iOS 16, Xcode 14, Visual Studio for Mac 2022 Preview 17.4
Did you find any workaround?
No response
Relevant log output
No response