{ "id": "140410", "key": "AC-959", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2015-09-29T01:06:15.000+0000", "created": "2014-11-24T17:50:48.000+0000", "labels": [ "blackberry" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:37:16.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": "This code in a view controller crashes the app:\r\n---\r\nvar labelContainer = Ti.UI.createView({\r\n\t\tlayout: 'horizontal',\r\n\t\theight : (args[\"label\" + i + \"Height\"] ? args[\"label\" + i + \"Height\"] : Ti.UI.SIZE),\r\n\t\twidth : (args[\"label\" + i + \"Width\"] ? args[\"label\" + i + \"Width\"] : labelWidth),\r\n\t\tleft : (args[\"label\" + i + \"Left\"] ? args[\"label\" + i + \"Left\"] : defaultLeft),\r\n\t\tright : (args[\"label\" + i + \"Right\"] ? args[\"label\" + i + \"Right\"] : defaultRight),\r\n\t\ttop : (args[\"label\" + i + \"Top\"] ? args[\"label\" + i + \"Top\"] : 0),\r\n\t});\r\n\t// Crashes on BB\r\n\tlabelContainer.applyProperties($.createStyle({classes: ['jbDocumentSectionFieldLabelContainer']}));\r\n\r\n---\r\n\r\nThe app crashes directly after startup. There is no further error message, neither on Studio's console nor in the BB simulator. ", "attachment": [], "flagged": false, "summary": "$.createStyle() crashes app in BlackBerry 10", "creator": { "name": "Julian Buss", "key": "julian buss", "displayName": "Julian Buss", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "Julian Buss", "key": "julian buss", "displayName": "Julian Buss", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Ti 3.4.1 GA, Studio 3.4.1.201410281727, CLI version 3.4.1 on Mac. BB10 10.3.0.698. ", "comment": { "comments": [ { "id": "349141", "author": { "name": "hmrida", "key": "hmrida", "displayName": "Harish Mridha", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hi,\r\n\r\nOur SDK supports iOS, Android and Windows only.\r\n\r\nThanks ", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-04-10T05:34:32.000+0000", "updated": "2015-09-29T01:05:55.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }