TV service doesn't autostart (1 Viewer)

Hetfield

Portal Pro
March 3, 2007
69
9
Home Country
Finland Finland
I also have the same problem. No TV when I boot up, even if I wait forever. I have to manually shut down MP GUI, and after restarting it everything is ok. Having a .bat file to make the GUI wait 120 sec before start up helps sometimes but not always.

This is the only reason I'm not using the new TV engine. Please fix this issue!!!! I have hacked Windows to boot quick, and i use Emerge Desktop as a light version of shell. I would suggest some kind of error handlin when calling an exxternal service / application which is not ready to be called, this is how quality software operates :) MP is quality, but not with this issue.
 

infinite.loop

Retired Team Member
  • Premium Supporter
  • December 26, 2004
    16,154
    4,133
    127.0.0.1
    Home Country
    Austria Austria
    I also have the same problem. No TV when I boot up, even if I wait forever. I have to manually shut down MP GUI, and after restarting it everything is ok.
    after you restart what?

    a step by step description would be helpful ;)
    MP is quality, but not with this issue.
    you should keep in mind that many ppl (this includes me) do not have that problem.
    so either its a tricky bug, or an issue on your local system.

    we know that the TV-Server might fail after PC boot simply because one service is not started which your TV-Card/driver depends on.

    the TV-Service itselve is waiting for all services it depens on.

    so we need logs from your system when TV-Server failed and very specific details about your hard and software.

    The fact that you "hacked" your windowsXP does not look good in relation with your issue.
     

    Hetfield

    Portal Pro
    March 3, 2007
    69
    9
    Home Country
    Finland Finland
    "after you restart what? a step by step description would be helpful "

    ==> I have to restart MP GUI, the blue one :) After closing and restarting it everything is OK.


    "so we need logs from your system when TV-Server failed and very specific details about your hard and software."

    ==> Sorry no logs. TV failed after each boot, and my girlfriend said "PLEASE DO SOMETHING!!!". I had to quickly restore Ghost image over my C-drive (with TV engine 2), and the logs were gone :-D

    "The fact that you "hacked" your windowsXP does not look good in relation with your issue."

    ==> Not really hacked, just a lighter shell, and uninstalled not needed applications. The link below says also others are having similar problems:

    https://forum.team-mediaportal.com/tip_single_seat_wait_services_start_before-t20330.html

    I also found this kind of info from some topic: "I had the same problem and after a long search I discovered that it depend from "RPC Locator". This service is automatically installed with the "Client for microsoft network" under the properties of your network card.".

    I will try these (when my girl friend is not at home), and if the problem still exist, I'll attach you all the information available, including the log files. Now she's complaining not having DVB subbitles, so TVE3 is needed :) I'm a programmer also my self, so I understand how painfull it can sometimes be to fix "easy" errors :) And i would say, this is definitely a tricky one.
     

    Hetfield

    Portal Pro
    March 3, 2007
    69
    9
    Home Country
    Finland Finland
    Solution for me

    ***** SOLVED *****

    Not helped: Set service "RPC Locator" to start automatic instead of manual.

    Helped: https://forum.team-mediaportal.com/tip_single_seat_wait_services_start_before-t20330.html.

    The link TOTALLY solves the problem, I'm so happy. The client seems to start up too fast with no error checking. With the bat file, starting of SQL Server phase takes 36 seconds, after that starting of TV Server phase takes 22 seconds. Next steps should be to make everyting work without the bat file by the developers, and make starting of these services faster (any tips???). Log files without this bat hack attached.

    Another bug found: After scanning channels, some channel names have spaces at begin / start. Please add trimming of these, spaces cause WEbEPG not to show info on these channels before manually removing the spaces.



    ----- Client - error.log -----

    2007-04-30 22:52:50.750000 [ERROR][MPMain]: Exception :confused:ystem.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it

    Server stack trace:
    at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
    at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
    at System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket(EndPoint ipEndPoint)
    at System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket()
    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.GetDatabaseConnectionString(String& connectionString, String& provider)
    at TvPlugin.ChannelNavigator.ReLoad()
    2007-04-30 22:52:50.750000 [ERROR][MPMain]: Exception :No connection could be made because the target machine actively refused it
    2007-04-30 22:52:50.750000 [ERROR][MPMain]: site :Void HandleReturnMessage(System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Messaging.IMessage)
    2007-04-30 22:52:50.750000 [ERROR][MPMain]: source :mscorlib
    2007-04-30 22:52:50.750000 [ERROR][MPMain]: stacktrace:
    Server stack trace:
    at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
    at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
    at System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket(EndPoint ipEndPoint)
    at System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket()
    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.GetDatabaseConnectionString(String& connectionString, String& provider)
    at TvPlugin.ChannelNavigator.ReLoad()
    2007-04-30 22:53:18.703125 [ERROR][MPMain]: OnMessage exception:confused:ystem.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index
    at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
    at System.ThrowHelper.ThrowArgumentOutOfRangeException()
    at TvPlugin.TVHome.OnPageLoad()
    at MediaPortal.GUI.Library.GUIWindow.OnMessage(GUIMessage message)
    2007-04-30 22:53:26.484375 [ERROR][MPMain]: OnMessage exception:confused:ystem.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index
    at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
    at System.ThrowHelper.ThrowArgumentOutOfRangeException()
    at TvPlugin.ChannelNavigator.SaveSettings(Settings xmlwriter)
    at TvPlugin.TVHome.SaveSettings()
    at TvPlugin.TVHome.OnClicked(Int32 controlId, GUIControl control, ActionType actionType)
    at MediaPortal.GUI.Library.GUIWindow.OnMessage(GUIMessage message)
    2007-04-30 22:54:22.421875 [ERROR][MPMain]: OnMessage exception:confused:ystem.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index
    at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
    at System.ThrowHelper.ThrowArgumentOutOfRangeException()
    at TvPlugin.ChannelNavigator.SaveSettings(Settings xmlwriter)
    at TvPlugin.TVHome.SaveSettings()
    at TvPlugin.TVHome.OnPageDestroy(Int32 newWindowId)
    at MediaPortal.GUI.Library.GUIWindow.OnMessage(GUIMessage message)
    2007-04-30 22:54:22.437500 [ERROR][MPMain]: Exception :confused:ystem.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index
    at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
    at System.ThrowHelper.ThrowArgumentOutOfRangeException()
    at TvPlugin.ChannelNavigator.SaveSettings(Settings xmlwriter)
    at TvPlugin.TvFullScreen.SaveSettings()
    at TvPlugin.TvFullScreen.OnPageDestroy(Int32 newWindowId)
    at TvPlugin.TvFullScreen.DeInit()
    at MediaPortal.GUI.Library.GUIWindowManager.Clear()
    at MediaPortalApp.OnExit()
    at MediaPortalApp.Main(String[] args)
    2007-04-30 22:54:22.437500 [ERROR][MPMain]: Exception :Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index
    2007-04-30 22:54:22.437500 [ERROR][MPMain]: site :Void ThrowArgumentOutOfRangeException(System.ExceptionArgument, System.ExceptionResource)
    2007-04-30 22:54:22.437500 [ERROR][MPMain]: source :mscorlib
    2007-04-30 22:54:22.437500 [ERROR][MPMain]: stacktrace: at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
    at System.ThrowHelper.ThrowArgumentOutOfRangeException()
    at TvPlugin.ChannelNavigator.SaveSettings(Settings xmlwriter)
    at TvPlugin.TvFullScreen.SaveSettings()
    at TvPlugin.TvFullScreen.OnPageDestroy(Int32 newWindowId)
    at TvPlugin.TvFullScreen.DeInit()
    at MediaPortal.GUI.Library.GUIWindowManager.Clear()
    at MediaPortalApp.OnExit()
    at MediaPortalApp.Main(String[] args)
    2007-04-30 22:54:22.437500 [ERROR][MPMain]: MediaPortal stopped due 2 an exception Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index mscorlib at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
    at System.ThrowHelper.ThrowArgumentOutOfRangeException()
    at TvPlugin.ChannelNavigator.SaveSettings(Settings xmlwriter)
    at TvPlugin.TvFullScreen.SaveSettings()
    at TvPlugin.TvFullScreen.OnPageDestroy(Int32 newWindowId)
    at TvPlugin.TvFullScreen.DeInit()
    at MediaPortal.GUI.Library.GUIWindowManager.Clear()
    at MediaPortalApp.OnExit()
    at MediaPortalApp.Main(String[] args)





    ----- TV Server - streaming server.Log -----

    30-04-2007 22:53:14 Stream server:confused:etup stream server for ip:192.168.1.100




    ----- TV Server - tv.log -----

    30.4.2007 22:53:02 5 TV service starting
    30.4.2007 22:53:03 5 C:\Documents and Settings\All Users\Application Data\MediaPortal TV Server\gentle.config
    30.4.2007 22:53:03 5 database connection:confused:QLServer Password=#####;Persist Security Info=True;User ID=#####;Initial Catalog=TvLibrary;Data Source=media-pc\SQLEXPRESS;
    30.4.2007 22:53:08 5 ----------------------------
    30.4.2007 22:53:08 5 Detected DVB-C card:dtv-dvbc 878 digital tuner filter
    30.4.2007 22:53:08 5 Detected DVB-C card:dtv-dvb mantis dvbc bda receiver
    30.4.2007 22:53:09 5 PluginManager: Loaded ComSkipLauncher version:1.0.2.0 author:and-81
    30.4.2007 22:53:12 5 PluginManager: Loaded ConflictsManager version:1.0.0.1 author:Broceliande
    30.4.2007 22:53:12 5 PluginManager: Loaded Power Scheduler version:0.1.0.0 author:micheloe
    30.4.2007 22:53:12 5 PluginManager: Loaded ServerBlaster version:1.0.0.0 author:Julio - based on smirnuff code
    30.4.2007 22:53:12 5 PluginManager: Loaded TV Movie EPG import version:0.2.2.1 author:mPod / rtv
    30.4.2007 22:53:12 5 PluginManager: Loaded XmlTv version:1.0.0.0 author:Frodo
    30.4.2007 22:53:12 5 PluginManager: Loaded Zap2it EPG Client version:1.8 author:Jonathan <bradsjm>
    30.4.2007 22:53:12 5 Controller: Started at media-pc
    30.4.2007 22:53:12 5 Controller: local ip adress:192.168.1.100
    30.4.2007 22:53:13 5 Controller: server running on 192.168.1.100
    30.4.2007 22:53:13 5 Controller: setup hybrid cards
    30.4.2007 22:53:14 5 Controller: setup streaming
    30.4.2007 22:53:14 5 Scheduler: started
    30.4.2007 22:53:14 5 Scheduler: loaded 0 schedules
    30.4.2007 22:53:14 5 Plugin:ComSkipLauncher disabled
    30.4.2007 22:53:14 5 Plugin:ConflictsManager disabled
    30.4.2007 22:53:14 5 Plugin:power Scheduler disabled
    30.4.2007 22:53:14 5 Plugin:confused:erverBlaster disabled
    30.4.2007 22:53:14 5 Plugin:TV Movie EPG import disabled
    30.4.2007 22:53:14 5 Plugin:XmlTv disabled
    30.4.2007 22:53:14 5 Plugin:Zap2it EPG Client disabled
    30.4.2007 22:53:14 5 Controller: initalized
    30.4.2007 22:53:14 5 TV service started
     

    rtv

    Retired Team Member
  • Premium Supporter
  • April 7, 2005
    3,622
    301
    Osnabruck
    Home Country
    Germany Germany
    I've added dependencies to the tvservice:
    - the database (most likely cause of failures since especially MSSQL might take some seconds)
    - Netman (Quite some functions in tve3 refer to networking; should be up before the DB of course but doesn't harm anyway

    The service name is looked up (if you changed it from defaults) after you press "test connection". This should work for 99% of all users.

    Please tell me if this fixes the tvservice not to start at boot!

    Hetfield the client is another topic which will be addressed soon.
     

    Users who are viewing this thread

    Similar threads

    Reading through your code, I can see it's more than a couple steps above my paygrade. :cry:
    Reading through your code, I can see it's more than a couple steps above my paygrade. :cry:
    I used to run the TVService under the "NT Service\TVService" account to follow least privileges principal (not exposing my whole...
    Replies
    3
    Views
    2K
    @CyberSimian this workaround worked. @TLD this hint was good because I wanted to install x64. Now I have x86 installed
    @CyberSimian this workaround worked. @TLD this hint was good because I wanted to install x64. Now I have x86 installed
    After reinstalling a WinTV quad HD card and MP1.36, the TV service no longer starts automatically. A manual start is no problem...
    Replies
    4
    Views
    2K
    Are the media/video folders on the Mint host?
    Are the media/video folders on the Mint host?
    I've used Mediaportal for years on a Windows Host with restricted online-access. Lately I reinstalled...
    Replies
    1
    Views
    1K
    I don't know about MP2 but as you said you tried MP1 too, how is the MP music config ? MP(1) will only use LAV if you select "Internal DirectShow player" as music output, but then you lose gapless playback. If you you don't have multichannel music you can choose WASAPI as the output and set the number of speakers to stereo. I have...
    I don't know about MP2 but as you said you tried MP1 too, how is the MP music config ? MP(1) will only use LAV if you select...
    Not sure if this a a bug/config/settings problem. I am running a media portal 2.5 server with 2.41 client but it seems I get the...
    Replies
    1
    Views
    659
    I haven't tested it. I use MP1, but sometimes I try to help with MP2 :).
    I haven't tested it. I use MP1, but sometimes I try to help with MP2 :).
    This happened immediately after my Windows 11 x64 monthly update for November. The update included also cumulative update to .NET...
    Replies
    9
    Views
    2K
    Top Bottom