TV Server Crashing :( (1 Viewer)

Dave Reynolds

MP Donator
  • Premium Supporter
  • February 23, 2012
    59
    18
    44
    Home Country
    United Kingdom United Kingdom
    Hi,

    I keep getting intermittent TV Server crashes for no reason whatsoever, it started about a week ago, I've done 3 re-installs since. Their is no timing to it, the TV Server is idle when it happens.

    I have a single seat setup with no other mediaportal installations on the network.

    I am using 1.3Beta with DJ Blu's Sky plugin, and Mini Display.

    The issue appears to be around the re-occurring log entry:

    Code:
    2013-01-11 06:10:59.952812 [UpdateIconThread(29)]: TvServer: Failed to execute remote TV server operation (IsAnyCardRecording) Object reference not set to an instance of an object.

    Full logs attached,

    Any advise would be appreciated.

    Dave.
     

    georgius

    Retired Team Member
  • Premium Supporter
  • October 31, 2010
    1,376
    654
    Bratislava
    Home Country
    Slovakia Slovakia
    Check if service TvService is running. By logs it seems that it crashed and didn't started.
     

    Dave Reynolds

    MP Donator
  • Premium Supporter
  • February 23, 2012
    59
    18
    44
    Home Country
    United Kingdom United Kingdom
    Check if service TvService is running. By logs it seems that it crashed and didn't started.

    Hi,

    Thanks for the reply,

    In this case the machine had just started up again and crashed within a few seconds, The TVServer can run for day's and then the issue occurs, their is no pattern to it.

    Dave.
     

    Dave Reynolds

    MP Donator
  • Premium Supporter
  • February 23, 2012
    59
    18
    44
    Home Country
    United Kingdom United Kingdom
    Hi,

    Today, the log file is 85MB from this morning, and contains the same text constantly i'm at a loss ??????



    Code:
    2013-01-11 16:22:55.381307 [TvClient-TvHome: HeartBeat transmitter thread(21)]: TvServer: Failed to execute remote TV server operation (CardByIndex) No connection could be made because the target machine actively refused it 10.0.30.200:31456
    2013-01-11 16:22:55.425310 [UpdateIconThread(23)]: TvServer: Failed to execute remote TV server operation (IsAnyCardRecording) Object reference not set to an instance of an object.
    2013-01-11 16:22:55.426310 [MiniDisplay(12)]: TvServer: Failed to execute remote TV server operation (IsAnyCardRecording) Object reference not set to an instance of an object.
    2013-01-11 16:22:56.638379 [UpdateIconThread(23)]: TvServer: Failed to execute remote TV server operation (IsAnyCardRecording) Object reference not set to an instance of an object.
    2013-01-11 16:22:57.648437 [MiniDisplay(12)]: TvServer: Failed to execute remote TV server operation (IsAnyCardRecording) Object reference not set to an instance of an object.
    2013-01-11 16:22:58.660495 [UpdateIconThread(23)]: TvServer: Failed to execute remote TV server operation (IsAnyCardRecording) Object reference not set to an instance of an object.
    2013-01-11 16:22:59.672553 [MiniDisplay(12)]: TvServer: Failed to execute remote TV server operation (IsAnyCardRecording) Object reference not set to an instance of an object.
    2013-01-11 16:23:02.677725 [UpdateIconThread(23)]: TvServer: Failed to execute remote TV server operation (IsAnyCardRecording) The operation has timed out after 3000.
    2013-01-11 16:23:03.678782 [MiniDisplay(12)]: TvServer: Failed to execute remote TV server operation (IsAnyCardRecording) The operation has timed out after 3000.
    2013-01-11 16:23:05.687897 [UpdateIconThread(23)]: TvServer: Failed to execute remote TV server operation (IsAnyCardRecording) Object reference not set to an instance of an object.
    2013-01-11 16:23:08.683068 [TvClient-TvHome: HeartBeat transmitter thread(21)]: TvServer: Failed to execute remote TV server operation (CardByIndex) No connection could be made because the target machine actively refused it 10.0.30.200:31456
    2013-01-11 16:23:12.695298 [TvClient-TvHome: HeartBeat transmitter thread(21)]: TvServer: Failed to execute remote TV server operation (IsAnyCardRecording) Object reference not set to an instance of an object.
    2013-01-11 16:23:14.708413 [TvClient-TvHome: HeartBeat transmitter thread(21)]: TvServer: Failed to execute remote TV server operation (IsAnyCardRecording) Object reference not set to an instance of an object.
     

    gurken

    MP Donator
  • Premium Supporter
  • August 7, 2009
    954
    105
    Home Country
    Austria Austria
    tvservice.exe is not running - try to start the service manually
     

    gijoe73

    MP Donator
  • Premium Supporter
  • April 29, 2011
    192
    14
    Home Country
    Germany Germany
    Maybe your SQL database is corrupted. Try to repair it with mysqlchk or use this batch script (Thx to Lehmden for this)

    cd c:\Program Files\MySQL\MySQL Server 5.1\bin
    mysqlcheck.exe -u root -pMediaPortal --auto-repair --all-databases

    Maybe you've to execute this as Admin. I've copied to Autostart so every time my HTPC reboots, the script will be executed.
     

    georgius

    Retired Team Member
  • Premium Supporter
  • October 31, 2010
    1,376
    654
    Bratislava
    Home Country
    Slovakia Slovakia
    This is the reason why TV service crashed:
    Code:
    Tvservice stopped due to an unhandled app domain exception System.IO.FileNotFoundException: Could not find file 'C:\ProgramData\Team MediaPortal\MediaPortal TV Server\timeshiftbuffer\Custom_217.ts'.
    File name: 'C:\ProgramData\Team MediaPortal\MediaPortal TV Server\timeshiftbuffer\Custom_217.ts'
      at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
      at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
      at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
      at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync)
      at Custom_Data_Grabber.CustomDataGRabber.ProcessPackets(String Filename)
      at Custom_Data_Grabber.CustomDataGRabber.GrabData1(Object[] ChannelID1)
      at Custom_Data_Grabber.CustomDataGRabber._Lambda$__1(Object a0)
      at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
      at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
      at System.Threading.ThreadHelper.ThreadStart(Object obj)
    Something called CustomDataGRabber is doing some suspicious work. Just disable/remove this plugin.
     

    Dave Reynolds

    MP Donator
  • Premium Supporter
  • February 23, 2012
    59
    18
    44
    Home Country
    United Kingdom United Kingdom
    This is the reason why TV service crashed:
    Code:
    Tvservice stopped due to an unhandled app domain exception System.IO.FileNotFoundException: Could not find file 'C:\ProgramData\Team MediaPortal\MediaPortal TV Server\timeshiftbuffer\Custom_217.ts'.
    File name: 'C:\ProgramData\Team MediaPortal\MediaPortal TV Server\timeshiftbuffer\Custom_217.ts'
      at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
      at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
      at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
      at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync)
      at Custom_Data_Grabber.CustomDataGRabber.ProcessPackets(String Filename)
      at Custom_Data_Grabber.CustomDataGRabber.GrabData1(Object[] ChannelID1)
      at Custom_Data_Grabber.CustomDataGRabber._Lambda$__1(Object a0)
      at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
      at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
      at System.Threading.ThreadHelper.ThreadStart(Object obj)
    Something called CustomDataGRabber is doing some suspicious work. Just disable/remove this plugin.

    Thank you for looking, I did another reload from scratch and seemed to stablise it now good to know for the future :)
     

    toricred

    MP Donator
  • Premium Supporter
  • August 29, 2006
    151
    14
    Home Country
    United States of America United States of America
    I am trying to install this on Windows 8 and I can't get my TV Service to start either. I have the firewall turned off, and the error is:

    Code:
    2013-01-20 13:37:03.344560 [SetupTv(1)]: ServiceHelper: Check whether the tvservice is running failed. Please check your installation.
    Error: System.InvalidOperationException: Service TvService was not found on computer '.'. ---> System.ComponentModel.Win32Exception: The specified service does not exist as an installed service
      --- End of inner exception stack trace ---
      at System.ServiceProcess.ServiceController.GenerateNames()
      at System.ServiceProcess.ServiceController.get_ServiceName()
      at System.ServiceProcess.ServiceController.GenerateStatus()
      at System.ServiceProcess.ServiceController.get_Status()
      at SetupTv.ServiceHelper.get_IsRunning()
    2013-01-20 13:37:04.941079 [SetupTv(1)]: ServiceHelper: Starting TvService failed. Please check your installation.
    Error: System.InvalidOperationException: Service TvService was not found on computer '.'. ---> System.ComponentModel.Win32Exception: The specified service does not exist as an installed service
      --- End of inner exception stack trace ---
      at System.ServiceProcess.ServiceController.GenerateNames()
      at System.ServiceProcess.ServiceController.get_ServiceName()
      at System.ServiceProcess.ServiceController.GenerateStatus()
      at System.ServiceProcess.ServiceController.get_Status()
      at SetupTv.ServiceHelper.Start(String aServiceName)
    2013-01-20 13:37:05.051183 [SetupTv(1)]: Failed to wait for Global\MPTVServiceInitializedEvent
    2013-01-20 13:37:05.053185 [SetupTv(1)]: Exception  :System.Threading.WaitHandleCannotBeOpenedException: No handle of the given name exists.
      at System.Threading.EventWaitHandle.OpenExisting(String name, EventWaitHandleRights rights)
      at SetupTv.ServiceHelper.WaitInitialized(Int32 millisecondsTimeout)
     
    2013-01-20 13:37:23.631555 [SetupTv(1)]: Failed to wait for Global\MPTVServiceInitializedEvent
    2013-01-20 13:37:23.633558 [SetupTv(1)]: Exception  :System.Threading.WaitHandleCannotBeOpenedException: No handle of the given name exists.
      at System.Threading.EventWaitHandle.OpenExisting(String name, EventWaitHandleRights rights)
      at SetupTv.ServiceHelper.WaitInitialized(Int32 millisecondsTimeout)
     
    2013-01-20 13:37:42.168181 [SetupTv(1)]: Exception  :System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 192.168.1.2:31456
     
    Server stack trace:
      at System.Net.Sockets.Socket.Connect(IPAddress[] addresses, Int32 port)
      at System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket(AddressFamily family)
      at System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket()
      at System.Runtime.Remoting.Channels.RemoteConnection.GetSocket()
      at System.Runtime.Remoting.Channels.SocketCache.GetSocket(String machinePortAndSid, Boolean openNew)
      at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.SendRequestWithRetry(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream)
      at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream)
      at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg)
     
    Exception rethrown at [0]:
      at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
      at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
      at TvControl.IController.get_Cards()
      at SetupTv.Startup.Main(String[] arguments)
     
    2013-01-20 13:39:11.134787 [SetupTv(1)]: ServiceHelper: Check whether the tvservice is running failed. Please check your installation.
    Error: System.InvalidOperationException: Service TvService was not found on computer '.'. ---> System.ComponentModel.Win32Exception: The specified service does not exist as an installed service
      --- End of inner exception stack trace ---
      at System.ServiceProcess.ServiceController.GenerateNames()
      at System.ServiceProcess.ServiceController.get_ServiceName()
      at System.ServiceProcess.ServiceController.GenerateStatus()
      at System.ServiceProcess.ServiceController.get_Status()
      at SetupTv.ServiceHelper.get_IsRunning()
    2013-01-20 13:39:12.573155 [SetupTv(1)]: ServiceHelper: Starting TvService failed. Please check your installation.
    Error: System.InvalidOperationException: Service TvService was not found on computer '.'. ---> System.ComponentModel.Win32Exception: The specified service does not exist as an installed service
      --- End of inner exception stack trace ---
      at System.ServiceProcess.ServiceController.GenerateNames()
      at System.ServiceProcess.ServiceController.get_ServiceName()
      at System.ServiceProcess.ServiceController.GenerateStatus()
      at System.ServiceProcess.ServiceController.get_Status()
      at SetupTv.ServiceHelper.Start(String aServiceName)
    2013-01-20 13:39:12.683259 [SetupTv(1)]: Failed to wait for Global\MPTVServiceInitializedEvent
    2013-01-20 13:39:12.685261 [SetupTv(1)]: Exception  :System.Threading.WaitHandleCannotBeOpenedException: No handle of the given name exists.
      at System.Threading.EventWaitHandle.OpenExisting(String name, EventWaitHandleRights rights)
      at SetupTv.ServiceHelper.WaitInitialized(Int32 millisecondsTimeout)
     
    2013-01-20 13:39:31.280392 [SetupTv(1)]: Failed to wait for Global\MPTVServiceInitializedEvent
    2013-01-20 13:39:31.282394 [SetupTv(1)]: Exception  :System.Threading.WaitHandleCannotBeOpenedException: No handle of the given name exists.
      at System.Threading.EventWaitHandle.OpenExisting(String name, EventWaitHandleRights rights)
      at SetupTv.ServiceHelper.WaitInitialized(Int32 millisecondsTimeout)
     
    2013-01-20 13:39:49.847954 [SetupTv(1)]: Exception  :System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 192.168.1.2:31456
     
    Server stack trace:
      at System.Net.Sockets.Socket.Connect(IPAddress[] addresses, Int32 port)
      at System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket(AddressFamily family)
      at System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket()
      at System.Runtime.Remoting.Channels.RemoteConnection.GetSocket()
      at System.Runtime.Remoting.Channels.SocketCache.GetSocket(String machinePortAndSid, Boolean openNew)
      at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.SendRequestWithRetry(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream)
      at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream)
      at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg)
     
    Exception rethrown at [0]:
      at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
      at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
      at TvControl.IController.get_Cards()
      at SetupTv.Startup.Main(String[] arguments)

    Edit: Never mind. Apparently part of my old install was still there and causing problems. Everything is working now.
     
    Last edited:

    ben1210

    MP Donator
  • Premium Supporter
  • September 2, 2012
    191
    25
    Home Country
    United Kingdom United Kingdom
    Maybe your SQL database is corrupted. Try to repair it with mysqlchk or use this batch script (Thx to Lehmden for this)

    cd c:\Program Files\MySQL\MySQL Server 5.1\bin
    mysqlcheck.exe -u root -pMediaPortal --auto-repair --all-databases

    Maybe you've to execute this as Admin. I've copied to Autostart so every time my HTPC reboots, the script will be executed.


    I've recently had a big migration of 1 server and 3 clients from MP 1.4 to 1.6 and one client had a stubborn error which meant half of the TV channels just wouldn't view. I was JUST about format hard drive and re-install windows when I tried the mysqlchk.

    Worked like a dream. Great tip.
     

    Users who are viewing this thread

    Top Bottom