{ "id": "80452", "key": "TIMOB-5326", "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": "12078", "description": "", "name": "Sprint 2011-38", "archived": true, "released": true, "releaseDate": "2011-09-26" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-10-05T11:11:48.000+0000", "created": "2011-09-21T02:28:12.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "branch-5062" ], "versions": [ { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "issuelinks": [ { "id": "12780", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "80392", "key": "TIMOB-5301", "fields": { "summary": "iOS: iPad Table View w/ Cuts Text Field Off Screen", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "13065", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "80604", "key": "TIMOB-5361", "fields": { "summary": "Table View Scroll Extreme Garbage Collection Starvation", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:46: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": "h1. Problem\r\nThe table view will automatically adjust to make sure any focused text fields in it are visible when the keyboard pops up. It does this as an animation after the table stops decelerating. But if you scroll a table view, and then quickly close the window, an EXC_BAD_ACCESS is hit when the table view tries to animate itself.\r\n\r\nh2. Reproduction\r\n\r\n1. Drop the following in an app.js\r\n2. Run in the iPad simulator or iPad device in portrait orientation\r\n3. The app should automatically focus the text field near the bottom of the table view\r\n4. Flick down on the table view\r\n5. After a very short time, the app will automatically close the window. The table view will also try to scroll the text field back in to view. This will result in the EXC_BAD_ACCESS.\r\n\r\n{code:title=app.js}\r\nvar outer = Ti.UI.createWindow({ backgroundColor: 'purple' });\r\nouter.addEventListener('open', function() {\r\n var inner = Ti.UI.createWindow();\r\n var text = Ti.UI.createTextField({\r\n top: 10, height: 35, width: 300,\r\n borderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED\r\n });\r\n var data = [];\r\n for (var i = 0; i < 22; i++) {\r\n data.push(Ti.UI.createTableViewRow());\r\n }\r\n data[i - 1].add(text);\r\n var table = Ti.UI.createTableView({\r\n data: data\r\n });\r\n inner.add(table);\r\n inner.addEventListener('open', function() {\r\n text.focus();\r\n var timeoutID;\r\n table.addEventListener('scroll', function() {\r\n clearTimeout(timeoutID);\r\n timeoutID = setTimeout(function() {\r\n inner.close();\r\n }, 200);\r\n });\r\n });\r\n inner.open();\r\n});\r\nouter.open();\r\n{code}\r\n\r\nh2. Console Log from Crash\r\nAttached.\r\n\r\nh2. Console Log Excerpt\r\nFor your cursory glancing pleasure:\r\n{code}\r\nException Type: EXC_BAD_ACCESS (SIGSEGV)\r\nException Codes: KERN_INVALID_ADDRESS at 0xa0000008\r\nCrashed Thread: 0\r\n\r\nThread 0 name: Dispatch queue: com.apple.main-thread\r\nThread 0 Crashed:\r\n0 libobjc.A.dylib \t0x34f70c98 objc_msgSend + 16\r\n1 UIKit \t0x32140688 -[UIScrollView setContentOffset:] + 344\r\n2 UIKit \t0x321404a8 -[UITableView setContentOffset:] + 248\r\n3 UIKit \t0x3223f74a -[UIScrollViewScrollAnimation setProgress:] + 370\r\n4 UIKit \t0x321c3c86 -[UIAnimator(Static) _advance:] + 190\r\n5 UIKit \t0x321c3bba LCDHeartbeatCallback + 10\r\n6 GraphicsServices \t0x353d12d6 HeartbeatVBLCallback + 86\r\n7 IOMobileFramebuffer \t0x326cd9c0 IOMobileFramebufferVsyncNotifyFunc + 68\r\n8 IOKit \t0x350366e4 IODispatchCalloutFromCFMessage + 192\r\n9 CoreFoundation \t0x32566bd8 __CFMachPortPerform + 204\r\n10 CoreFoundation \t0x32571a90 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 20\r\n11 CoreFoundation \t0x32573838 __CFRunLoopDoSource1 + 160\r\n12 CoreFoundation \t0x32574606 __CFRunLoopRun + 514\r\n13 CoreFoundation \t0x32504ebc CFRunLoopRunSpecific + 224\r\n14 CoreFoundation \t0x32504dc4 CFRunLoopRunInMode + 52\r\n15 GraphicsServices \t0x353cf418 GSEventRunModal + 108\r\n16 GraphicsServices \t0x353cf4c4 GSEventRun + 56\r\n17 UIKit \t0x32121d62 -[UIApplication _run] + 398\r\n18 UIKit \t0x3211f800 UIApplicationMain + 664\r\n19 play \t0x00004570 0x1000 + 13680\r\n20 play \t0x00003e14 0x1000 + 11796\r\n{code}", "attachment": [ { "id": "22992", "filename": "play_2011-09-21-111103_Dawsons-iPad-1.crash", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2011-09-21T02:28:12.000+0000", "size": 25283, "mimeType": "application/octet-stream" } ], "flagged": false, "summary": "TiUITableView's \"make sure text field is visible\" EXC_BAD_ACCESS when Closing", "creator": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "environment": "iPad Simulator 4.2\r\nbranch-5062 from 11:05am, Wed Sep 21st:\r\nfilename: mobilesdk-1.8.0.v20110920110550-osx.zip,\r\nsha1: c08ebab39acaf7ce63d7f5f11d91f37ad4b0b70c", "comment": { "comments": [ { "id": "166476", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "Added a link to TIMOB-5301, which possibly causes this issue (if I am correctly interpreting what is going on).", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2011-09-21T02:31:37.000+0000", "updated": "2011-09-21T02:31:37.000+0000" }, { "id": "166486", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "Tramer has submitted a pull request for this:\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/481", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2011-09-21T06:12:14.000+0000", "updated": "2011-09-21T06:12:14.000+0000" }, { "id": "167640", "author": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing. \n\nFix verified in SDK 1.8.0v20110922234950 with iPad 1 and 2 simulators running iOS 4.3, and iPad 2 4.3.5.", "updateAuthor": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-03T10:28:32.000+0000", "updated": "2011-10-03T10:28:32.000+0000" }, { "id": "167993", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening issue so that it can be re-tested when an additional fix for TIMOB-5361 is introduced. Any pull request for 5361 will be tagged with this bug number as well.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-05T03:37:39.000+0000", "updated": "2011-10-05T03:37:39.000+0000" }, { "id": "168167", "author": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reclosing.\n\nFix verified in SDK 1.8.0.v20111006001414 with iPad 1 and 2 simulators running iOS 4.3, and iPad 2 4.3.5. Tested 5361 and that passed as well.", "updateAuthor": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-06T14:15:36.000+0000", "updated": "2011-10-06T14:15:36.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }