2013-10-31, 01:36
(2013-10-30, 23:06)bradvido88 Wrote: After pruning textures with this script, I tried to run it again but I get this error regarding my Textures db:
However, neither XBMC nor SQLite Browser complain about the db file. They both open it just fine and can read it.Code:Traceback (most recent call last):
File "K:\scripts\TextureCache\texturecache.py", line 4479, in <module>
main(sys.argv[1:])
File "K:\scripts\TextureCache\texturecache.py", line 4384, in main
dirScan(removeOrphans=False)
File "K:\scripts\TextureCache\texturecache.py", line 3357, in dirScan
rows = database.getAllColumns().fetchall()
sqlite3.DatabaseError: database disk image is malformed
Any suggestions?
I've not got anything helpful, unfortunately, as I've not seen this before. Presumably the database was fine originally, then became corrupt during the prune? Was there a lot of concurrent database activity in XBMC at the time you were running the prune? How are you mounting/accessing the database file, is it being accessed across a network (NFS or SMB)?
You could try sending me your Textures13.db and I'll take a look, it might be interesting to see how jmarshalls recent JSON API commit handles your database.