{ "id": "62646", "key": "TIMOB-2014", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-04-15T03:08:11.000+0000", "created": "2011-04-15T03:08:07.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "defect", "ios", "ipad", "iphone", "rplist", "scrollable", "view" ], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-02T21:04:58.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}

When a large amount of views are added to a scrollable view and\nscrolling has happened the app crashes. This is on iphone &\nipad using 4.1 and 1.4.2.

\n

See this ticket for more info and code:
\nhttp://developer.appcelerator.com/helpdesk/view/46321

{html}", "attachment": [ { "id": "18082", "filename": "2010-10-22-124320panic.crash", "author": { "name": "markoperutovic", "key": "markoperutovic", "displayName": "Marko Perutovic", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:08:08.000+0000", "size": 2155, "mimeType": "application/octet-stream" }, { "id": "18083", "filename": "resetcounter.crash", "author": { "name": "markoperutovic", "key": "markoperutovic", "displayName": "Marko Perutovic", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:08:08.000+0000", "size": 167, "mimeType": "application/octet-stream" } ], "flagged": false, "summary": "Scrollable View crashes when lots of views are added", "creator": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "127253", "author": { "name": "cliftonlabrum", "key": "cliftonlabrum", "displayName": "Clifton Labrum", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

About how many views would you consider \"a large amount\"?

{html}", "updateAuthor": { "name": "cliftonlabrum", "key": "cliftonlabrum", "displayName": "Clifton Labrum", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:08:09.000+0000", "updated": "2011-04-15T03:08:09.000+0000" }, { "id": "127254", "author": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

50+

{html}", "updateAuthor": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:08:09.000+0000", "updated": "2011-04-15T03:08:09.000+0000" }, { "id": "127255", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Appears to have been fixed by Blain's #2003, the\nimage view memory panic issue. No doubt caused by the fact that a\nlarge number of images were being loaded locally.

\n

Note, the problem might persist for images which were cached\nfrom a remote source!

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:08:09.000+0000", "updated": "2011-04-15T03:08:09.000+0000" }, { "id": "127256", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Whoops, gonna mark this fixed-in-qa for Thom to test and see if\nit was fixed by #2003.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:08:10.000+0000", "updated": "2011-04-15T03:08:10.000+0000" }, { "id": "127257", "author": { "name": "markoperutovic", "key": "markoperutovic", "displayName": "Marko Perutovic", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

With today nightly it is still crashing. In my sample I cache\njust 3 pictures and change them three by three.

{html}", "updateAuthor": { "name": "markoperutovic", "key": "markoperutovic", "displayName": "Marko Perutovic", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:08:10.000+0000", "updated": "2011-04-15T03:08:10.000+0000" }, { "id": "127258", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

This bugfix is currently in our master branch. It is not folded\ninto the nightly builds until the fix is approved, which should\nhappen sometime this week. If you need the fix before then, you may\ndevelop off of our (potentially unstable) master branch: http://github.com/appcelerator/titanium_mobile/tarball/master

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:08:10.000+0000", "updated": "2011-04-15T03:08:10.000+0000" }, { "id": "127259", "author": { "name": "markoperutovic", "key": "markoperutovic", "displayName": "Marko Perutovic", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

tried with github - it crashes, but it took more time to\ncrash.

{html}", "updateAuthor": { "name": "markoperutovic", "key": "markoperutovic", "displayName": "Marko Perutovic", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:08:10.000+0000", "updated": "2011-04-15T03:08:10.000+0000" }, { "id": "127260", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

We will be able to respond to this ticket faster if you post a\ncrash log.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:08:10.000+0000", "updated": "2011-04-15T03:08:10.000+0000" }, { "id": "127261", "author": { "name": "markoperutovic", "key": "markoperutovic", "displayName": "Marko Perutovic", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

This is all I have in\n~/Library/Logs/CrashReporter/MobileDevice/my_device. Is there else\nI should look?

{html}", "updateAuthor": { "name": "markoperutovic", "key": "markoperutovic", "displayName": "Marko Perutovic", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:08:11.000+0000", "updated": "2011-04-15T03:08:11.000+0000" }, { "id": "127262", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

That's the only place you should need to look to find crash\nlogs. Unfortunately neither of these are very helpful; this is\nprobably a memory panic issue.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:08:11.000+0000", "updated": "2011-04-15T03:08:11.000+0000" }, { "id": "127263", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

As long as you are keeping your image views attached to a window\nand not explicitly deleting them, the images that they use will\ncontinue to take up memory. Using so many image views all at once\nwithout loading/unloading them on demand is going to cause memory\nproblems. iOS will not unload these images from memory if they are\nstill in use somewhere and this will lead to memory panics and\ncrashes.

\n

Titanium does require better memory management, but there is\nnothing we can do about excessive use of memory which is related to\nviews that are not cleaned up.

\n

Marking invalid.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:08:11.000+0000", "updated": "2011-04-15T03:08:11.000+0000" }, { "id": "127264", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Note that although this bug is marked invalid, better memory\nmanagement for scrollable view may become a feature available in\nthe future. Depends on whether or not we can support dynamic\nload/unload of contents of scrollable view frames. See bug #2193.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:08:11.000+0000", "updated": "2011-04-15T03:08:11.000+0000" }, { "id": "408508", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closed as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-02T21:04:58.000+0000", "updated": "2017-03-02T21:04:58.000+0000" } ], "maxResults": 13, "total": 13, "startAt": 0 } } }