2011-12-01, 18:53
I have noticed that it seems that xbmc leaves a lot of open connections to mythbackend even after the idle timeout on my ubuntu machine.
After digging into it, it seems that the atomic ops for the ref counting don't seem to be working correctly. And there is also a missing db close too.
With this patch it does seem like it gets all the connections to close.
http://pastebin.com/DEt10BNJ
I can usually force the worst case by doing a rm -rf ".xbmc/userdata/Thumbnails/Video" to force a re-get of all the small files.
I don't understand why the atomic ops seem to work sometimes, but not others since I don't know x86 asm.
After digging into it, it seems that the atomic ops for the ref counting don't seem to be working correctly. And there is also a missing db close too.
With this patch it does seem like it gets all the connections to close.
http://pastebin.com/DEt10BNJ
I can usually force the worst case by doing a rm -rf ".xbmc/userdata/Thumbnails/Video" to force a re-get of all the small files.
I don't understand why the atomic ops seem to work sometimes, but not others since I don't know x86 asm.