W/cursorwindow (25503): Window is full:requested allocation 5583269 bytes, free space 2096639 bytes

Source: Internet
Author: User

When using Sqlitedatabase to insert data, Android throws the following exception:

W/cursorwindow (25503): window is full:requested allocation 5583269 bytes, free space 2096639 bytes, window size 2097152 b Ytes

E/cursorwindow (25503): Failed to read row 0, column 1 from a cursorwindow which have 0 rows, 5 columns.
W/system.err (25503): java.lang.IllegalStateException:Couldn ' t read row 0, col 1 from Cursorwindow. Make sure the Cursor was initialized correctly before accessing data from it.
W/system.err (25503): at android.database.CursorWindow.nativeGetString (Native Method)
W/system.err (25503): at android.database.CursorWindow.getString (cursorwindow.java:442)
W/system.err (25503): at Android.database.AbstractWindowedCursor.getString (Abstractwindowedcursor.java : 51)

WORKAROUND: If the database table field value exceeds 2M, then the value exists in the file and the file path exists in this field.


Reference:

Http://stackoverflow.com/questions/21432556/android-java-lang-illegalstateexception-couldnt-read-row-0-col-0-from-cursorw

http://blog.csdn.net/yuxiaohui78/article/details/39096151


W/cursorwindow (25503): Window is full:requested allocation 5583269 bytes, free space 2096639 bytes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.