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/10/01 23:46:24 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=13783389#comment-13783389 ] 

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

Commit 5550ec8f2c9d3707642d729769b9ead9e4dec1b5 in branch refs/heads/2.9.x from [~bowserj]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-android.git;h=5550ec8 ]

CB-4633: Backporting to Android 2.9.x


> 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 was sent by Atlassian JIRA
(v6.1#6144)