Kodi Community Forum

Full Version: [patch] cmyth leaks?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
Which version of xbmc do you use?
git://github.com/xbmc/xbmc
Hmm sorry my mistake. I forgot to change a 0x1 to -0x1 when I updated the atomic_decrement code. See https://github.com/tsp/xbmc/commit/dbdcd...ec7a4fe623
for the fix
How about the db connection leak fix in the patch?
Is also working thanks. I will push the fixes to mainline.