﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	mlocked
9485	Backend deadlock in MainServer	Mike Rice <mikerice1969@…>	danielk	"My wife seems to have found a way to hang the backend.  I wasn't there but looking at the logs it appears she tried to play a recording where the file was missing.  

Am using:

From the frontend log:
{{{
2011-01-16 16:09:55.200 PlaybackBoxHelper Error: CHECK_AVAILABILITY 'myth://192.168.1.26:6543/5738_20091122115900.mpg' file not found
2011-01-16 16:09:55.200 MythSocket(ffffffffb1f9c478:43): write -> 43 123     MESSAGE[]:[]SYSTEM_EVENT PLAY_STARTED HOSTNAME mythfrontend2 CHANID 5738 STARTTIME 2009-11-22T11:59:00 SENDER mythfrontend2
2011-01-16 16:09:55.326 MythSocket(ffffffffb1f9c478:43): read  <- 43 2       OK
2011-01-16 16:09:55.379 MythSocket(ffffffffb1f9c478:43): write -> 43 60      MESSAGE[]:[]MASTER_UPDATE_PROG_INFO 5738 2009-11-22T11:59:00
2011-01-16 16:09:55.569 MythSocket(ffffffffb1f9c478:43): read  <- 43 2       OK
}}}
After a bit it gives up but it cannot re-connect to the backend:
{{{
2011-01-16 16:10:27.634 MythSocket(b5ecad0:56): readStringList: Error, timed out after 7000 ms.
2011-01-16 16:10:27.634 Remote file timeout.
2011-01-16 16:10:28.276 MythSocket(ffffffffb1f9c478:43): read  <- 43 6       0[]:[]
2011-01-16 16:10:28.277 PlaybackBoxHelper Error: CHECK_AVAILABILITY 'myth://192.168.1.26:6543/5738_20091122115900.mpg' file not found
2011-01-16 16:10:28.277 MythSocket(ffffffffb1f9c478:43): write -> 43 123     MESSAGE[]:[]SYSTEM_EVENT PLAY_STOPPED HOSTNAME mythfrontend2 CHANID 5738 STARTTIME 2009-11-22T11:59:00 SENDER mythfrontend2
2011-01-16 16:10:58.281 MythSocket(ffffffffb1f9c478:43): readStringList: Error, timed out after 30000 ms.
2011-01-16 16:10:58.281 Connection to backend server lost
2011-01-16 16:10:58.281 MythSocket(ad035c0:39): write -> 39 30      MYTH_PROTO_VERSION 63 3875641D
2011-01-16 16:11:05.285 MythSocket(ad035c0:39): readStringList: Error, timed out after 7000 ms.
2011-01-16 16:11:05.285 Protocol version check failure.
2011-01-16 16:11:05.285 Reconnection to backend server failed
}}}

I will attach the frontend and backend logs along with the stack trace for the backend when it was in this state.

If this only happens when trying to play a missing recording it is probably not a big deal since that is probably an anomaly. But I don't know if that's the case."	Bug Report - Hang/Deadlock	closed	blocker	0.25	MythTV - General	0.24-fixes	medium	Fixed			0
