GitHub user roysG opened a pull request: https://github.com/apache/cordova-plugin-camera/pull/147
major bugs when user picture I am sorry if this is not the right place for bug, but i can't find the issue category, and this is very major bugs and important to fix them. I got from play store three different bugs that user got on their side when they used camera. I will write the bugs and the devices: 1. Device: LG Spirit LTE (c70) / android v5.0 Bug: java.lang.RuntimeException: Unable to resume activity {com.pick.tags/com.pick.tags.MainActivity}: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=49, result=-1, data=Intent { dat=file:///storage/emulated/0/Android/data/com.pick.tags/cache/.Pic.jpg (has extras) }} to activity {com.pick.tags/com.pick.tags.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.cordova.CallbackContext.error(java.lang.String)' on a null object reference at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2976) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3007) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2373) at android.app.ActivityThread.access$800(ActivityThread.java:149) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1284) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5299) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:908) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:703) Caused by: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=49, result=-1, data=Intent { dat=file:///storage/emulated/0/Android/data/com.pick.tags/cache/.Pic.jpg (has extras) }} to activity {com.pick.tags/com.pick.tags.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.cordova.CallbackContext.error(java.lang.String)' on a null object reference at android.app.ActivityThread.deliverResults(ActivityThread.java:3581) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2962) ... 11 more Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.cordova.CallbackContext.error(java.lang.String)' on a null object reference at org.apache.cordova.camera.CameraLauncher.failPicture(CameraLauncher.java:1067) at org.apache.cordova.camera.CameraLauncher.processPicture(CameraLauncher.java:1056) at org.apache.cordova.camera.CameraLauncher.processResultFromGallery(CameraLauncher.java:594) at org.apache.cordova.camera.CameraLauncher.onActivityResult(CameraLauncher.java:695) at org.apache.cordova.CordovaInterfaceImpl.onActivityResult(CordovaInterfaceImpl.java:120) at org.apache.cordova.CordovaActivity.onActivityResult(CordovaActivity.java:353) at android.app.Activity.dispatchActivityResult(Activity.java:6222) at android.app.ActivityThread.deliverResults(ActivityThread.java:3577) 2. Device: LG Spirit LTE (c70) / android v5.0 Bug: java.lang.RuntimeException: Unable to resume activity {com.pick.tags/com.pick.tags.MainActivity}: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=49, result=-1, data=Intent { dat=content://media/external/images/media/4243 }} to activity {com.pick.tags/com.pick.tags.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.cordova.CallbackContext.error(java.lang.String)' on a null object reference at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2976) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3007) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2373) at android.app.ActivityThread.access$800(ActivityThread.java:149) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1284) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5299) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:908) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:703) Caused by: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=49, result=-1, data=Intent { dat=content://media/external/images/media/4243 }} to activity {com.pick.tags/com.pick.tags.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.cordova.CallbackContext.error(java.lang.String)' on a null object reference at android.app.ActivityThread.deliverResults(ActivityThread.java:3581) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2962) ... 11 more Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.cordova.CallbackContext.error(java.lang.String)' on a null object reference at org.apache.cordova.camera.CameraLauncher.failPicture(CameraLauncher.java:1067) at org.apache.cordova.camera.CameraLauncher.processPicture(CameraLauncher.java:1056) at org.apache.cordova.camera.CameraLauncher.processResultFromGallery(CameraLauncher.java:594) at org.apache.cordova.camera.CameraLauncher.onActivityResult(CameraLauncher.java:695) at org.apache.cordova.CordovaInterfaceImpl.onActivityResult(CordovaInterfaceImpl.java:120) at org.apache.cordova.CordovaActivity.onActivityResult(CordovaActivity.java:353) at android.app.Activity.dispatchActivityResult(Activity.java:6222) at android.app.ActivityThread.deliverResults(ActivityThread.java:3577) Device: LG G3 (g3) / android v5.0 Bugs: java.lang.RuntimeException: Unable to resume activity {com.pick.tags/com.pick.tags.MainActivity}: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=49, result=0, data=null} to activity {com.pick.tags/com.pick.tags.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.cordova.CallbackContext.error(java.lang.String)' on a null object reference at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2958) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2989) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2372) at android.app.ActivityThread.access$800(ActivityThread.java:148) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1283) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5274) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:909) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:704) Caused by: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=49, result=0, data=null} to activity {com.pick.tags/com.pick.tags.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.cordova.CallbackContext.error(java.lang.String)' on a null object reference at android.app.ActivityThread.deliverResults(ActivityThread.java:3556) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2944) ... 11 more Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.cordova.CallbackContext.error(java.lang.String)' on a null object reference at org.apache.cordova.camera.CameraLauncher.failPicture(CameraLauncher.java:1067) at org.apache.cordova.camera.CameraLauncher.onActivityResult(CameraLauncher.java:698) at org.apache.cordova.CordovaInterfaceImpl.onActivityResult(CordovaInterfaceImpl.java:120) at org.apache.cordova.CordovaActivity.onActivityResult(CordovaActivity.java:353) at android.app.Activity.dispatchActivityResult(Activity.java:6179) at android.app.ActivityThread.deliverResults(ActivityThread.java:3552) Please assist, Thanks. You can merge this pull request into a Git repository by running: $ git pull https://github.com/apache/cordova-plugin-camera master Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cordova-plugin-camera/pull/147.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #147 ---- commit d7e708db092dee3140adbb906322de6f1ed6ec03 Author: VILIC VANE <i...@vilic.info> Date: 2015-01-28T17:31:21Z add try ... catch for getting image orientation There's bug in Windows Phone 8.1 causing Seek on a DssPhotoStream not working properly. https://connect.microsoft.com/VisualStudio/feedback/details/783252 But a mis-oriented file is better than nothing, so try and catch. commit b780331389b87b665d0fe8816f483213bb863182 Author: Victor Sosa <victo...@apache.org> Date: 2015-02-27T18:47:23Z CB-8438 cordova-plugin-camera documentation translation: cordova-plugin-camera commit 2c597a389b03a926a357205cc7d07538bc4b04e2 Author: Jesse MacFadyen <purplecabb...@gmail.com> Date: 2015-03-02T19:47:04Z CB-8559 Integrate TravisCI commit bca73e6ee95c005dea59f6f05ff0b3f50917de33 Author: Murat Sutunc <sut...@gmail.com> Date: 2015-03-03T21:11:01Z CB-8599 fix threading issue with cameraPicker (fixes #72) Signed-off-by: Shazron Abdullah <shaz...@apache.org> commit f39a08ba29950555608051450e487402dec78ef1 Author: Jesse MacFadyen <purplecabb...@gmail.com> Date: 2015-03-03T22:43:07Z Merge branch 'patch-1' of https://github.com/vilic/cordova-plugin-camera commit 929733b8913311f2cfd504937268a8a1d22f4f9a Author: Serge Huijben <thehu...@gmail.com> Date: 2015-03-05T01:33:21Z CB-8235 android: Fix crash when selecting images from DropBox with spaces in path (close #65) commit 2a93a489565d8f7da947a94fb0d563ac7011a79c Author: Jesse MacFadyen <purplecabb...@gmail.com> Date: 2015-03-10T00:34:36Z Fix localize key for Videos. This closes #58 commit b698e10386345ffbbd4aa286ee418379742762b3 Author: Steve Gill <stevengil...@gmail.com> Date: 2015-03-11T00:01:00Z added missing apache header commit 00cd249dd7ffce9645f339f0cfaf383b7976bac8 Author: Steve Gill <stevengil...@gmail.com> Date: 2015-03-11T00:12:32Z CB-8646 Updated version and RELEASENOTES.md for release 0.3.6 commit 7b2f453c2558785df8b81846fa9a33962527764b Author: Steve Gill <stevengil...@gmail.com> Date: 2015-03-11T00:16:07Z CB-8646 Incremented plugin version. commit 9e4174caff5d04213f031dcd4ea1c3654438801b Author: Ian Clelland <iclell...@chromium.org> Date: 2015-03-13T14:46:17Z CB-8659: ios: 4.0.x Compatibility: Remove use of deprecated headers commit 081aec5602f7a1cf7b7823bb80c9b0976987aca8 Author: Steve Gill <stevengil...@gmail.com> Date: 2015-03-14T01:52:47Z CB-8653 Updated Readme commit b8a700215af0f5b217c91c6d5380da716d09dabd Author: Murat Sutunc <mura...@microsoft.com> Date: 2015-02-16T23:32:10Z CB-8706 remove unnecessary capabilities from xml commit 5ef04e552c1b1ca3914fe56c83cc6956c11a81b8 Author: Murat Sutunc <mura...@microsoft.com> Date: 2015-02-17T23:09:33Z CB-8706 use filePicker if saveToPhotoAlbum is true commit 29c9ea387d24c2a4d5558a3af8f9de219c98bb9f Author: Murat Sutunc <mura...@microsoft.com> Date: 2015-03-18T00:16:38Z CB-8707 refactoring windows code to improve readability commit 8062a006c05d08863ac6c2b157e82d18dd6329d2 Author: sgrebnov <v-seg...@microsoft.com> Date: 2015-03-19T14:47:46Z docs: added 'Windows' to supported platforms Untill Windows8 is depracted we should have both Windows and Windows8 commit 7209d38fa22f6c3a0dcac603477c8c7b831f5639 Author: Jesse MacFadyen <purplecabb...@gmail.com> Date: 2015-03-25T06:16:57Z Fix cordova-paramedic path change, build with TRAVIS_BUILD_DIR, use npm to install paramedic commit 04ed502d9210c02d1ae3b5d0eadd6cfa8c41d7a9 Author: Gene Connolly <connolly.g...@gmail.com> Date: 2015-03-30T18:13:50Z CB-8351 Fix custom implementation of integerValueForKey (close #79) https://github.com/apache/cordova-plugin-camera/commit/2ead6335c92deb117cc3ef84d0a15db296de8dc5#diff-3cfd0e1f93894bd4e501e8e0e4634850 commit ccbbdccc4cd207e26b6e6843eae147f9eba7f113 Author: Steve Gill <stevengil...@gmail.com> Date: 2015-03-31T17:53:30Z CB-8653 updated translated docs to use new id commit 563f0038fd95f6b135bf49dab66834611b120f67 Author: Steve Gill <stevengil...@gmail.com> Date: 2015-03-31T23:05:59Z CB-8653 properly updated translated docs to use new id commit f1ae0e9ccf99c210396f0001f49d3fcd2fe3de00 Author: Steve Gill <stevengil...@gmail.com> Date: 2015-03-31T23:39:18Z CB-8683 changed plugin-id to pacakge-name commit ac4af88f551406fa7b38a1343a3fc423a9ae9233 Author: Joe Bowser <bows...@apache.org> Date: 2015-03-31T17:51:14Z CB-8740: Partial fix for Save Image to Gallery error found in MobileSpec commit 23dbb8889adb060e1334058925b2a2bf4ceeb5d5 Author: Joe Bowser <bows...@apache.org> Date: 2015-03-31T22:25:23Z CB-8740: Removing FileHelper call that was failing on Samsung Galaxy S3, now that we have a real path, we only need to update the MediaStore, not pull from it in this case commit 9fe5b430aadb75052d8949567d537199ff3df0fc Author: Joe Bowser <bows...@apache.org> Date: 2015-04-01T18:03:48Z CB-8782: Fixed the flow so that we save the cropped image and use it, not the original non-cropped. Crop only supports G+ Photos Crop, other crops may not work, depending on the OEM commit d52b936bd8a0f17dbeaf50bfdf7f24769b0b422e Author: Joe Bowser <bows...@apache.org> Date: 2015-04-01T18:22:56Z CB-8782: Updated the docs to talk about the allowEdit quirks, it's not 100% working, but better than it was commit ee4ac0d7b28fc638ad2a5abc2158dbc2997bf744 Author: Steve Gill <stevengil...@gmail.com> Date: 2015-04-01T18:40:15Z CB-8683 updated blackberry specific references of org.apache.cordova.camera to cordova-plugin-camera commit d1dfc1e8ee9ac5bcaa329396eb003e4bcc432ddb Author: Steve Gill <stevengil...@gmail.com> Date: 2015-04-02T06:01:47Z CB-8747 updated dependency, added peer dependency commit 9e11ab4dfb03222b3da57632c6ae9fb6fee9f826 Author: Murat Sutunc <mura...@microsoft.com> Date: 2015-04-03T18:08:00Z CR fixes commit 3927735d09bbdfac0a20d9bfb0e78b55af836200 Author: Vladimir Kotikov <an-s...@ya.ru> Date: 2015-04-07T18:48:00Z CB-8706, CB-8707 saveToPhotoAlbum improvements and some refactoring - On Windows we should use filePicker instead of programmatically accessing user libs. This way the app doesnt have to depend on extra capabilities. - Some refactoring to help on navigating code easier This closes #78 commit 302aacb214deae3f30d58a40f76cc53edb5a7be7 Author: Steve Gill <stevengil...@gmail.com> Date: 2015-04-09T23:51:58Z CB-8746 gave plugin major version bump ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org