[confirm] - tvservice dying very often

Discussion in 'MediaPortal 1.1.0 RC 1 & 2' started by dingo, March 2, 2010.

  1. dingo
    • Premium Supporter

    dingo MP Donator

    Joined:
    October 2, 2006
    Messages:
    81
    Likes Received:
    0
    Ratings:
    +0 / 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
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. elliottmc
    • Team MediaPortal

    elliottmc Retired Team Member

    Joined:
    August 7, 2005
    Messages:
    14,927
    Likes Received:
    4,011
    Gender:
    Male
    Location:
    Cardiff, UK
    Ratings:
    +5,503 / 13
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Your logs contain

    Code (Text):
    1.  
    2. 2010-03-02 01:30:19.484375 [(10)]: TechnoTrend: slot 0 changed
    3. 2010-03-02 01:30:19.484375 [(10)]: TechnoTrend:    CI status:SlotModuleOk
    4. 2010-03-02 01:30:19.484375 [(10)]: TechnoTrend:    CI text  :Conax Conditional Access
    5. 2010-03-02 01:30:19.484375 [(10)]: TechnoTrend:      ca system id  :B00
    6. 2010-03-02 01:30:33.890625 [SetupTv(1)]: Exception in setuptv
    7.  
    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
     
  4. dingo
    • Premium Supporter

    dingo MP Donator

    Joined:
    October 2, 2006
    Messages:
    81
    Likes Received:
    0
    Ratings:
    +0 / 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
     
  5. arion_p
    • Team MediaPortal

    arion_p Retired Team Member

    Joined:
    February 7, 2007
    Messages:
    3,352
    Likes Received:
    1,447
    Occupation:
    Developer
    Location:
    Athens
    Ratings:
    +1,522 / 0
    Home Country:
    Greece Greece
    Show System Specs
    The problem is here (I don't know why this happens):
    Code (Text):
    1. 2010-03-02 01:18:42.953125 [(10)]: TechnoTrend:CI_OnSwitchOsdOff slot:0
    2. 2010-03-02 01:18:44.406250 [(10)]: TechnoTrend:CI_OnSwitchOsdOff slot:0
    3. 2010-03-02 01:18:53.734375 [(10)]: TechnoTrend:CI_OnSwitchOsdOff slot:0
    4. 2010-03-02 01:19:03.437500 [(10)]: TechnoTrend:CI_OnSwitchOsdOff slot:0
    5. 2010-03-02 01:19:13.515625 [(10)]: TechnoTrend:CI_OnSwitchOsdOff slot:0
    6. 2010-03-02 01:22:30.187500 [(15)]: Controller: StopTimeShifting 3
    7. ...
    8. ...
    9. 2010-03-02 01:22:33.515625 [(12)]: dvbt: tune: Graph running. Returning TvLibrary.Implementations.DVB.TvDvbChannel
    10. 2010-03-02 01:22:33.578125 [(10)]: TechnoTrend:CI_OnSwitchOsdOff slot:0
    11. 2010-03-02 01:22:33.609375 [(12)]: card: Tuner locked: True
    12. 2010-03-02 01:22:33.609375 [(12)]: **************************************************
    13. 2010-03-02 01:22:33.609375 [(12)]: ***** SIGNAL LEVEL: 32, SIGNAL QUALITY: 32 *****
    14. 2010-03-02 01:22:33.609375 [(12)]: **************************************************
    15. 2010-03-02 01:22:33.609375 [(12)]: card: tuned user: epg subchannel: 0
    16. 2010-03-02 01:22:33.609375 [(12)]: user:epg add
    17. 2010-03-02 01:22:33.609375 [DVB EPG timer(11)]: Controller: GrabEpg on card ID == 2
    18. 2010-03-02 01:22:33.609375 [DVB EPG timer(11)]: dvb:grab epg...
    19. 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
    20.  
    21. Server stack trace:
    22.    at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
    23.    at System.Runtime.Remoting.Channels.SocketStream.Write(Byte[] buffer, Int32 offset, Int32 count)
    24.    at System.Runtime.Remoting.Channels.ChunkedMemoryStream.WriteTo(Stream stream)
    25.    at System.Runtime.Remoting.Channels.Tcp.TcpClientSocketHandler.GetRequestStream(IMessage msg, Int32 contentLength, ITransportHeaders headers)
    26.    at System.Runtime.Remoting.Channels.Tcp.TcpClientSocketHandler.SendRequest(IMessage msg, ITransportHeaders headers, Stream contentStream)
    27.    at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.SendRequestWithRetry(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream)
    28.    at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream)
    29.    at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg)
    30.  
    31. Exception rethrown at [0]:
    32.    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    33.    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    34.    at TvLibrary.Interfaces.CiMenuCallbackSink.FireCiMenuCallback(CiMenu Menu)
    35.    at TvService.TVController.CheckForCallback()
    36.    at TvService.TVController.OnCiCloseDisplay(Int32 nDelay)
    37.    at TvLibrary.Implementations.DVB.TechnoTrendAPI.onSwitchOsdOff(IntPtr Context, Byte nSlot)
    38. 2010-03-02 01:24:07.390625 [(4)]: TV service: Starting
    39. 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]
    40. 2010-03-02 01:24:07.875000 [TVService(4)]: Controller: Initializing TVServer
    41. 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 (Text):
    1. 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
    2.    at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
    3.    at System.Net.Sockets.Socket.Bind(EndPoint localEP)
    4.    at System.Net.Sockets.TcpListener.Start(Int32 backlog)
    5.    at System.Net.Sockets.TcpListener.Start()
    6.    at System.Runtime.Remoting.Channels.ExclusiveTcpListener.Start(Boolean exclusiveAddressUse)
    7.    at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel.StartListening(Object data)
    8.    at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel.SetupChannel()
    9.    at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel..ctor(IDictionary properties, IServerChannelSinkProvider sinkProvider, IAuthorizeRemotingConnection authorizeCallback)
    10.    at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel..ctor(IDictionary properties, IServerChannelSinkProvider sinkProvider)
    11.    --- End of inner exception stack trace ---
    12.    at System.RuntimeMethodHandle._InvokeConstructor(Object[] args, SignatureStruct& signature, IntPtr declaringType)
    13.    at System.RuntimeMethodHandle.InvokeConstructor(Object[] args, SignatureStruct signature, RuntimeTypeHandle declaringType)
    14.    at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    15.    at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
    16.    at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
    17.    at System.Runtime.Remoting.RemotingConfigHandler.CreateChannelFromConfigEntry(ChannelEntry entry)
    18.    at System.Runtime.Remoting.RemotingConfigHandler.ConfigureChannels(RemotingXmlConfigFileData configData, Boolean ensureSecurity)
    19.    at System.Runtime.Remoting.RemotingConfigHandler.ConfigureRemoting(RemotingXmlConfigFileData configData, Boolean ensureSecurity)'.
    20.    at System.Runtime.Remoting.RemotingConfigHandler.ConfigureRemoting(RemotingXmlConfigFileData configData, Boolean ensureSecurity)
    21.    at System.Runtime.Remoting.RemotingConfigHandler.DoConfiguration(String filename, Boolean ensureSecurity)
    22.    at System.Runtime.Remoting.RemotingConfiguration.Configure(String filename, Boolean ensureSecurity)
    23.    at TvService.Service1..ctor()
    24.  
    This effectively prevents the new TVService instance to listen for connections and nothing works anymore.
     
  6. dingo
    • Premium Supporter

    dingo MP Donator

    Joined:
    October 2, 2006
    Messages:
    81
    Likes Received:
    0
    Ratings:
    +0 / 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
     
  7. ronilse
    • Team MediaPortal

    ronilse Retired Team Member

    Joined:
    July 19, 2005
    Messages:
    4,422
    Likes Received:
    280
    Gender:
    Male
    Occupation:
    MediaPortal tester
    Location:
    Moss
    Ratings:
    +280 / 0
    Home Country:
    Norway Norway
    Show System Specs
    Hi,
    do you use Wireless connection?

    Regards
    Roy
     
  8. dingo
    • Premium Supporter

    dingo MP Donator

    Joined:
    October 2, 2006
    Messages:
    81
    Likes Received:
    0
    Ratings:
    +0 / 0
    Home Country:
    Norway Norway
    hi, no :) gblan

    - dingo
     
  9. ronilse
    • Team MediaPortal

    ronilse Retired Team Member

    Joined:
    July 19, 2005
    Messages:
    4,422
    Likes Received:
    280
    Gender:
    Male
    Occupation:
    MediaPortal tester
    Location:
    Moss
    Ratings:
    +280 / 0
    Home Country:
    Norway Norway
    Show System Specs
    Hi,
    ok, only seen such when wl dies & reconnects, but then it's not your issue ;)

    Regards
    Roy
     
  10. morpheus_xx
    • Team MediaPortal

    morpheus_xx Lead Dev MP2

    Joined:
    March 24, 2007
    Messages:
    10,957
    Likes Received:
    4,726
    Ratings:
    +6,766 / 11
    Home Country:
    Germany Germany
    Show System Specs
    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!
     
  11. dingo
    • Premium Supporter

    dingo MP Donator

    Joined:
    October 2, 2006
    Messages:
    81
    Likes Received:
    0
    Ratings:
    +0 / 0
    Home Country:
    Norway Norway
    ok! Ive replaced the files and now testing :)
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!