TVservice freezes while EPG-grabbing since beta 1.1 (1 Viewer)

mts

Portal Pro
September 2, 2007
317
25
Home Country
Germany Germany
Hi,

I have posted this error some time ago, but with no result.
Now I have installed your latest RC1 with hope that the error is gone - but no luck.

Again the description:
- When I start the TV-Server I can watch TV without problems.
- After a while I stop the liveTV.
- Some time later the EPG-Grabber starts
- As soon as the grabbing is done, the epg-grabber stopps
- When I now try to switch on LiveTV the client freezes
- After killing the TVService the clients do react again.

When I check the client, I see the following:
- the service is running.
- there are no errors in log
- I can start the TVServerConfiguration
- Under Manual-Control I see that all cards are idle
- When I select: TV Servers->IP-Address->"the first DVB-Card" the TVServerConfiguration also freezes!
(The fist card is the FireDTV, the other two are Hauppauge Nova DVB-S2).

After a restart of the TVService everything is working again.-

log: at 10:37:37 I tried to start LiveTV (with freeze)

cu
mts
 

tourettes

Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Re: daily crashes since beta 1.1

    21-02-2010 02:12:18.965 PMT Pid wasn't found on the PAT. Channel may have moved, try a new channel scan.
    21-02-2010 02:12:19.168 PMT Pid wasn't found on the PAT. Channel may have moved, try a new channel scan.
    21-02-2010 02:12:19.371 PMT Pid wasn't found on the PAT. Channel may have moved, try a new channel scan.
    21-02-2010 02:12:19.574 PMT Pid wasn't found on the PAT. Channel may have moved, try a new channel scan.

    Just a quess, maybe tuning failure causes EPG grabbing to hang. Please try to retune and make sure no such entries are written in TsWriter.log
     

    mts

    Portal Pro
    September 2, 2007
    317
    25
    Home Country
    Germany Germany
    AW: daily crashes since beta 1.1

    THX,

    I will try this, but anyway you should handle this exception.
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Re: AW: daily crashes since beta 1.1

    THX,

    I will try this, but anyway you should handle this exception.

    Sure, it should be handled better. But I'm not sure if that is even the cause for the hang. Just a guess since I dont know that part of code in detail.
     

    mts

    Portal Pro
    September 2, 2007
    317
    25
    Home Country
    Germany Germany
    AW: daily crashes since beta 1.1

    I have uninstalled the server-App completely and made a fresh reinstall. (There where so many SNV's in use)

    But no I have the following error in log:

    2010-02-21 13:06:45.584511 [(6)]: TVController:ValidateTvControllerParams - incorrect parameters used! user TvControl.User cardId 8 _cards.ContainsKey(cardId) == False CardPresent(cardId) False
    2010-02-21 13:06:45.584511 [(6)]: at TvService.TVController.ValidateTvControllerParams(User user)
    at TvService.TVController.IsTimeShifting(User& user)
    at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
    at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
    at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
    at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
    at System.Runtime.Remoting.Messaging.ServerObjectTerminatorSink.SyncProcessMessage(IMessage reqMsg)
    at System.Runtime.Remoting.Messaging.ServerContextTerminatorSink.SyncProcessMessage(IMessage reqMsg)
    at System.Runtime.Remoting.Channels.CrossContextChannel.SyncProcessMessageCallback(Object[] args)
    at System.Runtime.Remoting.Channels.ChannelServices.DispatchMessage(IServerChannelSinkStack sinkStack, IMessage msg, IMessage& replyMsg)
    at System.Runtime.Remoting.Channels.DispatchChannelSink.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream)
    at System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream)
    at System.Runtime.Remoting.Channels.Tcp.TcpServerTransportSink.ServiceRequest(Object state)
    at System.Runtime.Remoting.Channels.SocketHandler.ProcessRequestNow()
    at System.Runtime.Remoting.Channels.RequestQueue.ProcessNextRequest(SocketHandler sh)
    at System.Runtime.Remoting.Channels.SocketHandler.BeginReadMessageCallback(IAsyncResult ar)
    at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
    at System.Net.ContextAwareResult.CompleteCallback(Object state)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Net.ContextAwareResult.Complete(IntPtr userToken)
    at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
    at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
    at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)


    EDIT: Sorry!!!! There where some older clients, which tried to connect.
     

    mts

    Portal Pro
    September 2, 2007
    317
    25
    Home Country
    Germany Germany
    AW: daily crashes since beta 1.1

    Error is still there.
    I have made a clean install and the "PMT Pid wasn't found..." message is no longer there.

    P.S. I always have to kill the TVService.exe because it is not possible to stop it. (Seems to be a threaded dead-lock).
    The last messages that gets created while stopping the service are this:
    2010-02-21 15:57:18.867078 [(4)]: TV Service: stopping
    2010-02-21 15:57:18.882702 [(4)]: TV service StopRemoting
    2010-02-21 15:57:18.882702 [(4)]: Remoting stopped
    2010-02-21 15:57:18.882702 [(4)]: Controller: DeInit.
    2010-02-21 15:57:18.882702 [(4)]: Controller: HeartBeat monitor stopped...
    2010-02-21 15:57:18.898326 [(4)]: Controller: stop streamer...
    2010-02-21 15:57:18.898326 [(4)]: RTSP: stop streamer
    2010-02-21 15:57:18.898326 [(4)]: RTSP: stop all streams (0)
    2010-02-21 15:57:18.898326 [(4)]: Controller: streamer stopped...
    2010-02-21 15:57:18.898326 [(4)]: Controller: stop scheduler...
    2010-02-21 15:57:18.898326 [(4)]: Scheduler: stopped
    2010-02-21 15:57:18.898326 [(4)]: Controller: scheduler stopped...
    2010-02-21 15:57:18.898326 [(4)]: Controller: stop epg grabber...
    2010-02-21 15:57:18.898326 [(4)]: Controller: epg stopped...
    2010-02-21 15:57:18.898326 [(4)]: Controller: dispose card:MediaPortal IPTV Source Filter
    2010-02-21 15:57:18.898326 [(4)]: Controller: dispose card:RadioWebStream Card (builtin)
    2010-02-21 15:57:18.898326 [(4)]: RadioWebStream:Dispose()
    2010-02-21 15:57:18.898326 [(4)]: Controller: dispose card:FireDTV BDA Tuner DVBS2
    2010-02-21 15:57:18.898326 [(4)]: dvb:Decompose
    2010-02-21 15:57:18.898326 [(4)]: tvcard:FreeAllSubChannels
    2010-02-21 15:57:18.898326 [(4)]: stop
    2010-02-21 15:57:20.413883 [RTSP Streaming thread(8)]: RTSP: Streamer stopped
     

    mts

    Portal Pro
    September 2, 2007
    317
    25
    Home Country
    Germany Germany
    AW: daily crashes since beta 1.1

    Do you have any news for me?
    The problem is making me crazy.

    I think the main problem is that you can not see anything in the log files.
     

    mts

    Portal Pro
    September 2, 2007
    317
    25
    Home Country
    Germany Germany
    AW: TVservice freezes while EPG-grabbing since beta 1.1

    I have solved the problem.
    The TVService freezes while EPG-grabbing.
    It happens only on a few channels.
    I have disabled epg for all channels and have only selected the needed ones.
    Now everything is working very well.

    But anyway you should check the EPG-grabbing.

    without knowing your code:
    I think there is a deadlock somewhere in an EPG-grabbing thread.
    This would also explain that you cannot stop the TVService in the freezed situation, because you probably
    try to destroy all running threads and wait for termination.


    CU
    mts
     

    god_md5

    Portal Pro
    March 24, 2008
    104
    2
    Home Country
    Hong Kong Hong Kong
    same is hang ,i try 1.10rc1..my EPG if setup chinese is hang ,


    2010-03-04 19:28:43.872822 [(21)]: ***** SIGNAL LEVEL: 80, SIGNAL QUALITY: 100 *****
    2010-03-04 19:28:43.872822 [(21)]: **************************************************
    2010-03-04 19:28:43.872822 [(21)]: card: tuned user: epg subchannel: 0
    2010-03-04 19:28:43.872822 [(21)]: user:epg add
    2010-03-04 19:28:43.872822 [DVB EPG timer(12)]: Controller: GrabEpg on card ID == 1
    2010-03-04 19:28:43.888422 [DVB EPG timer(12)]: dvb:grab epg...
     

    Users who are viewing this thread

    Top Bottom