Projects

Ticket #23 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

CircleView.app leaks memory while animating

Reported by: lsansonetti@… Owned by: lsansonetti@…
Priority: blocker Milestone: MacRuby 0.2
Component: MacRuby Keywords:
Cc:

Description

Summary should be self explanatory. Start the sample, click on "Spin" then observe the memory growing in top(1). Memory is never released, even when the animation is stopped.

Change History

Changed 4 years ago by lsansonetti@…

The original Objective-C sample (with GC enabled) doesn't reproduce this problem.

Changed 4 years ago by lsansonetti@…

Same problem occurs with the PathDemo sample.

Changed 4 years ago by lsansonetti@…

  • milestone changed from MacRuby 1.0 to MacRuby 0.2

Changed 4 years ago by lsansonetti@…

  • status changed from new to closed
  • resolution set to fixed

The problem was in the boxed accessors, which are caching their values as ivars. Since boxeds are T_DATA, generic ivars are used, and the receiver was leaked because retained by the global table. The problem is fixed in r216.

Note: See TracTickets for help on using tickets.