{ "id": "155115", "key": "TIMOB-20563", "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": null, "resolutiondate": null, "created": "2016-02-24T21:46:05.000+0000", "priority": null, "labels": [ "Camera", "iOS" ], "versions": [ { "id": "16997", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:55:27.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "Just take a picture and try to base64encode the media result.\r\nIn console I have this logs after waiting about 2 minutes to process the base64encode:\r\n\r\n{code:java}\r\nSnapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates.\r\n[INFO] : Communications error: { count = 1, contents =\r\n[INFO] : \t\"XPCErrorDescription\" => { length = 22, contents = \"Connection interrupted\" }\r\n[INFO] : }>\r\n[INFO] : Received memory warning.\r\n[INFO] : Received memory warning.\r\n[INFO] : LaunchServices: disconnect event received for service com.apple.lsd.mapdb\r\n[INFO] : Received memory warning.\r\n[INFO] : *** ASL MESSAGE SIZE (13857279 bytes) EXCEEDED MAXIMIMUM SIZE (2048000 bytes) ***\r\n{code}\r\n\r\n\r\nExample below:\r\n\r\n{code:java}\r\n\t\tTitanium.Media.showCamera({\t\t\r\n\t\t\tsuccess:function(event) {\r\n Ti.Utils.base64encode(event.media);\r\n // AFTER 2 MINUTES YOU WILL SEE THOSE MESSAGES ABOVE\r\n\t\t\t},\r\n\t\t\tcancel:function() {\r\n\t\t\r\n\t\t\t},\r\n\t\t\terror:function(error) {\r\n\t\t\t\t// create alert\r\n\t\t\t\tvar a = Titanium.UI.createAlertDialog({title:'Camera'});\r\n\t\t\r\n\t\t\t\t// set message\r\n\t\t\t\tif (error.code == Titanium.Media.NO_CAMERA) {\r\n\t\t\t\t\ta.setMessage('Device does not have video recording capabilities');\r\n\t\t\t\t} else {\r\n\t\t\t\t\ta.setMessage('Unexpected error: ' + error.code);\r\n\t\t\t\t}\r\n\t\t\r\n\t\t\t\t// show alert\r\n\t\t\t\ta.show();\r\n\t\t\t},\r\n\t\t\tallowEditing:true\r\n\t\t});\r\n{code}", "attachment": [ { "id": "58320", "filename": "log.log", "author": { "name": "arildo", "key": "arildo", "displayName": "Arildo Junior", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-02-24T21:39:39.000+0000", "size": 5169182, "mimeType": "text/plain" } ], "flagged": false, "summary": "Base64encode doesn't work", "creator": { "name": "arildo", "key": "arildo", "displayName": "Arildo Junior", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "arildo", "key": "arildo", "displayName": "Arildo Junior", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Appcelerator Studio 4.5.0.201602170831\r\nTitanium SDK 5.1.2.GA\r\nTest Device: iPhone 4s iOS 9.1", "comment": { "comments": [ { "id": "377988", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Related Stack Overflow question:\r\nhttp://stackoverflow.com/questions/35233932/unable-to-make-an-image-blob-json-serializable/35381676\r\n\r\n[~arildo] could you check with some older SDKs as well, and also 5.2.0?", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2016-02-26T15:44:08.000+0000", "updated": "2016-02-26T15:44:08.000+0000" }, { "id": "378113", "author": { "name": "arildo", "key": "arildo", "displayName": "Arildo Junior", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Also didn't work unfortunately.", "updateAuthor": { "name": "arildo", "key": "arildo", "displayName": "Arildo Junior", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-02-29T06:42:48.000+0000", "updated": "2016-02-29T06:42:48.000+0000" }, { "id": "379415", "author": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "body": "I am not able to reproduce this issue. The following code line gives a log message but the camera app is not stuck.\r\n{code}\r\nTi.Utils.base64encode(event.media);\r\n{code}\r\n\r\nThe only error log that I get is :\r\n\r\n{code}\r\n[INFO] : Choreographer: Skipped 52 frames! The application may be doing too much work on its main thread.\r\n{code}\r\n\r\n*Environment*:\r\n\r\n*Device info:* Nexux7 (android 6.0.1)\r\n*Node.js Version:* 0.12.7\r\n*npm Version:* 2.11.3\r\n*Titanium SDKs:* 5.2.0 and 5.1.2.GA\r\n*Java Development Kit Version:* 1.8.0_73\r\n*Titanium CLI Version:* 5.0.5", "updateAuthor": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2016-03-10T06:55:43.000+0000", "updated": "2016-03-10T09:22:27.000+0000" }, { "id": "379660", "author": { "name": "arildo", "key": "arildo", "displayName": "Arildo Junior", "active": true, "timeZone": "America/Los_Angeles" }, "body": "In my case the camera app is not able to generate a base64 string from event.media Blob. Were you be able to generate this base64string? Did you print out on your console Nazmus?\r\nI didn't test on Android devices but I will in the future. This issue must be fixed on both platforms.", "updateAuthor": { "name": "arildo", "key": "arildo", "displayName": "Arildo Junior", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-03-14T11:00:04.000+0000", "updated": "2016-03-14T11:00:04.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }