Please I need some ideas for debugging... system freezing using TV-Server (1 Viewer)

peque

Moderator - Spanish Forums
  • Premium Supporter
  • August 4, 2007
    861
    99
    Home Country
    Spain Spain
    TV-Server Version: 1.0.2
    MediaPortal Version: 1.0.2
    MediaPortal Skin: X-Face
    Windows Version: Vista 32bit
    CPU Type:
    HDD:
    Memory:
    Motherboard:
    Video Card: Nvidia 8500 GT
    Video Card Driver: 185.85
    Sound Card:
    Sound Card AC3:
    Sound Card Driver:
    1. TV Card: AirStar2
    1. TV Card Type: DVB-t
    1. TV Card Driver: 4.5.0a
    2. TV Card:
    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:
    MPEG2 Audio Codec:
    h.264 Video Codec:
    Satelite/CableTV Provider:
    HTPC Case:
    Cooling:
    Power Supply:
    Remote:
    TV:
    TV - HTPC Connection:

    Hi.

    I'm badly desperate, so please I need your help ASAP.

    I've been using MediaPortal with same system specs from 0.2.3.0 (more than 2 years ago, with no problem (out of little bugs, resolved with newer versions). Three weeks ago, I decided to some upgrades in my system:

    - Upgrade AirStar2 driver from 4.5.0 to 4.5.0a.
    - Upgrade MP from 1.0.1 to 1.0.2.
    - Upgrade Nvidia drivers to 185.85.

    After these upgrades, I get random system freezes (strange, I can't use the system, but mouse moves, and PC responds to ping from other machines) and I must reset. Problem is located at TV-Server, because if I disable AirStar2 in config, I can use MediaPortal with no problem, and if I connect to TV-Server from a client machine, system hangs the same way. Also If I'm not using MP, but have configured to retrieve DVB EPG, system hangs doing just this job. BTW, I can use AirStar2 with no problem with soft bundled with card drivers (DVBViewer TE), and other soft I've got (TSReader and DVBViewer Pro).

    I've tried:

    - Roll back AirStar2 upgrade. Also go back to 4.4.1 drivers, used for more than one year with no problems.
    - Roll back MP to 1.0.1.
    - Complete uninstall of MP (last option from installer) and fresh new 1.0.2 installation.
    - Roll back NVidia drivers (before I realized it was a problem of TV-Server).

    I can't use any system restore point, because I did so many changes before thinking about this possibility, that there's no available restore point before original upgrades. :(

    Obviously it's a problem in my side, but I don't really know how to debug it, because system just freezes, and I can't see any log that helps me (neither in MP / TV-Server, not in System logs).

    How do you think I could debug this problem?

    Thank you.

    Edit: I'll possibly have new TV-Card in a couple of days, so I will be able to see if it's a matter of TV-Server & AirStar2, or just TV-Server, no matter what card (I hope the first option).
     

    peque

    Moderator - Spanish Forums
  • Premium Supporter
  • August 4, 2007
    861
    99
    Home Country
    Spain Spain
    • Thread starter
    • Moderator
    • #2
    I tried to switch card to another PCI Slot... no luck.

    I'm totally lost. I don't know what can I do more, out of formating... :(
     

    peque

    Moderator - Spanish Forums
  • Premium Supporter
  • August 4, 2007
    861
    99
    Home Country
    Spain Spain
    • Thread starter
    • Moderator
    • #3
    Here you have error.log I could retrieve from last hang:

    Code:
    2009-06-12 00:36:03.680551 [SetupTv]: ServiceHelper: Could not check whether the tvservice is running. Please check your network as well. 
    Error: System.Net.Sockets.SocketException: No se puede establecer una conexión ya que el equipo de destino denegó expresamente dicha conexión 127.0.0.1:31456
    
    Server stack trace: 
       en System.Net.Sockets.Socket.Connect(IPAddress[] addresses, Int32 port)
       en System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket(AddressFamily family)
       en System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket()
       en System.Runtime.Remoting.Channels.RemoteConnection.GetSocket()
       en System.Runtime.Remoting.Channels.SocketCache.GetSocket(String machinePortAndSid, Boolean openNew)
       en System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.SendRequestWithRetry(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream)
       en System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream)
       en System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg)
    
    Exception rethrown at [0]: 
       en System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
       en System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       en TvControl.IController.get_IdServer()
       en SetupTv.ServiceHelper.get_IsRunning()
    2009-06-12 00:36:05.815551 [TVService]: Exception   :System.NullReferenceException: Referencia a objeto no establecida como instancia de un objeto.
       en TvLibrary.Implementations.DVB.ConditionalAccess..ctor(IBaseFilter tunerFilter, IBaseFilter analyzerFilter, IBaseFilter winTvUsbCiFilter, TvCardBase card)
    
    2009-06-12 00:36:06.100551 [SetupTv]: ServiceHelper: Could not check whether the tvservice is running. Please check your network as well. 
    Error: System.Runtime.Remoting.RemotingException: No se encontró el servicio solicitado
    
    Server stack trace: 
       en System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream)
    
    Exception rethrown at [0]: 
       en System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
       en System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       en TvControl.IController.get_IdServer()
       en SetupTv.ServiceHelper.get_IsRunning()
    2009-06-12 00:36:06.353551 [SetupTv]: ServiceHelper: Could not check whether the tvservice is running. Please check your network as well. 
    Error: System.Runtime.Remoting.RemotingException: No se encontró el servicio solicitado
    
    Server stack trace: 
       en System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream)
    
    Exception rethrown at [0]: 
       en System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
       en System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       en TvControl.IController.get_IdServer()
       en SetupTv.ServiceHelper.get_IsRunning()
    2009-06-12 00:36:06.606551 [SetupTv]: ServiceHelper: Could not check whether the tvservice is running. Please check your network as well. 
    Error: System.Runtime.Remoting.RemotingException: No se encontró el servicio solicitado
    
    Server stack trace: 
       en System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream)
    
    Exception rethrown at [0]: 
       en System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
       en System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       en TvControl.IController.get_IdServer()
       en SetupTv.ServiceHelper.get_IsRunning()
    As you can see, TV-Server service hangs, and after it appears another error that I don't know if it has to do with hang, or it's just a consequence of the hang.

    As I told you, it's not a complete hang... mouse moves, clock is running on in windows taskbar, I can see resource monitor showing them in graphs... but the moment I try to change window, Windows hangs and I must reset. Ctrl+Alt+Del can't show it's dialog, and I get an error saying there's not resources for the dialog to be shown...

    The test is allways the same: preview channel in setuptv.exe, or viewing TV from a remote machine... After a while (may be 1 hour, 2 minutes) it stops responding... :(

    I'm really desperate... and I don't want to format... :( I've installed SP2 today... and if no luck, I'll try to do a complete Windows Vista restore with CD... I'm really tired...
     

    Paranoid Delusion

    Moderation Manager
  • Premium Supporter
  • June 13, 2005
    13,062
    2,978
    Cheshire
    Home Country
    United Kingdom United Kingdom
    I would clean the TVServer database, use MSSql management studio express to delete the MpTvDb database, you need to stop TVService in task manager and then retune\reconfigure.

    Hopefully it will only be some left over settings there, from the old drivers for your TV card that has caused you grief.
     

    peque

    Moderator - Spanish Forums
  • Premium Supporter
  • August 4, 2007
    861
    99
    Home Country
    Spain Spain
    • Thread starter
    • Moderator
    • #5
    Mptvdb database has been dropped every time I've uninstalled and reinstalled TV-Server, because I use "complete" uninstallation option... :( I don't think doing it by hand will help...

    Anyway, I'm gonna try using SQL Express instead of MySQL... Maybe this will help, as is a complete new database server... :(

    Thanks for your help.

    Edit: Forgot to say that I've also tried to change to BDA drivers, 4.4.1, 4.5.0 and last, 4.5.0a versions. No luck.

    I'm currently testing with SQL Express, to discard any problem with obsolete DB data.

    I'm sure I'll find what's the problem. I won't give up so easy... :mad:

    Edit2: Ok, same problem after installing TV-Server with SQL Server Express instead of MySQL. But now I have been able to control the system after preview image has frozen, and shutdown TS-Server Service (gracefull shutdown)... Maybe this time I've arrived before system hangs completely. I've got this log lines in TsWriter.log this time:

    Code:
    12-06-2009 13:16:14.617 Recorder: TIMESHIFT Info : Program clock reference forward jump ( 79229 ).
    12-06-2009 13:16:32.40 Recorder: TIMESHIFT Info : Program clock reference forward jump ( 41306 ).
    12-06-2009 13:16:43.868 Recorder: TIMESHIFT Info : Program clock reference forward jump ( 41477 ).
    12-06-2009 13:16:51.471 Recorder: TIMESHIFT Info : Program clock reference forward jump ( 41197 ).
    12-06-2009 13:16:53.119 Recorder: TIMESHIFT Info : Program clock reference forward jump ( 41399 ).
    12-06-2009 13:16:54.729 Recorder: TIMESHIFT Info : Program clock reference forward jump ( 41286 ).
    12-06-2009 13:17:21.863 Recorder: TIMESHIFT Info : Program clock reference forward jump ( 78966 ).
    12-06-2009 13:17:23.443 Recorder: TIMESHIFT Info : Program clock reference forward jump ( 41297 ).
    12-06-2009 13:17:26.487 Recorder: TIMESHIFT Info : Program clock reference forward jump ( 41241 ).
    12-06-2009 13:17:28.458 Recorder: TIMESHIFT Info : Program clock reference forward jump ( 40656 ).
    12-06-2009 13:17:29.534 Recorder: TIMESHIFT Info : Program clock reference forward jump ( 38032 ).
    12-06-2009 13:17:30.995 Recorder: TIMESHIFT Info : Program clock reference forward jump ( 41349 ).
    12-06-2009 13:17:34.527 Recorder: TIMESHIFT Info : Program clock reference forward jump ( 41311 ).
    12-06-2009 13:17:41.781 Recorder: TIMESHIFT Info : Program clock reference forward jump ( 72423 ).

    Again, I'm almost sure this is not the problem, but a consequence of TS-Server Service hanging...

    So... next step is to try a new (and different) TV-Card (HVR-4000, that I've received this morning), and if same problem, try to restore Windows Vista using CD...

    Uffff.... :(
     

    peque

    Moderator - Spanish Forums
  • Premium Supporter
  • August 4, 2007
    861
    99
    Home Country
    Spain Spain
    • Thread starter
    • Moderator
    • #6
    OK. Tried new HVR-4000, no problem at all... I don't understand what's happening... It's not TV-Server itself (with other TV-Card there's no problem), but it's not TV-Card or drivers themselves (TV-Card is working with DVBViewer and other soft...).

    I'm now reinstalling Windows Vista on top of old one. Let's see... Last option is to install a fresh Vista copy and try... :(
     

    peque

    Moderator - Spanish Forums
  • Premium Supporter
  • August 4, 2007
    861
    99
    Home Country
    Spain Spain
    • Thread starter
    • Moderator
    • #8
    I gave up and reinstall S.O.... Now it's working as usual... Hard work to reconfigure all my system again, anyway.

    I've left old system installed... Maybe I'll try to solve this issue, just couriousity what happened...
     

    Users who are viewing this thread

    Top Bottom