You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/08/06 15:22:17 UTC

[GitHub] [cordova-plugin-camera] GuiF007 opened a new issue #486: Camera cannot be open with Cordova 9

GuiF007 opened a new issue #486: Camera cannot be open with Cordova 9
URL: https://github.com/apache/cordova-plugin-camera/issues/486
 
 
   # Bug Report
   
   ## Problem
   I have an app with a "Open Camera" button. The first time I click on this button, Android requests permission to use Camera.
   
   ### What is expected to happen?
   After permission asking, I expect the camera opening
   When I click on the "Open Camera", the camera opening
   
   ### What does actually happen?
   After permission asking, the app crashes
   When I click on the "Open Camera", nothing happen.
   
   On log, when I click on the button : 
   
   > 08-06 17:06:18.679 20453 20602 E PluginManager: Uncaught exception from plugin
   > 08-06 17:06:18.679 20453 20602 E PluginManager: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.XmlResourceParser android.content.pm.PackageItemInfo.loadXmlMetaData(android.content.pm.PackageManager, java.lang.String)' on a null object reference
   > 08-06 17:06:18.679 20453 20602 E PluginManager: 	at androidx.core.content.FileProvider.parsePathStrategy(FileProvider.java:605)
   > 08-06 17:06:18.679 20453 20602 E PluginManager: 	at androidx.core.content.FileProvider.getPathStrategy(FileProvider.java:579)
   > 08-06 17:06:18.679 20453 20602 E PluginManager: 	at androidx.core.content.FileProvider.getUriForFile(FileProvider.java:417)
   > 08-06 17:06:18.679 20453 20602 E PluginManager: 	at org.apache.cordova.camera.CameraLauncher.takePicture(CameraLauncher.java:303)
   > 08-06 17:06:18.679 20453 20602 E PluginManager: 	at org.apache.cordova.camera.CameraLauncher.callTakePicture(CameraLauncher.java:282)
   > 08-06 17:06:18.679 20453 20602 E PluginManager: 	at org.apache.cordova.camera.CameraLauncher.execute(CameraLauncher.java:190)
   > 08-06 17:06:18.679 20453 20602 E PluginManager: 	at org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:98)
   > 08-06 17:06:18.679 20453 20602 E PluginManager: 	at org.apache.cordova.PluginManager.exec(PluginManager.java:132)
   > 08-06 17:06:18.679 20453 20602 E PluginManager: 	at org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:59)
   > 08-06 17:06:18.679 20453 20602 E PluginManager: 	at org.apache.cordova.engine.SystemExposedJsApi.exec(SystemExposedJsApi.java:41)
   > 08-06 17:06:18.679 20453 20602 E PluginManager: 	at android.os.MessageQueue.nativePollOnce(Native Method)
   > 08-06 17:06:18.679 20453 20602 E PluginManager: 	at android.os.MessageQueue.next(MessageQueue.java:379)
   > 08-06 17:06:18.679 20453 20602 E PluginManager: 	at android.os.Looper.loop(Looper.java:144)
   > 08-06 17:06:18.679 20453 20602 E PluginManager: 	at android.os.HandlerThread.run(HandlerThread.java:65)
   
   ### Version information
   - cordova 9.0.0, 
   - cordova-android 8.0.0, 
   - cordova-plugin-camera 4.0.3 and 4.1.0
   - ionic v3
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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