Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16194] Alloy: Memory leaking if animation call callback

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsalloy, animation, callback, leak
ReporterMatej
AssigneeUnknown
Created2013-12-31T02:28:55.000+0000
Updated2018-02-28T20:04:20.000+0000

Description

Application is leaking if animation call callback function. If is animation without callback everything is alright... I have putted to the archive whole project including video from the app & instruments. (If is possible please reupload it on some better place / pick up only important informations. Archive can be deleted in the future) http://www.filedropper.com/memleak

Comments

  1. Matej 2014-01-15

    Please can somebody have a look on this issue? Thanks
  2. Shak Hossain 2014-01-15

    Matej, Yes, this will be moved to TIMOB for engineering review. Thanks, Shak
  3. Rick Blalock 2014-01-24

    I'm running in to this issue but in the case of this code sample, I don't see where things are supposed to go out of memory. The view is always referencable so it wouldn't go out of memory anyway. A good test is using the Alloy animation builtin - it has the leak since it uses the callback instead of the animation complete event. https://github.com/appcelerator/alloy/blob/master/Alloy/builtins/animation.js - if when the view you're animating goes out of scope and there's no reference left in JS, it will be retained along with anything where the callback falls in to scope (it is a closure after all). i.e. Nulling out the callback and the view, etc. won't release it.
  4. Matej 2014-02-04

    Hi Rick, have you seen attached video? Number of used views is increasing without any release... // Yes the problem is in a callback ,but without Alloy it works properly.

JSON Source