{ "id": "136169", "key": "AC-842", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2015-09-15T07:27:09.000+0000", "created": "2014-09-05T19:54:03.000+0000", "labels": [ "TBR", "alloy", "bb", "blackberry", "camera", "crashes" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:37:07.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [], "description": "I redo this issue based on a deeper tracking that I have been doing, so I notice after a lot of tests (compiling titanium_mobile_blackberry) that the issue is not coming from here. In my project I use Alloy and I notice that if I call the camera from view generated by alloy the camera crashes after take a picture.\r\n\r\nhere is part how to replicate:\r\n1) have a simple view .xml like this simple.xml\r\n\r\n\r\n\t\t\r\n\r\n\r\n2) create the controller for this view like simple.js\r\n\r\nfunction showCamera(e){\r\n\t\r\n\t\r\n\tTitanium.Media.showCamera({\r\n\t\tsaveToPhotoGallery : true,\r\n\t\tmediaTypes : Titanium.Media.MEDIA_TYPE_PHOTO,\r\n\t\tsuccess : function(image) {\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t});\r\n\t\r\n}\r\n\r\n3) Now invoke the controller\r\n $.navGroup = Ti.UI.createNavigationGroup();\r\n $.navGroup.setRootWindow(otherWindow);\r\n $.navGroup.open();\r\n\r\n var newWindow = Ti.UI.createWindow({});\r\n\tvar newView = Alloy.createController('simple').getView();\r\n\t$.currentView = newView;\r\n\tnewWindow.add(newView);\r\n $.navGroup.push(newWindow);\r\n\r\nAfter this if you trigger the event that call showCamera the app crashes only in blackberry\r\n\r\nAfter take a photo on a BB (Blackberry) Z10 the app crashes, here is some info:\r\n\r\nI manage to debug this from Momentics IDE and here is the crash\r\n\r\nThread [1] (STOPPED) (Suspended : Signal : SIGSEGV:Segmentation fault)\t\r\n\tv8::internal::Object::Lookup() at 0x820f774\t\r\n\tv8::internal::Object::GetPropertyWithReceiver() at 0x821080e\t\r\n\tv8::internal::Runtime::GetObjectProperty() at 0x8251076\t\r\n\tv8::internal::GetProperty() at 0x81a5040\t\r\n\tv8::Object::Get() at 0x8168d6a\t\r\n\ttitanium::CallV8ObjectProperty() at 0x809bb3e\t\r\n\ttitanium::CameraInvocation::cameraCardDone() at 0x8124c6a\t\r\n\t0x7a93895e\t\r\n\t0x7a93895e\t\r\n\r\nI have read part of the source code of titanium_mobile_blackberry and for some reason that I cant find is like the photo is been taken but when v8 has to call the javascript callback the segmentation happen. \r\n\r\nI have attached a test case that you can try to see the error, create an alloy project and copy/paste the folders in the zip file.\r\n\r\n", "attachment": [ { "id": "51149", "filename": "CameraTest_1.zip", "author": { "name": "abdelbolanos", "key": "abdelbolanos", "displayName": "Abdel Bolanos Martinez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-11T14:23:51.000+0000", "size": 6820927, "mimeType": "application/zip" } ], "flagged": false, "summary": "Camera Crashes on BB (Blackberry) after take photo if called from View generated by Alloy", "creator": { "name": "abdelbolanos", "key": "abdelbolanos", "displayName": "Abdel Bolanos Martinez", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "abdelbolanos", "key": "abdelbolanos", "displayName": "Abdel Bolanos Martinez", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "BB, Blackberry Z10", "comment": { "comments": [], "maxResults": 2, "total": 2, "startAt": 0 } } }