{ "id": "140079", "key": "AC-1060", "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-09-29T01:01:00.000+0000", "created": "2014-11-20T08:36:39.000+0000", "labels": [ "ImageView", "TableViewRow", "Titanium", "crash", "intermittent" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:37:24.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." } ], "description": "For iOS:\r\nWhen populating rows (containing images) in a TableView, and updating the table, replacing the rows with new rows, this type of error intermittently happens:\r\n\r\n{{\r\n[INFO] : failbags2(95744,0x57fd1a8) malloc: *** error for object 0x7a2ca800: pointer being freed was not allocated\r\n[INFO] : *** set a breakpoint in malloc_error_break to debug\r\n}}\r\n\r\nThe error is intermittent, but happens about 30% of the time, which makes it a problem.\r\n\r\nI'd posted a question: \r\nhttps://developer.appcelerator.com/question/179135/images-in-tableview-crashing-app-with-null-pointer-failures\r\n\r\n... but after a day, haven't had any attempts at an answer. If I'm doing something grossly wrong - please let me know, but it looks like something is strange with garbage collection or other aspects of memory management. I could swear this problem wasn't here in previous iterations (but can't be absolutely sure). Compiling and running in xcode, when it breaks, seems to indicate that it's something to do with images, or the clearing up of them (TiUIImageView or something like that)\r\n\r\nThe attached \"index.js\" file is for app/controllers - replace the contents of index.js with the contents of this file. In the index.js file, is a snippet to replace the index.xml file in views.\r\n\r\nI've also uploaded a zip file of my test project to:\r\nhttp://scratch.otron9000.co.za/failbags2.zip\r\n\r\nJust in case you want to download that and use it.\r\n\r\nWhen running the test app, if console.log indicates an iteration as high as 4 or 5, the test won't fail. Uninstall the app from the simulator, clean the project in Titanium, and run from Titanium, and try again. Rinse, cycle, repeat :)", "attachment": [ { "id": "52736", "filename": "index.js", "author": { "name": "ryan.white@systemiclogic.net", "key": "ryan.white@systemiclogic.net", "displayName": "Ryan White", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-11-20T08:36:39.000+0000", "size": 1636, "mimeType": "text/javascript" }, { "id": "52787", "filename": "Screen Shot 2014-11-21 at 12.37.52 PM.png", "author": { "name": "ryan.white@systemiclogic.net", "key": "ryan.white@systemiclogic.net", "displayName": "Ryan White", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-11-24T09:50:26.000+0000", "size": 1328515, "mimeType": "image/png" } ], "flagged": false, "summary": "Images in TableView crashing app with null pointer failures", "creator": { "name": "ryan.white@systemiclogic.net", "key": "ryan.white@systemiclogic.net", "displayName": "Ryan White", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ryan.white@systemiclogic.net", "key": "ryan.white@systemiclogic.net", "displayName": "Ryan White", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "OS X Mavericks (OS X 10.9.5 (13F34))\r\nXcode: Version 6.0.1 (6A317)\r\nTitanium Studio, build: 3.4.1.201410281727\r\nTitanium SDK 3.4.1GA", "comment": { "comments": [ { "id": "333186", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Tried your test case, but can't reproduce your problem. It works well for me.", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-11-21T06:31:29.000+0000", "updated": "2014-11-21T06:31:29.000+0000" }, { "id": "333367", "author": { "name": "ryan.white@systemiclogic.net", "key": "ryan.white@systemiclogic.net", "displayName": "Ryan White", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Screen shot of failure in xcode, indicating TiUIImageView as potentially the problem", "updateAuthor": { "name": "ryan.white@systemiclogic.net", "key": "ryan.white@systemiclogic.net", "displayName": "Ryan White", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-11-24T09:50:26.000+0000", "updated": "2014-11-24T09:50:26.000+0000" }, { "id": "333368", "author": { "name": "ryan.white@systemiclogic.net", "key": "ryan.white@systemiclogic.net", "displayName": "Ryan White", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Just to be sure here - how many cycles of uninstall-clean-run did you run?\r\nAlso - what is your setup?\r\nMaybe if I can copy your setup, I can get the project to work :)\r\n\r\nI also uploaded a screen cap of the error in Xcode.", "updateAuthor": { "name": "ryan.white@systemiclogic.net", "key": "ryan.white@systemiclogic.net", "displayName": "Ryan White", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-11-24T09:50:35.000+0000", "updated": "2014-11-24T09:51:10.000+0000" }, { "id": "362161", "author": { "name": "hmrida", "key": "hmrida", "displayName": "Harish Mridha", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hi ,\r\nI tested the issue you reported. Can't reproduce your problem. It works well for me\r\nI tested this using the studio build: 4.1.1.201507141126 and TiSDK4.1.0 GA .\r\nI recommend you upgrade TiSDK to the latest build and let us know if you get the error again.\r\nI will mark this ticket as \"resolved\" since I can't reproduce it. However, feel free to reopen with additional information if you notice otherwise.\r\nThanks", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-09-03T09:16:10.000+0000", "updated": "2015-09-29T01:00:46.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }