{ "id": "144828", "key": "TIMOB-19601", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-05-02T20:23:43.000+0000", "created": "2015-02-17T09:51:37.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "android-4.4", "imageView", "toImage" ], "versions": [ { "id": "16919", "description": "Critical updates", "name": "Release 4.1.1", "archived": true, "released": true, "releaseDate": "2015-07-15" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-05-02T20:23:43.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "This code causes an exception: \"bitmap size exceeds 32bits\"\r\n\r\n{code:title=app.js|borderStyle=solid}\r\nvar win = Ti.UI.createWindow();\r\nvar savedFile = Titanium.Filesystem.getFile(Titanium.Filesystem.applicationDataDirectory, \"myimage.png\");\r\nvar image = Ti.UI.createImageView({image: \"KS_nav_ui.png\"); \r\n function saveImage(e) { \r\n image.removeEventListener('load', saveImage);\r\n savedFile.write(Ti.UI.createImageView({\r\n image : image.image,\r\n width : 'auto',\r\n height : 'auto'\r\n }).toImage());\r\n }\r\n image.addEventListener('load', saveImage); \r\nwin.add(image);\r\nwin.open();\r\n{code}\r\nThis exception observed in Android 4.4.2. \r\nBut Android 4.2.2 runs without exception.\r\nIt disappears for 4.4.2 by replace toImage to toBlob.", "attachment": [], "flagged": false, "summary": "Android: bitmap size exceeds 32bits when imageView.toImage()", "creator": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "subtasks": [], "reporter": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "environment": "Titanium SDK 3.4.1.GA/3.5.0.GA/3.5.1.GA, Android 4.4.2(Genymotion)", "comment": { "comments": [ { "id": "346476", "author": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "body": "[~mrahman] Can you please try to replicate with 3.5.0, 3.5.1 and master?", "updateAuthor": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "created": "2015-03-18T23:48:25.000+0000", "updated": "2015-03-18T23:48:25.000+0000" }, { "id": "346506", "author": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "body": "Simple create Classic app and replace app.js with test code above.", "updateAuthor": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "created": "2015-03-19T06:40:32.000+0000", "updated": "2015-03-19T06:40:32.000+0000" }, { "id": "418717", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Resolving ticket as Invalid as there is now a new version of Kitchen Sink available and we no longer support the version which relates to this ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-05-02T20:23:43.000+0000", "updated": "2017-05-02T20:23:43.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }