xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.64k stars 1.88k forks source link

[Bug] MEMORY LEAKING - DRAINING - iOS 13.4 - Element.RelScaleTo in Loop #10627

Open RobDaytona opened 4 years ago

RobDaytona commented 4 years ago

XBugNo10627.zip

Description

We are developing an Indi Game in Xamarin Forms, we have quite a few areas where we use Element.RelScaleTo to manipulate Image elements. Android - All good. IOS - Memory leaks infinitely.

Steps to Reproduce

  1. Add an Image element on a xaml form
  2. In the c#, create an infinite timer control that rescales the Image a little bigger, and then a little smaller, and it keeps "breathing", monitor the memory of this app, and you will see it grows infinitely

Expected Behavior

We do not expect to see memory leak when calls are made to Element.RelScale. In this example the Image "breaths in and out", its a simple animation, that simply loops, the memory used for this should be static, and not simply continue to eat up memory as time goes on.

Actual Behavior

The app will continue to ask for more memory infinitely.

Basic Information

There is no known good version.

No workaround exists.

Please see the attached demo mini project that shows the bug clearly.

RobDaytona commented 4 years ago

Hi - I am really confused as to what the Triage bar is telling me, how close is this card to being reviewed / verified? thanks

jsuarezruiz commented 4 years ago

It happens on iOS (not Android). @RobDaytona verified (good luck with the game).

The next steps will be:

RobDaytona commented 4 years ago

@jsuarezruiz thank you for your update!

RobDaytona commented 4 years ago

:-}

RobDaytona commented 4 years ago

Hello still waiting for a fix please.

RobDaytona commented 4 years ago

Hello still waiting for a fix please.

RobDaytona commented 4 years ago

Thanks Sam for getting this moving:)

RobDaytona commented 3 years ago

I am still here.

RobDaytona commented 3 years ago

Hi there- This seems to be taking a very long time, why was it removed from the milestone? are the developers saying the garbage collection will deal with this issue?

RobDaytona commented 3 years ago

Hello??