{ "id": "163739", "key": "TIMOB-23985", "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": [ { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2016-11-03T06:38:57.000+0000", "created": "2016-10-05T09:41:14.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-6.0.0" ], "versions": [ { "id": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-02-03T21:29:47.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "h5.Description\r\n\r\nWhen taking a photo, if the user zooms in before taking the photo then when taking the photo an error will be thrown, {{\"code\":-1,\"error\":\"Failed to capture photo\",\"success\":false}}. There is another error thrown while capturing the photo but it displays too quick to be read and is not logged to the console.\r\n\r\n{code}\r\nfunction showCamera() {\r\n Titanium.Media.showCamera({\r\n success : function(event) {\r\n // called when media returned from the camera\r\n Ti.API.debug('Photo taken successfully');\r\n },\r\n cancel : function() {\r\n // called when user cancels taking a picture\r\n Ti.API.debug('Photo cancelled.');\r\n },\r\n error : function(error) {\r\n Ti.API.debug('Photo errored.');\r\n // called when there's an error\r\n var a = Titanium.UI.createAlertDialog({\r\n title : \"Camera\"\r\n });\r\n a.setMessage(JSON.stringify(error));\r\n a.show();\r\n },\r\n saveToPhotoGallery : true\r\n });\r\n }\r\nif (Ti.Media.hasCameraPermissions()) {\r\n showCamera();\r\n} else {\r\n Ti.Media.requestCameraPermissions(function(e) {\r\n if (e.success === true) {\r\n showCamera();\r\n } else {\r\n alert(\"Access denied, error: \" + e.error);\r\n }\r\n });\r\n}\r\n{code}\r\n\r\nh5.Steps to reproduce\r\n\r\n# Add the above code to an existing app.js\r\n# Build to Windows {{appc run -p windows -T wp-device}}\r\n# Zoom in with the camera\r\n# Take a photo\r\n\r\nh5.Actual result\r\n\r\n{{\"code\":-1,\"error\":\"Failed to capture photo\",\"success\":false}} is thrown\r\n\r\nh5.Expected result\r\n\r\nPhoto should be taken", "attachment": [ { "id": "60639", "filename": "wp_ss_20161103_0001.png", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-11-03T06:34:24.000+0000", "size": 375352, "mimeType": "image/png" } ], "flagged": false, "summary": "Windows: Failed to capture photo error thrown when taking a zoomed in photo", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "OS: Microsoft Windows 10 Pro 10.0.14393 \r\nAppc core: 6.0.0-56 \r\nAppc NPM: 4.2.8-7 \r\nTi SDK: 6.0.0.v20161004013027 \r\nAppc Studio: 4.8.0.201609292239", "closedSprints": [ { "id": 741, "state": "closed", "name": "2016 Sprint 22 SDK", "startDate": "2016-10-22T00:02:29.945Z", "endDate": "2016-11-05T00:02:00.000Z", "completeDate": "2016-11-07T04:38:58.335Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "399541", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I was not able to reproduce this issue on my Windows 10 mobile device (Katana01 FTJ152E). [~eharris] Can you provide more info, such as spec or model name of your device?", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-10-20T23:37:02.000+0000", "updated": "2016-10-20T23:37:02.000+0000" }, { "id": "399570", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~kota] I'm using Lumia 550 running 10.0.14393.321 [specs here|http://www.gsmarena.com/microsoft_lumia_550-7612.php] seem to be pretty close to what I can find for the Katana01 device you have. Unfortunately this is the only device I have access to (my Lumia 930 died) so I can't check any others", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2016-10-21T10:48:46.000+0000", "updated": "2016-10-21T10:48:46.000+0000" }, { "id": "400314", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I would resolve this as \"Not Our Bug\", because I noticed it happens when I zoom the built-in \"Camera\" app which Microsoft provides.\r\n\r\n!wp_ss_20161103_0001.png|thumbnail!\r\n\r\n Interestingly this does not happen when I use camera from Titanium app. Because Titanium just uses the same camera component that Camera app uses, I would resolve this as bug of the built-in Camera component. \r\n", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-11-03T06:38:57.000+0000", "updated": "2016-11-03T08:45:58.000+0000" }, { "id": "406290", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as it is marked as \"Not Our Bug\"", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-02-03T21:29:40.000+0000", "updated": "2017-02-03T21:29:40.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }