Solved MythTV addon causing XBMC to use 100% cpu
#1
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/
HTPC
XBMC v12 RC3 with myth TV backend || AMD Sempron 145 || 1gb DDR3 || ECS MCP61M-M3 Version 3 ( no core unlocker) || TBS6981 DVB-S2 tuner || ATI Radeon HD 5450 || 32gb Crucial SSD

NAS
IB-NAS4220-B HW revision 1.2 || 2x 1TB HDD RAID 1 || Open WRT firmware.
Reply
#2
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
Reply
#3
(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...FromSource
This contains a fix for of our image caching mechanism. Please let me know if it works for you.

Reply
#4
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.
HTPC
XBMC v12 RC3 with myth TV backend || AMD Sempron 145 || 1gb DDR3 || ECS MCP61M-M3 Version 3 ( no core unlocker) || TBS6981 DVB-S2 tuner || ATI Radeon HD 5450 || 32gb Crucial SSD

NAS
IB-NAS4220-B HW revision 1.2 || 2x 1TB HDD RAID 1 || Open WRT firmware.
Reply
#5
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.
Reply
#6
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.
HTPC
XBMC v12 RC3 with myth TV backend || AMD Sempron 145 || 1gb DDR3 || ECS MCP61M-M3 Version 3 ( no core unlocker) || TBS6981 DVB-S2 tuner || ATI Radeon HD 5450 || 32gb Crucial SSD

NAS
IB-NAS4220-B HW revision 1.2 || 2x 1TB HDD RAID 1 || Open WRT firmware.
Reply
#7
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.
Reply

Logout Mark Read Team Forum Stats Members Help
MythTV addon causing XBMC to use 100% cpu0