Kodi Community Forum

Full Version: Banners downloaded repeatedly (cache unused)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
UPDATE: Missed a mysql error in the log. Removed all .db files on the ATV2 and restarted it, and now it works again.

My ATV2 is suddently acting weird. Movie and TV Show banners are downloaded from TVDB over and over again. I have verified that the cached thumbnails are generated on the ATV2, and logs says so too. Running XBMC Frodo 12.2.

I did the following procedure to show the problem:
10. Go to TV Shows. All thumbnails are loaded slowly, my http proxy confirms the media is requested from TVDB.
20. Press up on the remote, to go to the bottom of the TV-Shows. Again, banners are requested from TVDB.
30. Press down on the remote, to go to the top of the TV-Shows. All banners are again requested from TVDB.
40. Goto 20.

Log:
http://xbmclogs.com/show.php?id=57939

As an example from the log, we can see it keeps caching the exact same image:

Code:
21:46:32 T:132472832   DEBUG: CurlFile::Open(0x1fd5edc0) http://thetvdb.com/banners/graphical/74372-g.jpg
...
21:46:33 T:132472832   DEBUG: Caching image 'http://thetvdb.com/banners/graphical/74372-g.jpg' to 'c/ca827b7b.jpg':
21:46:33 T:132472832   DEBUG: cached image 'special://masterprofile/Thumbnails/c/ca827b7b.jpg' size 758x140
.....
21:46:48 T:805064704   DEBUG: CurlFile::Open(0x1fe9cc80) http://thetvdb.com/banners/graphical/74372-g.jpg
...
21:46:48 T:805064704   DEBUG: Caching image 'http://thetvdb.com/banners/graphical/74372-g.jpg' to 'c/ca827b7b.jpg':
21:46:48 T:805064704   DEBUG: cached image 'special://masterprofile/Thumbnails/c/ca827b7b.jpg' size 758x140
.....
21:47:12 T:805064704   DEBUG: CurlFile::Open(0x1fbda1b0) http://thetvdb.com/banners/graphical/74372-g.jpg
...
21:47:12 T:805064704   DEBUG: Caching image 'http://thetvdb.com/banners/graphical/74372-g.jpg' to 'c/ca827b7b.jpg':
21:47:12 T:805064704   DEBUG: cached image 'special://masterprofile/Thumbnails/c/ca827b7b.jpg' size 758x140

System info/Storage shows /dev/disk0s1s1 (/) has 54% use, and /dev/disk0s1s2 (/private/var) has 30% use.

Not sure when it started, might have taken me a while to notice it. Any idea?

UPDATE:

Oh...

Code:
21:46:18 T:92651520   ERROR: SQL: The database disk image is malformed
                                            Query: PRAGMA cache_size=4096
21:46:18 T:92651520   ERROR: Connect failed with 'SQL: The database disk image is malformed
                                            Query: PRAGMA cache_size=4096
                                          
                                            '
21:46:18 T:92651520   ERROR: SQL: The database disk image is malformed
                                            Query: PRAGMA default_cache_size=4096
21:46:18 T:92651520   ERROR: Connect failed with 'SQL: The database disk image is malformed
                                            Query: PRAGMA default_cache_size=4096
                                          
                                            '
21:46:18 T:92651520   ERROR: Unable to create new database