[
https://issues.apache.org/jira/browse/CB-9630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15000469#comment-15000469
]
Vladimir Kotikov commented on CB-9630:
--------------------------------------
Hey, [~mcassidygamma]. The description sounds very similar to what was fixed in
https://issues.apache.org/jira/browse/CB-9728.
Could you please try the latest plugin version from master to confirm that the
issue doesn't exists anymore?
> CursorWindowAllocationException
> -------------------------------
>
> Key: CB-9630
> URL: https://issues.apache.org/jira/browse/CB-9630
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Contacts
> Reporter: Martin Cassidy
> Labels: Android, android, triaged
>
> Whilst running a contacts lookup (with many 1000s of auto generated contacts
> as I'm testing performance) I experienced the following exception:
> android.database.CursorWindowAllocationException: Cursor window could not be
> created from binder
> {code}
> android.database.CursorWindowAllocationException: Cursor window could not
> be created from binder.
> at android.database.CursorWindow.<init>(CursorWindow.java:150)
> at android.database.CursorWindow.<init>(CursorWindow.java:42)
> at
> android.database.CursorWindow$1.createFromParcel(CursorWindow.java:698)
> at
> android.database.CursorWindow$1.createFromParcel(CursorWindow.java:696)
> at
> android.database.BulkCursorDescriptor.readFromParcel(BulkCursorDescriptor.java:75)
> at
> android.database.BulkCursorDescriptor$1.createFromParcel(BulkCursorDescriptor.java:34)
> at
> android.database.BulkCursorDescriptor$1.createFromParcel(BulkCursorDescriptor.java:30)
> at
> android.content.ContentProviderProxy.query(ContentProviderNative.java:423)
> at android.content.ContentResolver.query(ContentResolver.java:484)
> at android.content.ContentResolver.query(ContentResolver.java:428)
> at
> org.apache.cordova.contacts.ContactAccessorSdk5.photoQuery(ContactAccessorSdk5.java:910)
> at
> org.apache.cordova.contacts.ContactAccessorSdk5.populateContactArray(ContactAccessorSdk5.java:439)
> at
> org.apache.cordova.contacts.ContactAccessorSdk5.search(ContactAccessorSdk5.java:271)
> at
> org.apache.cordova.contacts.ContactManager$1.run(ContactManager.java:93)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
> at java.lang.Thread.run(Thread.java:818)
> {code}
> From the following post, I can see why:
> http://stackoverflow.com/questions/14316082/cursor-window-could-not-be-created-from-binder
> {code}photoCursor.close();{code} is being called only when the cursor is not
> empty. I've made an update to my copy but though I should report it as well.
> I only started to notice after upgrading a device to 5.0.1 (have devices on
> older android versions that are ok)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]