[mythtv] mythbackend CPU goes nuts after viewing recorded previews in mythweb

Chris White chris at ballisticcats.com
Wed Dec 19 23:07:26 UTC 2007



I'm seeing the following with [15188] in SVN. I've been seeing it  
since [15129]. What happens is that sometimes (not always, but > 75%  
of the time) when I enter mythweb to view recorded programs, it takes  
a very long time to display. Eventually the webpage comes up fine, but  
forever after that mythbackend is taking huge CPU, sometimes 99% of  
both cores. It never recovers. Here's what I see in the log:

2007-12-19 13:57:52.603 Connected to database 'mythconverg' at host:  
localhost
2007-12-19 13:57:52.604 Current Schema Version: 1202
2007-12-19 13:57:52.606 New DB connection, total: 2
2007-12-19 13:57:52.607 Connected to database 'mythconverg' at host:  
localhost
2007-12-19 13:57:55.083 AFD: Opened codec 0x82af9b0, id(MPEG2VIDEO)  
type(Video)
2007-12-19 13:57:55.084 AFD: Opened codec 0x82b0190, id(MP2) type(Audio)
2007-12-19 13:57:55.146 Preview: Grabbed preview '/myth/tv/ 
1009_20071219130000.mpg' 720x480 at 64s
QSocketDevice::writeBlock: Invalid socket
2007-12-19 13:57:55.335 Using runtime prefix = /usr
2007-12-19 13:57:55.338 Empty LocalHostName.
2007-12-19 13:57:55.338 Using localhost value of mythtv
2007-12-19 13:58:05.923 HttpComms::Timeout for url: http://192.168.0.19:6544/Myth
2007-12-19 13:58:05.936 HttpComms::done() - NetworkOperation Error on  
Finish: Request aborted (1): url: 'http://192.168.0.19:6544/Myth'
QBuffer::readBlock: Null pointer error
Could not read enough bytes from the device
2007-12-19 13:58:05.960 MythXMLClient::GetConnectionInfo Failed - (1)  
unexpected end of file
2007-12-19 13:58:05.961 Cannot connect to defalt backend via UPnP.  
Wrong saved PIN?
2007-12-19 13:58:05.972 New DB connection, total: 1
2007-12-19 13:58:05.977 Connected to database 'mythconverg' at host:  
localhost
2007-12-19 13:58:05.978 Closing DB connection named 'DBManager0'
2007-12-19 13:58:05.978 Deleting UPnP client...
2007-12-19 13:58:06.642 Connected to database 'mythconverg' at host:  
localhost
2007-12-19 13:58:06.644 Current Schema Version: 1202
2007-12-19 13:58:06.646 New DB connection, total: 2
2007-12-19 13:58:06.647 Connected to database 'mythconverg' at host:  
localhost
2007-12-19 13:58:06.820 AFD: Opened codec 0x82afa90, id(MPEG2VIDEO)  
type(Video)
2007-12-19 13:58:06.821 AFD: Opened codec 0x8335780, id(MP2) type(Audio)
2007-12-19 13:58:07.089 Preview: Grabbed preview '/myth/tv/ 
1182_20071219120000.mpg' 720x480 at 64s
QSocketDevice::writeBlock: Invalid socket
2007-12-19 13:58:39.002 MainServer::HandleAnnounce Monitor
2007-12-19 13:58:39.003 adding: mythtv as a client (events: 0)
2007-12-19 13:59:17.451 Using runtime prefix = /usr
2007-12-19 13:59:17.458 Empty LocalHostName.
2007-12-19 13:59:17.458 Using localhost value of mythtv
2007-12-19 13:59:17.823 Cannot find default UPnP backend
2007-12-19 13:59:17.835 New DB connection, total: 1
2007-12-19 13:59:17.839 Connected to database 'mythconverg' at host:  
localhost
2007-12-19 13:59:17.840 Closing DB connection named 'DBManager0'
2007-12-19 13:59:17.841 Deleting UPnP client...
2007-12-19 13:59:18.447 Connected to database 'mythconverg' at host:  
localhost
2007-12-19 13:59:18.448 Current Schema Version: 1202
Starting up as the master server.
2007-12-19 13:59:18.453 New DB connection, total: 2
2007-12-19 13:59:18.454 Connected to database 'mythconverg' at host:  
localhost
2007-12-19 13:59:18.458 New DB connection, total: 3
2007-12-19 13:59:18.458 Connected to database 'mythconverg' at host:  
localhost
motion: no process killed
2007-12-19 13:59:19.482 ret_pid(1926) child(1926) status(0x0)
2007-12-19 13:59:19.493 External Tuning program exited with no error
2007-12-19 13:59:19.641 New DB scheduler connection
2007-12-19 13:59:19.641 Connected to database 'mythconverg' at host:  
localhost
2007-12-19 13:59:20.906 Main::Registering HttpStatus Extension
2007-12-19 13:59:20.907 mythbackend version: 0.21.20071211-1 www.mythtv.org

Any hints?

Thanks!
-Chris




More information about the mythtv-dev mailing list