You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2013/09/04 20:34:53 UTC

[jira] [Commented] (CB-4633) org.apache.cordova.CameraLauncher.checkForDuplicateImage Shold close the cursor

    [ https://issues.apache.org/jira/browse/CB-4633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13758138#comment-13758138 ] 

ASF subversion and git services commented on CB-4633:
-----------------------------------------------------

Commit f33e00083a853594c5ea0154ae339b87eb677454 in branch refs/heads/dev from [~bowserj]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-camera.git;h=f33e000 ]

CB-4633: We really should close cursors.  It's just the right thing to do.

                
> org.apache.cordova.CameraLauncher.checkForDuplicateImage Shold close the cursor
> -------------------------------------------------------------------------------
>
>                 Key: CB-4633
>                 URL: https://issues.apache.org/jira/browse/CB-4633
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 3.0.0
>         Environment: win7 android4.0 phonegap3.0
>            Reporter: Aliceljm.liu
>            Assignee: Joe Bowser
>
> When i use the FileTransfer to upload a camera picture  the eclipse logcat show that。 error.
> 05-21 09:20:18.845: E/CursorLeakDetecter(27413): PossibleCursorLeak:content://media/external/images/media,QueryCounter:6
> 05-21 09:20:18.845: E/CursorLeakDetecter(27413): android.database.sqlite.DatabaseObjectNotClosedException: Application did not close the cursor or database object that was opened here
> 05-21 09:20:18.845: E/CursorLeakDetecter(27413):         at android.content.ContentResolver.query(ContentResolver.java:397)
> 05-21 09:20:18.845: E/CursorLeakDetecter(27413):         at android.content.ContentResolver.query(ContentResolver.java:314)
> 05-21 09:20:18.845: E/CursorLeakDetecter(27413):         at org.apache.cordova.CameraLauncher.queryImgDB(CameraLauncher.java:684)
> 05-21 09:20:18.845: E/CursorLeakDetecter(27413):         at org.apache.cordova.CameraLauncher.checkForDuplicateImage(CameraLauncher.java:723)
> 05-21 09:20:18.845: E/CursorLeakDetecter(27413):         at org.apache.cordova.CameraLauncher.cleanup(CameraLauncher.java:704)
> 05-21 09:20:18.845: E/CursorLeakDetecter(27413):         at org.apache.cordova.CameraLauncher.onActivityResult(CameraLauncher.java:363)
> 05-21 09:20:18.845: E/CursorLeakDetecter(27413):         at org.apache.cordova.DroidGap.onActivityResult(DroidGap.java:864)
> 05-21 09:20:18.845: E/CursorLeakDetecter(27413):         at android.app.Activity.dispatchActivityResult(Activity.java:5223)
> 05-21 09:20:18.845: E/CursorLeakDetecter(27413):         at android.app.ActivityThread.deliverResults(ActivityThread.java:3301)
> 05-21 09:20:18.845: E/CursorLeakDetecter(27413):         at android.app.ActivityThread.handleSendResult(ActivityThread.java:3348)
> 05-21 09:20:18.845: E/CursorLeakDetecter(27413):         at android.app.ActivityThread.access$1100(ActivityThread.java:149)
> 05-21 09:20:18.845: E/CursorLeakDetecter(27413):         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1348)
> 05-21 09:20:18.845: E/CursorLeakDetecter(27413):         at android.os.Handler.dispatchMessage(Handler.java:99)
> 05-21 09:20:18.845: E/CursorLeakDetecter(27413):         at android.os.Looper.loop(Looper.java:153)
> 05-21 09:20:18.845: E/CursorLeakDetecter(27413):         at android.app.ActivityThread.main(ActivityThread.java:5108)
> 05-21 09:20:18.845: E/CursorLeakDetecter(27413):         at java.lang.reflect.Method.invokeNative(Native Method)
> 05-21 09:20:18.845: E/CursorLeakDetecter(27413):         at java.lang.reflect.Method.invoke(Method.java:511)
> 05-21 09:20:18.845: E/CursorLeakDetecter(27413):         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:989)
> 05-21 09:20:18.845: E/CursorLeakDetecter(27413):         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:747)
> 05-21 09:20:18.845: E/CursorLeakDetecter(27413):         at dalvik.system.NativeStart.main(Native Method)
> 05-21 09:20:18.861: W/CursorWrapperInner(27413): Cursor finalized without prior close()
> 05-21 09:20:18.863: W/CursorWrapperInner(27413): Cursor finalized without prior close()
> 05-21 09:20:18.864: W/ActivityThread(27413): Duplicate remove pending of provider com.android.providers.media.MediaProvider

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira