{"action":"created","issue":{"url":"https://api.github.com/repos/marcshilling/react-native-image-picker/issues/154","repository_url":"https://api.github.com/repos/marcshilling/react-native-image-picker","labels_url":"https://api.github.com/repos/marcshilling/react-native-image-picker/issues/154/labels{/name}","comments_url":"https://api.github.com/repos/marcshilling/react-native-image-picker/issues/154/comments","events_url":"https://api.github.com/repos/marcshilling/react-native-image-picker/issues/154/events","html_url":"https://github.com/marcshilling/react-native-image-picker/issues/154","id":142639712,"number":154,"title":"Crashes after image selected on Cyanogenmod with cropping","user":{"login":"timsuchanek","id":1094804,"avatar_url":"https://avatars.githubusercontent.com/u/1094804?v=3","gravatar_id":"","url":"https://api.github.com/users/timsuchanek","html_url":"https://github.com/timsuchanek","followers_url":"https://api.github.com/users/timsuchanek/followers","following_url":"https://api.github.com/users/timsuchanek/following{/other_user}","gists_url":"https://api.github.com/users/timsuchanek/gists{/gist_id}","starred_url":"https://api.github.com/users/timsuchanek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timsuchanek/subscriptions","organizations_url":"https://api.github.com/users/timsuchanek/orgs","repos_url":"https://api.github.com/users/timsuchanek/repos","events_url":"https://api.github.com/users/timsuchanek/events{/privacy}","received_events_url":"https://api.github.com/users/timsuchanek/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-22T12:48:55Z","updated_at":"2016-04-18T18:52:24Z","closed_at":"2016-04-18T18:52:24Z","body":"On Cyanogen 12.1.1, Android 5.1.1, after selecting a picture from gallery or taking picture with camera, the app crashes.\r\n\r\nMy config:\r\n\r\n```js\r\nexport const uiPicker = {\r\n\ttitle: 'Choose a Picture', // specify null or empty string to remove the title\r\n\tcancelButtonTitle: 'Cancel',\r\n\ttakePhotoButtonTitle: 'Take Photo...', // specify null or empty string to remove this button\r\n\tchooseFromLibraryButtonTitle: 'Choose from Library...', // specify null or empty string to remove this button\r\n\tcameraType: 'back', // 'front' or 'back'\r\n\tmediaType: 'photo', // 'photo' or 'video'\r\n\tmaxWidth: 800, // photos only\r\n\tmaxHeight: 800, // photos only\r\n\taspectX: 1, // aspectX:aspectY, the cropping image's ratio of width to height\r\n\taspectY: 1, // aspectX:aspectY, the cropping image's ratio of width to height\r\n\tquality: 0.2, // photos only\r\n\tangle: 0, // photos only\r\n\tallowsEditing: false, // Built in functionality to resize/reposition the image\r\n\tnoData: false, // photos only - disables the base64 `data` field from being generated (greatly improves performance on large photos)\r\n\tstorageOptions: { // if this key is provided, the image will get saved in the documents/pictures directory (rather than a temporary directory)\r\n\t\tskipBackup: true, // image will NOT be backed up to icloud\r\n\t\tpath: 'images' // will save image at /Documents/images rather than the root\r\n\t}\r\n};\r\n```\r\n\r\nThe log message in adb:\r\n```sh\r\nD/QCameraParameters(  241): int qcamera::QCameraParameters::setAutoRotate(const qcamera::QCameraParameters&) set auto rotate: 0\r\nE/mm-camera(  255): mct_pipeline_process_set:command=800000e\r\nD/QCameraParameters(  241): int32_t qcamera::QCameraParameters::setNumOfSnapshot(): nBurstNum = 1, nExpnum = 1\r\nD/LBSSystemMonitorService(  768): handleMessage what - 4\r\nD/Wiper_jni(  768): Send Network Location.\r\nW/JsonSuggestProvider( 2509): ext: null, mimeType: null, handles: false\r\nD/ApplicationSuggestionService( 2509): handles? false\r\nI/ActivityManager(  768): START u0 {act=com.android.camera.action.CROP dat=file:///data/data/com.cyngn.cameranext/files/crop-temp (has extras)} from uid 10038 on display 0\r\nD/AndroidRuntime(24134): Shutting down VM\r\nE/AndroidRuntime(24134): FATAL EXCEPTION: main\r\nE/AndroidRuntime(24134): Process: com.cyngn.cameranext, PID: 24134\r\nE/AndroidRuntime(24134): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.android.camera.action.CROP dat=file:///data/data/com.cyngn.cameranext/files/crop-temp (has extras) }\r\nE/AndroidRuntime(24134):        at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1781)\r\nE/AndroidRuntime(24134):        at android.app.Instrumentation.execStartActivity(Instrumentation.java:1501)\r\nE/AndroidRuntime(24134):        at android.app.Activity.startActivityForResult(Activity.java:3745)\r\nE/AndroidRuntime(24134):        at android.app.Activity.startActivityForResult(Activity.java:3706)\r\nE/AndroidRuntime(24134):        at com.android.camera.bi.do(SourceFile:1934)\r\nE/AndroidRuntime(24134):        at com.android.camera.cb.onClick(SourceFile:456)\r\nE/AndroidRuntime(24134):        at android.view.View.performClick(View.java:4789)\r\nE/AndroidRuntime(24134):        at com.android.camera.ShutterButton.performClick(SourceFile:149)\r\nE/AndroidRuntime(24134):        at android.view.View$PerformClick.run(View.java:19881)\r\nE/AndroidRuntime(24134):        at android.os.Handler.handleCallback(Handler.java:739)\r\nE/AndroidRuntime(24134):        at android.os.Handler.dispatchMessage(Handler.java:95)\r\nE/AndroidRuntime(24134):        at android.os.Looper.loop(Looper.java:135)\r\nE/AndroidRuntime(24134):        at android.app.ActivityThread.main(ActivityThread.java:5294)\r\nE/AndroidRuntime(24134):        at java.lang.reflect.Method.invoke(Native Method)\r\nE/AndroidRuntime(24134):        at java.lang.reflect.Method.invoke(Method.java:372)\r\nE/AndroidRuntime(24134):        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)\r\nE/AndroidRuntime(24134):        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)\r\n\r\n\r\n```\r\n\r\nHowever, if I disable `aspectX` and `aspectY`, it works perfectly.\r\nSo obviously the feature doesn't exist in cyanogen or it has another name.\r\n\r\nMaybe there could be a check in the app, if it is available or not.\r\nA crash is a little bit hard.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/marcshilling/react-native-image-picker/issues/comments/211525281","html_url":"https://github.com/marcshilling/react-native-image-picker/issues/154#issuecomment-211525281","issue_url":"https://api.github.com/repos/marcshilling/react-native-image-picker/issues/154","id":211525281,"user":{"login":"yfuks","id":9282988,"avatar_url":"https://avatars.githubusercontent.com/u/9282988?v=3","gravatar_id":"","url":"https://api.github.com/users/yfuks","html_url":"https://github.com/yfuks","followers_url":"https://api.github.com/users/yfuks/followers","following_url":"https://api.github.com/users/yfuks/following{/other_user}","gists_url":"https://api.github.com/users/yfuks/gists{/gist_id}","starred_url":"https://api.github.com/users/yfuks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yfuks/subscriptions","organizations_url":"https://api.github.com/users/yfuks/orgs","repos_url":"https://api.github.com/users/yfuks/repos","events_url":"https://api.github.com/users/yfuks/events{/privacy}","received_events_url":"https://api.github.com/users/yfuks/received_events","type":"User","site_admin":false},"created_at":"2016-04-18T18:52:24Z","updated_at":"2016-04-18T18:52:24Z","body":"No response, i close"}}