{ "id": "121334", "key": "AC-2163", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-10-20T14:51:18.000+0000", "created": "2013-10-17T18:30:47.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:41:08.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": "When using a MaskedImage in a ListView template all works fine in the simulator. On the actual device however the app crashes with a class not found error. I attached a simple test case which shows the problem (you have to add a test.png image to to project). It works fine in the simulator but crashes on the iPhone 5S with iOS 7.0.2. Also attached the logs from the device.", "attachment": [ { "id": "43271", "filename": "app.js", "author": { "name": "mdescher", "key": "mdescher", "displayName": "Michael Descher", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-10-17T18:30:47.000+0000", "size": 516, "mimeType": "application/x-javascript" }, { "id": "43272", "filename": "crashlog.txt", "author": { "name": "mdescher", "key": "mdescher", "displayName": "Michael Descher", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-10-17T18:30:47.000+0000", "size": 36365, "mimeType": "text/plain" }, { "id": "43273", "filename": "log.txt", "author": { "name": "mdescher", "key": "mdescher", "displayName": "Michael Descher", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-10-17T18:30:47.000+0000", "size": 3727, "mimeType": "text/plain" } ], "flagged": false, "summary": "MaskedImage does not work in ListView template on device", "creator": { "name": "mdescher", "key": "mdescher", "displayName": "Michael Descher", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "mdescher", "key": "mdescher", "displayName": "Michael Descher", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Mobile SDK 3.1.3.GA\r\niOS 7.0.2\r\niPhone 5S", "comment": { "comments": [ { "id": "275839", "author": { "name": "mdescher", "key": "mdescher", "displayName": "Michael Descher", "active": true, "timeZone": "Europe/Berlin" }, "body": "Seems to be some class loading issue. I added the call \"Titanium.UI.createMaskedImage()\" as the very first line in my app and that made it work.", "updateAuthor": { "name": "mdescher", "key": "mdescher", "displayName": "Michael Descher", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-10-19T08:47:46.000+0000", "updated": "2013-10-19T08:47:46.000+0000" }, { "id": "275860", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello Michael Descher,\n\nIs it working well in your device? \nThanks ", "updateAuthor": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2013-10-20T10:22:29.000+0000", "updated": "2013-10-20T10:22:29.000+0000" }, { "id": "275862", "author": { "name": "mdescher", "key": "mdescher", "displayName": "Michael Descher", "active": true, "timeZone": "Europe/Berlin" }, "body": "Yes, when I add an explicit createMaskedImage call in the app before the ListView uses the MaskedImage in the template it works fine on my iPhone 5s with iOS 7.0.2.", "updateAuthor": { "name": "mdescher", "key": "mdescher", "displayName": "Michael Descher", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-10-20T10:51:22.000+0000", "updated": "2013-10-20T10:51:22.000+0000" }, { "id": "285758", "author": { "name": "yomybaby", "key": "yomybaby", "displayName": "Jong Eun Lee", "active": true, "timeZone": "Asia/Tokyo" }, "body": "I added added the call \"Titanium.UI.createMaskedImage()\" as the very first line in my app and that made it work.\n\nBut it is a bug, isn't it?\n\nPlease fix this bug.\nI was struggling to find the reason. I hope that there is no person to make it work.\n", "updateAuthor": { "name": "yomybaby", "key": "yomybaby", "displayName": "Jong Eun Lee", "active": true, "timeZone": "Asia/Tokyo" }, "created": "2013-12-24T23:10:07.000+0000", "updated": "2013-12-24T23:10:07.000+0000" }, { "id": "285855", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hi Jong,\n\nThis is not a bug but is as designed. Using createMaskedImage() is the correct way to use masked images.\nWhen apps are run on the simulator, many more libraries and resources are loaded than if the app is run on a device (which only loads the resources you specify). These resources allow for the masked images to work as called in the above sample, however using a string for masked images in a template is still not supported with devices.\nSo, to have your apps work correctly on simulators and devices, use createMaskedImage().\n\nI hope that helps make things a little clearer. Please let me know if you still have questions.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-26T16:04:48.000+0000", "updated": "2013-12-26T16:04:48.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }