{ "id": "138346", "key": "AC-1593", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2015-07-04T00:24:37.000+0000", "created": "2014-10-21T16:05:17.000+0000", "labels": [ "TCSupportTriage", "ios", "release-3.4.0" ], "versions": [], "issuelinks": [], "assignee": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "updated": "2016-03-08T07:38:04.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Problem Description\r\n\r\nOur application has a ListView with 3 ListSections. SOMETIMES the 2nd and/or 3rd list section fail to load. \r\nSometimes it crashes the app. Other times I just see an error in the log and some section doesn't show.\r\nThings we see on the log:\r\n{code:lang=none|title=console}\r\n[INFO] : Nymbler(40212,0x54f21a8) malloc: *** error for object 0x7fa6ebf4: incorrect checksum for freed object - object was probably modified after being freed.\r\n[INFO] : *** set a breakpoint in malloc_error_break to debug\r\n[INFO] : 2014-10-20 16:51:02.585 Nymbler[40212:70b] *** Assertion failure in -[UITableView _endCellAnimationsWithContext:], /SourceCache/UIKit_Sim/UIKit-2935.137/UITableView.m:1368\r\n\r\n[INFO] : 2014-10-21 12:47:43.571 Nymbler[14590:118571] *** Assertion failure in -[UITableView _endCellAnimationsWithContext:], /SourceCache/UIKit_Sim/UIKit-3318/UITableView.m:1582\r\n{code}\r\n\r\nWorks fine on android, fails on ios 7 & 8.\r\nTested on SDK 3.4.0.b54c467, latest alloy version.\r\nDidn't have this problem with 3.3.0 and ios 7.\r\n\r\nExample app code:\r\n\r\n{code:lang=javascript|title=app.js}\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n...\r\n...\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n{code}\r\n\r\n\r\n", "attachment": [], "flagged": false, "summary": "Listview with many list sections fails/crashes app", "creator": { "name": "fschroder@runway10.com", "key": "fschroder@runway10.com", "displayName": "Federico schroder", "active": true, "timeZone": "Australia/Sydney" }, "subtasks": [], "reporter": { "name": "fschroder@runway10.com", "key": "fschroder@runway10.com", "displayName": "Federico schroder", "active": true, "timeZone": "Australia/Sydney" }, "environment": "ios 7 & 8", "comment": { "comments": [ { "id": "328874", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello [~fschroder@runway10.com],\r\nPlease generate a self contained classic titanium testcase that shows the behavior.\r\n\r\nWe will investigate in parallel, but right now you are the expert on this issue, so maybe you will be faster in finding a small testcase that reproduces the issue. \r\n\r\nBest Regards,\r\nMauro ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-10-21T19:00:04.000+0000", "updated": "2014-10-21T19:00:04.000+0000" }, { "id": "333204", "author": { "name": "fschroder@runway10.com", "key": "fschroder@runway10.com", "displayName": "Federico schroder", "active": true, "timeZone": "Australia/Sydney" }, "body": "I've managed to produce a rather dirty, alloy based use case out of our app. It even includes a remote call, which likely won't make any difference, but I wanted to make sure you have something to reproduce it. Just click test & back a few times and you will see the error. At least on an iphone5s using ios8.\r\n\r\nTo provide a full working example I created a full project which you can get here: https://dl.dropboxusercontent.com/u/1376664/ListSectionTestAlloy.zip\r\n\r\nHope it helps\r\n", "updateAuthor": { "name": "fschroder@runway10.com", "key": "fschroder@runway10.com", "displayName": "Federico schroder", "active": true, "timeZone": "Australia/Sydney" }, "created": "2014-11-21T13:45:06.000+0000", "updated": "2014-11-21T13:45:18.000+0000" }, { "id": "333457", "author": { "name": "pedh7", "key": "pedh7", "displayName": "Pedro Henrique Atanásio e Silva", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm facing the same problem in a very similar situation. It makes SDK 3.4.0 unusable in my case as the app crashes constantly. In SDK 3.3.0 it works fine.", "updateAuthor": { "name": "pedh7", "key": "pedh7", "displayName": "Pedro Henrique Atanásio e Silva", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-11-24T20:33:28.000+0000", "updated": "2014-11-24T20:33:28.000+0000" }, { "id": "338517", "author": { "name": "simonr", "key": "simonr", "displayName": "Simon R", "active": true, "timeZone": "Europe/London" }, "body": "Also seeing this problem.\r\n\r\nIn my app I have two ListSections, both populated from the same collection (with different filters), interestingly when one of the sections is empty this works fine. When there are items in both sections the app may crash with the same error as above – if it does manage to render and not crash, the listview is wrong in two ways:\r\n\r\n1. The headers aren't sticky\r\n2. The data binding is broken and the items never update\r\n\r\nIf I run the app using Xcode there's a consistent crash on line 139 of Classes/TiListViewProxy.m:\r\n\r\n{code:title=TiListViewProxy.m|borderStyle=solid}\r\n\r\n#138 block(tableView);\r\n#139 [tableView endUpdates]; // Thread 1: EXC_BAD_ACCESS (code=2, address=0x########)\r\n#140 Block_release(block);\r\n\r\n{code}\r\n\r\nRelated commit: https://github.com/appcelerator/titanium_mobile/commit/bd92fb8e19697e4bd89a20865750b7cd9e9134d0", "updateAuthor": { "name": "simonr", "key": "simonr", "displayName": "Simon R", "active": true, "timeZone": "Europe/London" }, "created": "2015-01-09T09:55:06.000+0000", "updated": "2015-01-09T09:55:06.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }