Com.couchbase.lite.CouchbaseLiteException: read failed: EBADF (Bad file number) + Document.update - java.lang.NullPointerException

Hello @hideki,

I need your help on 2 informations please :

  • I read on github ticket that the issue is identified, and will be fixed on 1.2.0 GW. Is it correct ? Do you have a release date ?

  • On Android devices, the app using CBLite is constantly growing and it reach 500MBin 1 month (app is 25MB at install).
    I opened a topic here : Local database size growing - size is 5 times more than CB server

Also i investigated today on devices file system with adb, i noticed that the local db’s size myApp.cblite is “normal” (30MB).
But there is a folder called myApp attachments and it takes the remaining 470 MB .

And as i say in the topic i linked…compacting local db produces this message :

17:26:51.354 7532-7604/net.xxxxxE/BlobStore: Error deleting attachment: /data/data/net.xxxxx/files/appdb attachments/temp_attachments

What’s your opinon on this ?

  • In your BlobStore Class, i see a method : public int deleteBlobsExceptWithKeys(List<BlobKey> keysToKeep)

Is it safe to use this to empty attachments folder ?

Thanks