{ "id": "154772", "key": "AC-797", "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": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2016-02-14T04:38:24.000+0000", "created": "2016-02-05T16:51:47.000+0000", "labels": [ "EXC_BAD_ACCESS", "crash", "ios" ], "versions": [], "issuelinks": [], "assignee": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "updated": "2016-03-08T07:37: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": [], "description": "I face reproducible crashes on iOS device (iPhone 6). I achieved to isolate the javascript piece of code that causes crashes, however I think it could be a framework's bug as it raises error at memory access level. \r\n\r\nHere is the code: I have a widget with multiple controllers - it's a typical list/item structure, let's call the files as {{myWidget/controllers/widget.js}} and {{myWidget/controllers/item.js}}. In {{widget.js}} file I run \r\nWidget.createController('item', {foo: 'bar'});\r\nthus the code from the {{item.js}} file is required and executed. \r\n\r\n*_Sometimes_* during the execution of my app, in which my widget is required in several different places, the {{arguments}} variable inside the {{item.js}} controller happen to be erroneously instantiated, causing the app to crash at the first reference to such variable. \r\nBy investigating in logs, the crash is related to a bad access to memory: a {{NSRangeException}} error is raised, resulting in a {{EXC_BAD_ACCESS}} memory fault and consequently an app crash. \r\n\r\nI attach both the error log in console and the crash report in xcode. \r\n\r\nI hope this story results clear and helpful, please let me know if I can do anything to help.\r\n\r\nThanks\r\n", "attachment": [ { "id": "58153", "filename": "console.txt", "author": { "name": "balanza", "key": "balanza", "displayName": "emanuele de cupis", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-02-05T16:35:01.000+0000", "size": 2535, "mimeType": "text/plain" }, { "id": "58152", "filename": "crash.txt", "author": { "name": "balanza", "key": "balanza", "displayName": "emanuele de cupis", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-02-05T16:35:02.000+0000", "size": 90308, "mimeType": "text/plain" } ], "flagged": false, "summary": "iOS crashes by \"NSRangeException\" error on controller's argument", "creator": { "name": "balanza", "key": "balanza", "displayName": "emanuele de cupis", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "balanza", "key": "balanza", "displayName": "emanuele de cupis", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Dev machine: Mac OSX El Capitain (10.11.3), Macbook 13, 2,4GHZ cpu, 8GB ram\r\nTest device: iPhone 6, iOS 9.2.1\r\nTitanium SDK: 5.1.2.GA", "comment": { "comments": [ { "id": "376214", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Can you provide a full test code and steps to reproduce the issue that you are having? We will try to regenerate the issue in out environment. Please be more descriptive as possible Also please provide the full environment info in where you are generating the issue. Thanks. ", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-02-08T09:55:36.000+0000", "updated": "2016-02-08T09:55:36.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }