You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When run with .NET MAUI 9.0 and SkiaSharp 3.116.1, my game GnollHack still runs out of memory on iOS when you try to open the game page many times (two is enough on my old iPad). This does not happen in Xamarin with exactly the same code.
No matter how many times the game page is being opened by Play Game button, the game or image carousel never runs out of memory, as old pages with no references to are successfully being garbage collected.
Actual Behavior
When you start the game, you land on main page, which has an image carousel with three alternating pictures and several buttons. Press Play Game (opens game page), then quit (back to main page), press Play Game again (opens another game page), and quit again (back again to main page). Now, you will see that the image carousel on the main page becomes black, as it runs out of memory. You may need to do the process a few times more on iOS devices with a lot of memory.
This means that the memory from the pages is not being released for garbage collection in .NET MAUI 9.0 / SkiaSharp 3.116.1.
Version of SkiaSharp
3.116.0 (Current)
Last Known Good Version of SkiaSharp
2.88.9 (Previous)
IDE / Editor
Visual Studio (Windows)
Platform / Operating System
iOS
Platform / Operating System Version
iOS 18.1.1
Devices
iPad 11,7
Relevant Screenshots
No response
Relevant Log Output
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
I might add that the previous memory leak demonstrated in https://github.com/hyvanmielenpelit/iOSMauiSkiaSharpMemoryLeak has in fact been fixed, so this is something different. The earlier fix should help at least with opening simple menu pages as many times as necessary, which already a big improvement, but there's still a further memory leak with GnollHackM's GamePage, which did not exist in Xamarin. This prevents the game from being started more than one time without exiting the app first.
@mattleibow If you can suggest how I could single out the source of the memory leak, happy to try it.
Description
When run with .NET MAUI 9.0 and SkiaSharp 3.116.1, my game GnollHack still runs out of memory on iOS when you try to open the game page many times (two is enough on my old iPad). This does not happen in Xamarin with exactly the same code.
Code
https://github.com/hyvanmielenpelit/GnollHackMAUIEasyBuild
Expected Behavior
No matter how many times the game page is being opened by Play Game button, the game or image carousel never runs out of memory, as old pages with no references to are successfully being garbage collected.
Actual Behavior
When you start the game, you land on main page, which has an image carousel with three alternating pictures and several buttons. Press Play Game (opens game page), then quit (back to main page), press Play Game again (opens another game page), and quit again (back again to main page). Now, you will see that the image carousel on the main page becomes black, as it runs out of memory. You may need to do the process a few times more on iOS devices with a lot of memory.
This means that the memory from the pages is not being released for garbage collection in .NET MAUI 9.0 / SkiaSharp 3.116.1.
Version of SkiaSharp
3.116.0 (Current)
Last Known Good Version of SkiaSharp
2.88.9 (Previous)
IDE / Editor
Visual Studio (Windows)
Platform / Operating System
iOS
Platform / Operating System Version
iOS 18.1.1
Devices
iPad 11,7
Relevant Screenshots
No response
Relevant Log Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: