[confirm] tvservice dying very often (1 Viewer)

dingo

MP Donator
  • Premium Supporter
  • October 2, 2006
    81
    0
    Home Country
    Norway Norway
    MediaPortal Version: MP 1.1 RC 1
    MediaPortal Skin: Blue3Wide
    Windows Version: Windows 7 Ultimate
    CPU Type: Intel Core2 6400 2.2Ghz
    HDD: WD 250gb
    Memory:
    Motherboard:
    Video Card: ATI Radeon HD 2400
    Video Card Driver: Catalyst 8.61
    Sound Card: TerraTec aureon 5.1
    Sound Card AC3:
    Sound Card Driver:
    1. TV Card:
    1. TV Card Type:
    1. TV Card Driver:
    2. TV Card: FloppyDTV-S2
    2. TV Card Type:
    2. TV Card Driver:
    3. TV Card:
    3. TV Card Type:
    3. TV Card Driver:
    4. TV Card:
    4. TV Card Type:
    4. TV Card Driver:
    MPEG2 Video Codec: MPC - Mpeg2
    MPEG2 Audio Codec: MPC - MPA
    h.264 Video Codec: PowerDVD8
    Satelite/CableTV Provider: 0.8°W Thor 3/5
    HTPC Case: Asus Terminator3
    Cooling:
    Power Supply:
    Remote: Microsoft MCE Remote
    TV: LG 42" LCD
    TV - HTPC Connection: HDMI

    Hi again. I have had problems with TVService dying since I started using the RC 1 . I have completely reinstalled both my server and client. I don't really know how to explain what is happening, but tv might work fine, but then suddenly can't connect to tv server. TV might freeze while watching for then not to be able to start tv again. Sometimes I just go to watch tv and nothing happens cause tvservice has died. Often it is not recording scheduled stuff because of this as well. Sometimes I can fix it by resatarting tvservice in services.msc and sometimes I have to do a full reboot of the server.

    I have included logs from the tv server, and from mediaportal on clinet plus tvserver client logs. Hope someone knows what might be going on!

    - dingo
     

    elliottmc

    Retired Team Member
  • Premium Supporter
  • August 7, 2005
    14,927
    6,061
    Cardiff, UK
    Home Country
    United Kingdom United Kingdom
    Hi again. I have had problems with TVService dying since I started using the RC 1 . I have completely reinstalled both my server and client. I don't really know how to explain what is happening, but tv might work fine, but then suddenly can't connect to tv server. TV might freeze while watching for then not to be able to start tv again. Sometimes I just go to watch tv and nothing happens cause tvservice has died. Often it is not recording scheduled stuff because of this as well. Sometimes I can fix it by resatarting tvservice in services.msc and sometimes I have to do a full reboot of the server.

    I have included logs from the tv server, and from mediaportal on clinet plus tvserver client logs. Hope someone knows what might be going on!

    - dingo

    Your logs contain

    Code:
    2010-03-02 01:30:19.484375 [(10)]: TechnoTrend: slot 0 changed
    2010-03-02 01:30:19.484375 [(10)]: TechnoTrend:    CI status:SlotModuleOk 
    2010-03-02 01:30:19.484375 [(10)]: TechnoTrend:    CI text  :Conax Conditional Access 
    2010-03-02 01:30:19.484375 [(10)]: TechnoTrend:      ca system id  :B00 
    2010-03-02 01:30:33.890625 [SetupTv(1)]: Exception in setuptv

    Please bear in mind that I am not an expert, but I would try updating the drivers for your TV card and CI module, if possible.

    Do you have any other TV cards that you are able to test? I don't know anything at all about CI modules, but is it possible to use the card without the CI module, to see if this is causing your problems?

    Best wishes,

    Mark
     

    dingo

    MP Donator
  • Premium Supporter
  • October 2, 2006
    81
    0
    Home Country
    Norway Norway
    Hi. I am runing latest drivers. I can test the card without a ci, but not to watch any of my channels .p I also have a dvb-t card in the machine, but that wouldn't help much I guess. But thanks for the tips, I'll try to test now :)

    - dingo
     

    arion_p

    Retired Team Member
  • Premium Supporter
  • February 7, 2007
    3,373
    1,626
    Athens
    Home Country
    Greece Greece
    The problem is here (I don't know why this happens):
    Code:
    2010-03-02 01:18:42.953125 [(10)]: TechnoTrend:CI_OnSwitchOsdOff slot:0
    2010-03-02 01:18:44.406250 [(10)]: TechnoTrend:CI_OnSwitchOsdOff slot:0
    2010-03-02 01:18:53.734375 [(10)]: TechnoTrend:CI_OnSwitchOsdOff slot:0
    2010-03-02 01:19:03.437500 [(10)]: TechnoTrend:CI_OnSwitchOsdOff slot:0
    2010-03-02 01:19:13.515625 [(10)]: TechnoTrend:CI_OnSwitchOsdOff slot:0
    2010-03-02 01:22:30.187500 [(15)]: Controller: StopTimeShifting 3
    ...
    ...
    2010-03-02 01:22:33.515625 [(12)]: dvbt: tune: Graph running. Returning TvLibrary.Implementations.DVB.TvDvbChannel
    2010-03-02 01:22:33.578125 [(10)]: TechnoTrend:CI_OnSwitchOsdOff slot:0
    2010-03-02 01:22:33.609375 [(12)]: card: Tuner locked: True
    2010-03-02 01:22:33.609375 [(12)]: **************************************************
    2010-03-02 01:22:33.609375 [(12)]: ***** SIGNAL LEVEL: 32, SIGNAL QUALITY: 32 *****
    2010-03-02 01:22:33.609375 [(12)]: **************************************************
    2010-03-02 01:22:33.609375 [(12)]: card: tuned user: epg subchannel: 0
    2010-03-02 01:22:33.609375 [(12)]: user:epg add
    2010-03-02 01:22:33.609375 [DVB EPG timer(11)]: Controller: GrabEpg on card ID == 2
    2010-03-02 01:22:33.609375 [DVB EPG timer(11)]: dvb:grab epg...
    2010-03-02 01:22:54.531250 [(10)]: Tvservice stopped due to a app domain exception System.Net.Sockets.SocketException: En eksisterende tilkobling ble tvangslukket av den eksterne verten
    
    Server stack trace: 
       at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
       at System.Runtime.Remoting.Channels.SocketStream.Write(Byte[] buffer, Int32 offset, Int32 count)
       at System.Runtime.Remoting.Channels.ChunkedMemoryStream.WriteTo(Stream stream)
       at System.Runtime.Remoting.Channels.Tcp.TcpClientSocketHandler.GetRequestStream(IMessage msg, Int32 contentLength, ITransportHeaders headers)
       at System.Runtime.Remoting.Channels.Tcp.TcpClientSocketHandler.SendRequest(IMessage msg, ITransportHeaders headers, Stream contentStream)
       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 TvLibrary.Interfaces.CiMenuCallbackSink.FireCiMenuCallback(CiMenu Menu)
       at TvService.TVController.CheckForCallback()
       at TvService.TVController.OnCiCloseDisplay(Int32 nDelay)
       at TvLibrary.Implementations.DVB.TechnoTrendAPI.onSwitchOsdOff(IntPtr Context, Byte nSlot)
    2010-03-02 01:24:07.390625 [(4)]: TV service: Starting
    2010-03-02 01:24:07.859375 [TVService(4)]: TVService v1.0.5.25080 is starting up on Windows XP ( Service Pack 3 ) [5.1.2600.196608]
    2010-03-02 01:24:07.875000 [TVService(4)]: Controller: Initializing TVServer
    2010-03-02 01:24:07.875000 [TVService(4)]: Controller: 1 init attempt
    At 2010-03-02 01:22:54.531250 you get a socket exception "The connection was forcibly closed by the remote host", the exception is not handled and terminates the thread. You have probably configured (or perhaps this is the default I don't remember) to automatically restart the service on failure, so TVService restarts. But the port TVService uses to listen for connections has not yet been released by the previous instance on TVService that has just died. So you get:
    Code:
    2010-03-02 01:24:07.375000 [(1)]: Exception   :System.Runtime.Remoting.RemotingException: Remoting configuration failed with the exception 'System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.Sockets.SocketException: Bare ett bruk av hver enkelt kontaktadresse (protokoll/nettverk adresse/port) er vanligvis tillatt
       at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
       at System.Net.Sockets.Socket.Bind(EndPoint localEP)
       at System.Net.Sockets.TcpListener.Start(Int32 backlog)
       at System.Net.Sockets.TcpListener.Start()
       at System.Runtime.Remoting.Channels.ExclusiveTcpListener.Start(Boolean exclusiveAddressUse)
       at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel.StartListening(Object data)
       at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel.SetupChannel()
       at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel..ctor(IDictionary properties, IServerChannelSinkProvider sinkProvider, IAuthorizeRemotingConnection authorizeCallback)
       at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel..ctor(IDictionary properties, IServerChannelSinkProvider sinkProvider)
       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle._InvokeConstructor(Object[] args, SignatureStruct& signature, IntPtr declaringType)
       at System.RuntimeMethodHandle.InvokeConstructor(Object[] args, SignatureStruct signature, RuntimeTypeHandle declaringType)
       at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
       at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
       at System.Runtime.Remoting.RemotingConfigHandler.CreateChannelFromConfigEntry(ChannelEntry entry)
       at System.Runtime.Remoting.RemotingConfigHandler.ConfigureChannels(RemotingXmlConfigFileData configData, Boolean ensureSecurity)
       at System.Runtime.Remoting.RemotingConfigHandler.ConfigureRemoting(RemotingXmlConfigFileData configData, Boolean ensureSecurity)'.
       at System.Runtime.Remoting.RemotingConfigHandler.ConfigureRemoting(RemotingXmlConfigFileData configData, Boolean ensureSecurity)
       at System.Runtime.Remoting.RemotingConfigHandler.DoConfiguration(String filename, Boolean ensureSecurity)
       at System.Runtime.Remoting.RemotingConfiguration.Configure(String filename, Boolean ensureSecurity)
       at TvService.Service1..ctor()
    This effectively prevents the new TVService instance to listen for connections and nothing works anymore.
     

    dingo

    MP Donator
  • Premium Supporter
  • October 2, 2006
    81
    0
    Home Country
    Norway Norway
    hi . Yes I have set it to automagiaclly restart if it crashes. Have reinstalled the driver in hopes that would help, but no :( I really don't know why I have this problem now.. been running mp a long time and many svn's as well .. heh weird..

    - dingo
     

    ronilse

    Retired Team Member
  • Premium Supporter
  • July 19, 2005
    4,422
    283
    Moss
    Home Country
    Norway Norway
    Hi,
    do you use Wireless connection?

    Regards
    Roy
     

    ronilse

    Retired Team Member
  • Premium Supporter
  • July 19, 2005
    4,422
    283
    Moss
    Home Country
    Norway Norway
    Hi,
    ok, only seen such when wl dies & reconnects, but then it's not your issue ;)

    Regards
    Roy
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    AW: tvservice dying very often

    the exceptions in your log indeed points to the CI menu callback handling.

    but it's only a symptom, maybe not the source of the issue.

    I'll prepare a test library that does a try/catch around the callback, this should at least fix the hard crash you see.

    Please put this library BOTH into tvserver and MP client folder!
     

    dingo

    MP Donator
  • Premium Supporter
  • October 2, 2006
    81
    0
    Home Country
    Norway Norway
    ok! Ive replaced the files and now testing :)
     

    Users who are viewing this thread

    Top Bottom