Network RTSP failure after return from stanby/hibernation. (1 Viewer)

SciDoctor

Retired Team Member
  • Premium Supporter
  • February 2, 2005
    1,465
    139
    England
    This is an old bug but i have been serching for a resolution for NETWORK clients hanging/failing RTSP when the server returns from hibernation.

    TVSERVER plus local client ... no problems after return from hibernation.

    TVSERVER plus network client .. client hangs at RTSP and needs to be killed.

    Restart servcie and RTSP is available again on the netwrok client.

    no reboots are necessary .

    The TVSERVER fails to reinitialise the RTSP an standby/hibernation return.

    SVN 19396 on both machines .

    VISTA 32 server , network client XPsp3.

    >>>Aftter standby/hibernate controler fails to start streaming<<<<

    2008-06-20 21:38:54.265280 [5]: Timeshifting epg grabber started.
    2008-06-20 21:38:54.269186 [5]: dvb:grab epg...
    2008-06-20 21:38:54.275045 [5]: user:tyan card:1 sub:0 add stream:C:\ProgramData\Team MediaPortal\MediaPortal TV Server\timeshiftbuffer\live1-0.ts.tsbuffer
    2008-06-20 21:38:54.276998 [5]: Controller: StartTimeShifting started on card:1 to C:\ProgramData\Team MediaPortal\MediaPortal TV Server\timeshiftbuffer\live1-0.ts.tsbuffer

    >>>>>After service restart notice the difference .RTSP is active.<<<

    2008-06-20 21:47:24.171121 [11]: Timeshifting epg grabber started.
    2008-06-20 21:47:24.173074 [11]: dvb:grab epg...
    2008-06-20 21:47:24.179909 [11]: user:tyan card:1 sub:0 add stream:C:\ProgramData\Team MediaPortal\MediaPortal TV Server\timeshiftbuffer\live1-0.ts.tsbuffer
    2008-06-20 21:47:24.183815 [11]: RTSP: start streamer
    2008-06-20 21:47:24.197486 [RTSP Streaming thread]: RTSP: Streamer started
    2008-06-20 21:47:24.202369 [11]: RTSP: add stream stream1.0 file:C:\ProgramData\Team MediaPortal\MediaPortal TV Server\timeshiftbuffer\live1-0.ts.tsbuffer
    2008-06-20 21:47:24.209204 [11]: Controller: StartTimeShifting started on card:1 to C:\ProgramData\Team MediaPortal\MediaPortal TV Server\timeshiftbuffer\live1-0.ts.tsbuffer


    Is this the cause of the problem

    2008-06-20 18:57:48.687500 [RTSP Streaming thread]: RTSP: Streamer stopped

    Even though

    2008-06-20 18:57:56.093750 [PowerEventThread]: Controller: setup streaming

    Is this failing ? Powerschedular bug?

    At service restart

    2008-06-20 21:45:03.425246 [TVService]: Controller: setup streaming

    This handles the rtsp streaming initializing and all works fine.
     

    SciDoctor

    Retired Team Member
  • Premium Supporter
  • February 2, 2005
    1,465
    139
    England
    Further testing has shown the problem of RTSP not being initialized correctly is due to the 'reinit service onwake-up' in Powerscheduler/ADVANCED tab.

    With this dissabled then there are no problems (See logs) for network clients.

    2008-06-21 14:38:27.573530 [11]: Timeshifting epg grabber started.
    2008-06-21 14:38:27.576460 [11]: dvb:grab epg...
    2008-06-21 14:38:27.584272 [11]: user:acer521 card:1 sub:0 add stream:C:\ProgramData\Team MediaPortal\MediaPortal TV Server\timeshiftbuffer\live1-0.ts.tsbuffer
    2008-06-21 14:38:27.586225 [11]: RTSP: add stream stream1.0 file:C:\ProgramData\Team MediaPortal\MediaPortal TV Server\timeshiftbuffer\live1-0.ts.tsbuffer
    2008-06-21 14:38:27.595990 [11]: Controller: StartTimeShifting started on card:1 to C:\ProgramData\Team MediaPortal\MediaPortal TV Server\timeshiftbuffer\live1-0.ts.tsbuffer

    Enabled and the problems exist for network clients and RTSP as previous post.
     

    SciDoctor

    Retired Team Member
  • Premium Supporter
  • February 2, 2005
    1,465
    139
    England
    If any tester has network clients can they test to see if they see a problem with Powerscheduler and 'reinit service onwake-up' and the failure of RTSP with network clients.

    If changing the settings in Powerscheduler you will need to stop/start the service as this will reinitialize the PS settings correctly.
     

    Bavarian

    Retired Team Member
  • Premium Supporter
  • April 4, 2005
    698
    167
    Germany, Bayern
    Home Country
    Germany Germany
    Hi SciDoctor,

    I have changed the shutdown routine for RTSP.
    Can you please try latest SVN and post the log for me?
     

    Jeditrav

    Portal Pro
    May 17, 2007
    319
    20
    Home Country
    New Zealand New Zealand
    Hi,

    might be having similar problem, 'unable to start timeshifting, unknown error' after wake from hibernation - see here
    Tourettes thinks they may be same problem (see here) - this is, however, on a standalone setup so not sure if related. Will post logs later in day.
     

    adams79

    MP Donator
  • Premium Supporter
  • June 23, 2008
    54
    3
    With latest svn (16/08),
    activating the flag "reinitialize service at startup" i got this error in the log:

    2008-08-18 23.42.42.578125 [PowerEventThread]: TV service PowerEventThread: Exception: System.NullReferenceException: Object reference not set to an instance of an object.
    at TvEngine.PowerScheduler.PowerScheduler.get_DisAllo wShutdown()
    at TvEngine.PowerScheduler.PowerScheduler.SetWakeupTi mer()
    at TvEngine.PowerScheduler.PowerScheduler.OnPowerEven t(PowerEventType powerStatus)
    at TvService.Service1.OnPowerEvent(PowerEventType powerStatus)
    at TvService.Service1.PowerEventThreadWndProc(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam)
    at TvService.Service1.GetMessageA(MSG& msg, IntPtr hWnd, Int32 uMsgFilterMin, Int32 uMsgFilterMax)
    at TvService.Service1.PowerEventThread()
     

    adams79

    MP Donator
  • Premium Supporter
  • June 23, 2008
    54
    3
    Bavarian: no news on this?

    Thank you very much!
     

    Users who are viewing this thread

    Top Bottom