Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[crash] android.database.CursorWindowAllocationException #30

Closed
manasouza opened this issue Apr 3, 2018 · 4 comments
Closed

[crash] android.database.CursorWindowAllocationException #30

manasouza opened this issue Apr 3, 2018 · 4 comments
Labels
Milestone

Comments

@manasouza
Copy link
Owner

Android 8.0
Nokia 5
2048MB
Qualcomm MSM8937 (Snapdragon 430)
8x ARM Cortex-A53 (1400 Mhz)

java.lang.RuntimeException: 
 
  at android.os.AsyncTask$3.done (AsyncTask.java:353)
 
  at java.util.concurrent.FutureTask.finishCompletion (FutureTask.java:383)
 
  at java.util.concurrent.FutureTask.setException (FutureTask.java:252)
 
  at java.util.concurrent.FutureTask.run (FutureTask.java:271)
 
  at android.os.AsyncTask$SerialExecutor$1.run (AsyncTask.java:245)
 
  at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1162)
 
  at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:636)
 
  at java.lang.Thread.run (Thread.java:764)
Caused by: android.database.CursorWindowAllocationException: 
 
  at android.database.CursorWindow.<init> (CursorWindow.java:137)
 
  at android.database.CursorWindow.<init> (Unknown Source)
 
  at android.database.CursorWindow$1.createFromParcel (CursorWindow.java:685)
 
  at android.database.CursorWindow$1.createFromParcel (CursorWindow.java:684)
 
  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:31)
 
  at android.content.ContentProviderProxy.query (ContentProviderNative.java:421)
 
  at android.content.ContentResolver.query (ContentResolver.java:756)
 
  at android.content.ContentResolver.query (ContentResolver.java:705)
 
  at android.content.ContentResolver.query (ContentResolver.java:663)
 
  at br.com.mls.contactnumbersearch.NumberSearchActivity.getPhoneContactList (NumberSearchActivity.java:198)
 
  at br.com.mls.contactnumbersearch.NumberSearchActivity$2.doInBackground (NumberSearchActivity.java:101)
 
  at br.com.mls.contactnumbersearch.NumberSearchActivity$2.doInBackground (NumberSearchActivity.java:93)
 
  at android.os.AsyncTask$2.call (AsyncTask.java:333)
 
  at java.util.concurrent.FutureTask.run (FutureTask.java:266)
@manasouza manasouza added this to the Release 3 milestone Apr 8, 2018
@manasouza
Copy link
Owner Author

Try to reproduce this when the available phone memory is low with lots of contact registries

@manasouza
Copy link
Owner Author

Recent:

  • Infinix HOT 6 Pro (Infinix-X608), Android 8.0

@manasouza
Copy link
Owner Author

Linked to #38 in code:

 
  at br.com.mls.contactnumbersearch.NumberSearchActivity.getPhoneContactList (NumberSearchActivity.java:198)
 
  at br.com.mls.contactnumbersearch.NumberSearchActivity$2.doInBackground (NumberSearchActivity.java:101)
 
  at br.com.mls.contactnumbersearch.NumberSearchActivity$2.doInBackground (NumberSearchActivity.java:93)

@manasouza manasouza modified the milestones: Release 3, Release 4 Oct 15, 2018
@manasouza
Copy link
Owner Author

A conclusion after looking at this issue: https://stackoverflow.com/questions/14316082/cursor-window-could-not-be-created-from-binder

was that probably there's the need to close the cursor after all operation, to avoid some kind of memory leak

@manasouza manasouza removed the test label Jan 4, 2019
@manasouza manasouza changed the title android.database.CursorWindowAllocationException [crash] android.database.CursorWindowAllocationException Jan 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant