Cursor window: window is full

后端 未结 3 659
北恋
北恋 2020-12-14 06:25

I\'ve created a ListView populated by the data returned from a query.
It works, but in the LogCat I\'ve got the message:

Cursor Window: Window is full: r         


        
3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-14 07:12

    I also got this problem. In my case I saved a 2.2 MB image in database. When loading the data from the database using Cursor.getBlob() I would see this message in the Log:

    CursorWindow: Window is full: requested allocation 2202504 bytes, free space 2076560 bytes, window size 2097152 bytes
    

    After I would get this message if I try to retrieve any data (String, number, etc) for successive rows it is returned as null without any errors. The solution was to remove the 2.2 MB blob. I don't know if it's possible to load bigger blobs from database in Android.

提交回复
热议问题