{ "id": "62964", "key": "TIMOB-2332", "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": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:58:47.000+0000", "created": "2011-04-15T03:16:55.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "defect", "gallery", "ios", "ipad", "iphone", "photo" ], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:58: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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

Running on iOS 4.1 using latest 1.5 when saving a video to the\nphotogallery produces a random crash. Sometimes it works, sometimes\nit doesn't.

\n

Code:

\n
\nTitanium.Media.showCamera({\n\nsuccess:function(event)\n{\n    var video = event.media;\n    Titanium.Media.saveToPhotoGallery(video);\n},\ncancel:function()\n{\n\n},\nerror:function(error)\n{\n    // create alert\n    var a = Titanium.UI.createAlertDialog({title:'Video'});\n\n    // set message\n    if (error.code == Titanium.Media.NO_VIDEO)\n    {\n        a.setMessage('Device does not have video recording capabilities');\n    }\n    else\n    {\n        a.setMessage('Unexpected error: ' + error.code);\n    }\n\n    // show alert\n    a.show();\n},\nmediaTypes: Titanium.Media.MEDIA_TYPE_VIDEO,\nvideoMaximumDuration:10000,\nvideoQuality:Titanium.Media.QUALITY_HIGH\n
\n

});

\n

HD Ticket:
\nhttp://developer.appcelerator.com/helpdesk/view/46701

{html}", "attachment": [], "flagged": false, "summary": "Saving Video to gallery produces crash on iOS", "creator": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "128181", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [737544df76c6853f05f47c172d34b90e26e15f3d])\n[#2332 state:fixed-in-qa] I thought I put in this\nnil in case a second arg wasn't passed. Whoops. It's fixed now.\n\nhttps://github.com/appcelerator/titanium_mobile/commit/737544df76c6...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:16:56.000+0000", "updated": "2011-04-15T03:16:56.000+0000" }, { "id": "128182", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

closed against KS save to gallery video test 1.5.0.8f4eea3 ipod\ntouch 4GT (4.2.1)

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:16:56.000+0000", "updated": "2011-04-15T03:16:56.000+0000" }, { "id": "128183", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Putting in 1.5.0 where it was fixed.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:16:56.000+0000", "updated": "2011-04-15T03:16:56.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }