esp32_arduino_sqlite3_lib icon indicating copy to clipboard operation
esp32_arduino_sqlite3_lib copied to clipboard

SQLite Database Disk Image is Malformed

Open reshma26994 opened this issue 3 years ago • 2 comments

i am using https://github.com/siara-cc/esp32_arduino_sqlite3_lib for store my data in SPIFFS of ESP32 but after some insertion of data i got error of SQLite Database Disk Image is Malformed .........................please give me response as soon as possible

reshma26994 avatar Sep 09 '21 07:09 reshma26994

This is an issue with the SPIFFS file system. I started out using this library on SPIFFS and was getting Disk Image Malformed errors all over the place. I switched to LITTLEFS, which is a drop in replacement, and the errors just went away.

https://github.com/lorol/LITTLEFS

mr-wiggle avatar Sep 09 '21 12:09 mr-wiggle

If it helps, my db kept getting Malformed error when deleting data, and to fix i had to go down back to the esp 1.0.6 board lib. The 2.4 lib seemed to have caused it on SD card management side.

PaulDK89 avatar Aug 08 '22 13:08 PaulDK89