You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2022/01/28 10:07:41 UTC

[GitHub] [cordova-plugin-camera] sbellver opened a new issue #785: [ANDROID 11] Camera plugin crashes app after image is taken

sbellver opened a new issue #785:
URL: https://github.com/apache/cordova-plugin-camera/issues/785


   # Bug Report
   
   ## Problem
   
   In Android 11 phones, after taking photo o selected it from gallery, app closes; however, file is uploaded ok to the server and notify correctly "Your photo is uploaded".
   
   Then, after few seconds, app close it self.
   
   
   ### What is expected to happen?
   
   - Select a photo from gallery or take photo
   - Save photo
   - App still working as expected
   
   
   ### What does actually happen?
   
   - Select a photo from gallery or take photo
   - Save photo
   - App crashes after few seconds
   
   
   ## Information
   It only happens into Android 11 devices.
   Tested into Android 7 and iOs and works fine
   
   
   ### Environment, Platform, Device
   Android 11
   
   
   ### Version information
   MacOs
   ionic v1
   ionic cli
   Cordova 10.0.0
   Cordova-android 10
   Cordova-plugin-camera 6.0.0
   FileTransfer (latest, from git repo, recently updated)
   
   
   ## Checklist
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-camera] skyttedk commented on issue #785: [ANDROID 11] Camera plugin crashes app after image is taken

Posted by GitBox <gi...@apache.org>.
skyttedk commented on issue #785:
URL: https://github.com/apache/cordova-plugin-camera/issues/785#issuecomment-1026641730


   I also experience this problem on android 9.1, Getting this error message:
   
   > 02-01 09:27:00.893 E/AndroidRuntime(15931): Caused by: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=33, result=-1, data=null} to activity {com.phonegap.gsv/com.phonegap.gsv.MainActivity}: java.lang.NullPointerException: filename cannot be null


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-camera] lucasrleandro commented on issue #785: [ANDROID 11] Camera plugin crashes app after image is taken

Posted by GitBox <gi...@apache.org>.
lucasrleandro commented on issue #785:
URL: https://github.com/apache/cordova-plugin-camera/issues/785#issuecomment-1026333794


   Im also facing this problem
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-camera] sbellver commented on issue #785: [ANDROID 11] Camera plugin crashes app after image is taken

Posted by GitBox <gi...@apache.org>.
sbellver commented on issue #785:
URL: https://github.com/apache/cordova-plugin-camera/issues/785#issuecomment-1026750044


   No way.
   
   Try allowEdit: false, change processResultFromCamera function on CamaeraLauncher.java (seems imageFilePath give null data)
   
   https://github.com/apache/cordova-plugin-camera/issues/718#issuecomment-864517005
   
   https://stackoverflow.com/questions/65844036/ionic-cordova-plugin-camera-crash-the-application-after-take-picture
   
   https://stackoverflow.com/questions/17083255/cordova-phonegap-crashes-after-taking-a-picture-with-camera-getpicture
   
   But nothing solves it
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-camera] thiagoroc edited a comment on issue #785: [ANDROID 11] Camera plugin crashes app after image is taken

Posted by GitBox <gi...@apache.org>.
thiagoroc edited a comment on issue #785:
URL: https://github.com/apache/cordova-plugin-camera/issues/785#issuecomment-1026201289


   > Trying cordova-plugin-background-mode plugin and same result
   
   I still have problems even with cordova-plugin-background-mode but my problem is on Android 10 (Motorola G8 Power lite only) and app closeds immediately after the photo is taken.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-camera] sbellver commented on issue #785: [ANDROID 11] Camera plugin crashes app after image is taken

Posted by GitBox <gi...@apache.org>.
sbellver commented on issue #785:
URL: https://github.com/apache/cordova-plugin-camera/issues/785#issuecomment-1026894445


   well, I think is related about FileTransfer plugin, not Camera plugin.
   
   If I dont use a FT upload, it works (dont close)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-camera] sbellver commented on issue #785: [ANDROID 11] Camera plugin crashes app after image is taken

Posted by GitBox <gi...@apache.org>.
sbellver commented on issue #785:
URL: https://github.com/apache/cordova-plugin-camera/issues/785#issuecomment-1026765252


   More debug results.
   
   It only happens with DestinationType.FILE_URI; with DestinationType.DATA_URL works well.
   
   But Base64 sometimes close the app if terminal have low RAM :'(
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-camera] thiagoroc commented on issue #785: [ANDROID 11] Camera plugin crashes app after image is taken

Posted by GitBox <gi...@apache.org>.
thiagoroc commented on issue #785:
URL: https://github.com/apache/cordova-plugin-camera/issues/785#issuecomment-1026201289


   > Trying cordova-plugin-background-mode plugin and same result
   
   I still have problems even with cordova-plugin-background-mode


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-camera] sbellver closed issue #785: [ANDROID 11] Camera plugin crashes app after image is taken

Posted by GitBox <gi...@apache.org>.
sbellver closed issue #785:
URL: https://github.com/apache/cordova-plugin-camera/issues/785


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-camera] sbellver commented on issue #785: [ANDROID 11] Camera plugin crashes app after image is taken

Posted by GitBox <gi...@apache.org>.
sbellver commented on issue #785:
URL: https://github.com/apache/cordova-plugin-camera/issues/785#issuecomment-1028929348


   Finally, it's from toast plugin!
   
   https://github.com/EddyVerbruggen/Toast-PhoneGap-Plugin/commit/4399bed9e1ccda46a71609abad17e3c3cc068c82
   
   After update it, I have no problems


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-camera] sbellver commented on issue #785: [ANDROID 11] Camera plugin crashes app after image is taken

Posted by GitBox <gi...@apache.org>.
sbellver commented on issue #785:
URL: https://github.com/apache/cordova-plugin-camera/issues/785#issuecomment-1025666334


   Trying cordova-plugin-background-mode plugin and same result


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-camera] thiagoroc edited a comment on issue #785: [ANDROID 11] Camera plugin crashes app after image is taken

Posted by GitBox <gi...@apache.org>.
thiagoroc edited a comment on issue #785:
URL: https://github.com/apache/cordova-plugin-camera/issues/785#issuecomment-1026201289


   > Trying cordova-plugin-background-mode plugin and same result
   
   I still have problems even with cordova-plugin-background-mode but my problem is on Android 10 (Motorola G8 Power lite only).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org