{ "id": "62839", "key": "TIMOB-2207", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:58:25.000+0000", "created": "2011-04-15T03:13:31.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "context", "critical", "ios", "memory" ], "versions": [], "issuelinks": [], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:58:25.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

Title says it all. Helpdesk ticket http://developer.appcelerator.com/helpdesk/view/46321\nprovides an example of how this issue affects developers. Note that\nfrom within TiUIScrollableView, our memory management is correct\nand relies on the 'views' array to be deallocated when it is no\nlonger in use (there are no more references to it, and therefore\nthe context no longer needs access to it).

\n

This bug should be considered CRITICAL and a\nhigh priority as a result.

{html}", "attachment": [], "flagged": false, "summary": "Contexts do not release unused objects", "creator": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "127815", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [a6b1b3c4fc4224e39b7d05e807987c4c8fe6ce30])\n[#2207 state:fixed-in-qa] Objects marked for\n'autorelease' in context execution are no longer retained for\nduration of context. \nhttp://github.com/appcelerator/titanium_mobile/commit/a6b1b3c4fc422...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:13:31.000+0000", "updated": "2011-04-15T03:13:31.000+0000" }, { "id": "127816", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Headsup for Thom on this one:

\n

I solved the most obvious bugs for this one, being caused by\ncontext delegates being released too early and ASIHTTPRequest not\nbeing very threadsafe. However since it's a BIG change in our\nmemory management, any bugs which appear in the next regression\nscrub which are crashers may be a result of #2207.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:13:31.000+0000", "updated": "2011-04-15T03:13:31.000+0000" }, { "id": "127817", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [6713f679deac5027cdf5bc4fb28dd4e5eb84663b])\n[#2187 state:fixed-in-qa][#2207]\nVideo player cleanup done without firing second 'stop' message.\nFirst fix of unintended autorelease 2207 consequence (window\n'close' listeners). \nhttp://github.com/appcelerator/titanium_mobile/commit/6713f679deac5...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:13:31.000+0000", "updated": "2011-04-15T03:13:31.000+0000" }, { "id": "127818", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [ce58295321e86a1a18045692b7d52dcc8e5691b5])\n[#2241 state:fixed-in-qa][#2207]\nSlight reorganization of memory releasing. \nhttp://github.com/appcelerator/titanium_mobile/commit/ce58295321e86...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:13:32.000+0000", "updated": "2011-04-15T03:13:32.000+0000" }, { "id": "127819", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Had to view from afar (Instruments on device), but looks like\nthings are being released (tested with table views)

{html}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:13:32.000+0000", "updated": "2011-04-15T03:13:32.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }