cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Bowser (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-8740) Mobile Spec Camera test can't find the photo, keeps finding directory
Date Tue, 24 Mar 2015 23:23:52 GMT
Joe Bowser created CB-8740:
------------------------------

             Summary: Mobile Spec Camera test can't find the photo, keeps finding directory
                 Key: CB-8740
                 URL: https://issues.apache.org/jira/browse/CB-8740
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android, mobile-spec, Plugin Camera
            Reporter: Joe Bowser


I tried to accept a pull request from a user, and I have no idea if it works, because it appears
that the Camera API is broken and it doesn't pass the manual mobile-spec tests.  I keep getting
this error on the Nexus 7 running Lollipop, Nexus 6 running Lollipop and the Samsung Galaxy
S4 running 4.4.2. (Log from S4): 

W/System.err( 7822): java.io.FileNotFoundException: Is a directory
W/System.err( 7822): 	at android.os.Parcel.openFileDescriptor(Native Method)
W/System.err( 7822): 	at android.os.ParcelFileDescriptor.openInternal(ParcelFileDescriptor.java:252)
W/System.err( 7822): 	at android.os.ParcelFileDescriptor.open(ParcelFileDescriptor.java:198)
W/System.err( 7822): 	at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:902)
W/System.err( 7822): 	at android.content.ContentResolver.openOutputStream(ContentResolver.java:672)
W/System.err( 7822): 	at android.content.ContentResolver.openOutputStream(ContentResolver.java:648)
W/System.err( 7822): 	at org.apache.cordova.camera.CameraLauncher.processResultFromCamera(CameraLauncher.java:418)
W/System.err( 7822): 	at org.apache.cordova.camera.CameraLauncher.onActivityResult(CameraLauncher.java:610)
W/System.err( 7822): 	at org.apache.cordova.CordovaInterfaceImpl.onActivityResult(CordovaInterfaceImpl.java:90)
W/System.err( 7822): 	at org.apache.cordova.CordovaActivity.onActivityResult(CordovaActivity.java:319)
W/System.err( 7822): 	at android.app.Activity.dispatchActivityResult(Activity.java:5618)
W/System.err( 7822): 	at android.app.ActivityThread.deliverResults(ActivityThread.java:3547)
W/System.err( 7822): 	at android.app.ActivityThread.handleSendResult(ActivityThread.java:3594)
W/System.err( 7822): 	at android.app.ActivityThread.access$1400(ActivityThread.java:161)
W/System.err( 7822): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1313)
W/System.err( 7822): 	at android.os.Handler.dispatchMessage(Handler.java:102)
W/System.err( 7822): 	at android.os.Looper.loop(Looper.java:157)
W/System.err( 7822): 	at android.app.ActivityThread.main(ActivityThread.java:5356)
W/System.err( 7822): 	at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err( 7822): 	at java.lang.reflect.Method.invoke(Method.java:515)
W/System.err( 7822): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)
W/System.err( 7822): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
W/System.err( 7822): 	at dalvik.system.NativeStart.main(Native Method)

I have no idea how we're handling files these days, and I think that's the main probelm with
out camera plugin.  Once we take the image and save it, the code just breaks, and it would
be good if we could somehow bundle some JUnit tests with this to make sure that the camera
actually stays working, since it's really brittle right now.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message