Kodi Community Forum
Solved MythTV addon causing XBMC to use 100% cpu - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: PVR & Live TV Support (https://forum.kodi.tv/forumdisplay.php?fid=167)
+---- Forum: MythTV (https://forum.kodi.tv/forumdisplay.php?fid=170)
+---- Thread: Solved MythTV addon causing XBMC to use 100% cpu (/showthread.php?tid=150334)



MythTV addon causing XBMC to use 100% cpu - warrmr - 2013-01-01

I have noticed recently that xbmc is using 100% cpu, so did some investigating and found that if I disabled the mythtv pvr addon cpu usage would return to normal.

The mythbackend.log file sows a repeating error message

Code:
Jan  1 17:15:41 XBMC mythbackend[1549]: I ProcessRequest mainserver.cpp:1475 (HandleAnnounce) MainServer::HandleAnnounce FileTransfer
Jan  1 17:15:41 XBMC mythbackend[1549]: I ProcessRequest mainserver.cpp:1477 (HandleAnnounce) adding: XBMC as a remote file transfer
Jan  1 17:15:41 XBMC mythbackend[1549]: E ProcessRequest fileringbuffer.cpp:284 (OpenFile) FileRingBuf(/mnt/sdb1/mythtv/recordings/8704_20121229221800.mpg.png): OpenFile(): Could not open.

This message repeats ever minute and rotates the same 3 files.

http://paste.ubuntu.com/1485708/


RE: MythTV addon causing XBMC to use 100% cpu - timboNZ - 2013-01-03

Hate doing this... I have the same problem...

I was blaming openELEC on my AppleTV but I've also confirmed it as happening from my mythbuntu 12.04 system with nightly xbmc and my android Nexus4.

With the openELEC box after some time it would become completely unresponsive, disable PVR function all is good with it, be backend is on my server which has greater load because of these messages, especially with more than one front end connected...

You'll see the .png file is actually missing along with other thumbnails but the problem seems that it's flooding the backend with the "HandleAnnounce", my logs show this as happening many times a second...

Tim


RE: MythTV addon causing XBMC to use 100% cpu - fetzerch - 2013-01-03

(2013-01-01, 23:27)warrmr Wrote: I have noticed recently that xbmc is using 100% cpu, so did some investigating and found that if I disabled the mythtv pvr addon cpu usage would return to normal.

The mythbackend.log file sows a repeating error message

Code:
Jan  1 17:15:41 XBMC mythbackend[1549]: I ProcessRequest mainserver.cpp:1475 (HandleAnnounce) MainServer::HandleAnnounce FileTransfer
Jan  1 17:15:41 XBMC mythbackend[1549]: I ProcessRequest mainserver.cpp:1477 (HandleAnnounce) adding: XBMC as a remote file transfer
Jan  1 17:15:41 XBMC mythbackend[1549]: E ProcessRequest fileringbuffer.cpp:284 (OpenFile) FileRingBuf(/mnt/sdb1/mythtv/recordings/8704_20121229221800.mpg.png): OpenFile(): Could not open.

This message repeats ever minute and rotates the same 3 files.

http://paste.ubuntu.com/1485708/

Can you please try to build the addon from the development repository github.com/fetzerch/xbmc-pvr-addons - http://wiki.xbmc.org/index.php?title=PVR/Backend/MythTV/BuildFromSource
This contains a fix for of our image caching mechanism. Please let me know if it works for you.




RE: MythTV addon causing XBMC to use 100% cpu - warrmr - 2013-01-03

Thanks both,

Timbo you are correct the PNG file was missing, I had found a script that created the missing thumbs but that lasted all of 10 mins before it broke again.

cfetzer- Will try building from source and report back.

Thanks again.


RE: MythTV addon causing XBMC to use 100% cpu - twojciac - 2013-01-05

Can anyone share their recent build? I'm not a windows guy, but am running this on a windows platform. I assume if I build on linux, it won't make the necessary DLLs.


RE: MythTV addon causing XBMC to use 100% cpu - warrmr - 2013-01-06

Thanks cfetzer, compiling the latest build resolved the issue.

twojciac I can send you a copy of the MythTV plugin that I compiled but I doubt it would work on a windows box. The link that cfetzer posted shows how to compile on both windows and linux.


RE: MythTV addon causing XBMC to use 100% cpu - twojciac - 2013-01-11

I looked at my logs and saw some missing channel icons. I downloaded the appropriate icons and now have none missing, and as such my log is no longer being flooded with missing icon messages. Since resolving the icon issue, I am no longer seeing slow motion video and buffering using the cmyth addon.