• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Leak when animating Core Animation Superlayer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Leak when animating Core Animation Superlayer


  • Subject: Re: Leak when animating Core Animation Superlayer
  • From: John Harper <email@hidden>
  • Date: Sun, 01 Jun 2008 11:53:39 -0700

Hi,

if you think you've found a memory leak inside of CoreAnimation, please file a radar (bugreporter.apple.com) with a project showing the leak, and we'll look into it. thanks,

	John


On Jun 1, 2008, at 10:58 AM, Stéphane Droux wrote:

On Sun, Jun 1, 2008 at 6:31 PM, Brian Christensen <email@hidden> wrote:


I would consider that to be expected behavior. If you aren't ever releasing
the layers you created, why would any of the relevant memory be freed? The
timer and the animations it is causing to be performed should not really be
incurring a very significant memory footprint in addition to what the layers
on their own are already using (my own observations at least indicate that
running the test app with or without the timer makes very little difference
in that regard).


Are the two methods you posted really the only two methods in your entire
test app? Or are you doing something else somewhere in addition to this?
Feel free to e-mail me the test project off-list if you like.


/brian

Yes, these 2 methods are my entire test app. I will email you the project
off-list.

I don't think it has to do with layer release.
If I run it without the animation (commented out the timer creation), the
memory usage in Object Alloc is constant (as expected) at 1.8MB
When I add the timer, the memory usage starts at 1.8MB and goes up to 3MB
after 1 minute, 5MB after 2 minutes, and so on.
The only difference between these 2 cases is "[NSTimer
scheduledTimerWithTimeInterval:0.4 target:self selector:@selector(fromTimer:)
userInfo:nil repeats:YES];" being commented out.


Thanks
Stephane
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Leak when animating Core Animation Superlayer (From: Brian Christensen <email@hidden>)
 >Re: Leak when animating Core Animation Superlayer (From: "Stéphane Droux" <email@hidden>)
 >Re: Leak when animating Core Animation Superlayer (From: Brian Christensen <email@hidden>)
 >Re: Leak when animating Core Animation Superlayer (From: "Stéphane Droux" <email@hidden>)
 >Re: Leak when animating Core Animation Superlayer (From: "Jonathan del Strother" <email@hidden>)
 >Re: Leak when animating Core Animation Superlayer (From: "Stéphane Droux" <email@hidden>)
 >Re: Leak when animating Core Animation Superlayer (From: Brian Christensen <email@hidden>)
 >Re: Leak when animating Core Animation Superlayer (From: "Stéphane Droux" <email@hidden>)

  • Prev by Date: Re: Alert Sheets hard wired in Interface Builder
  • Next by Date: Re: NSColorWell and alpha
  • Previous by thread: Re: Leak when animating Core Animation Superlayer
  • Next by thread: Re: sorting an NSTableView
  • Index(es):
    • Date
    • Thread