TSWriter deadlock potential fix. (30 Viewers)

V12 with 'idle epg' dissabed but 'timeshift epg' enabled has worked fine since this morning if that helps in your hunt for the fault.

Since the BSOD I haven't tried 'idle epg' again; could the crash have ben a one off, did the logs produced help at all.

I can re-run test tomorrow mornining if that helps.
 
Today have a stress test done.

History HD tuner 1 with client
Tuner 2 to 4 stress test

If tuner 1 runs with client there is no still image more on the client even if running on tuner 1 2x History HD.

after a short time to block the other tuner.
only a reboot can help.
 
Last edited:
Hi,

switched off EPG grapping of several days ago. MP is still working, but of cause EPG ran out of informations.

Also I tried to use 2 clients with version before one dvb-t on dvb-s now without problems.
 
I think I have found the issue again! :D

It is when the idle EPG grabber is stopped, it is requesting data that isn't there anymore. It may take a while to fix.

I'll be uploading a file later on.
 
Last edited:
V12 ran fine for 5 days of over 300 schedules (multiple stress tests of 28-36) and normal evening use timshifting/schedules without restart/BSOD locking tuners.

EPG Timeshift enabled; NO idle epg.

Just installed the above files and similar results so far only error in logs is this.

2013-01-21 09:18:15.550216 [Channel state thread(21)]: ChannelState.DoSetChannelStates: An unknown error occured while setting channel states - select cm.* from ChannelMap cm where cm.idChannel =2 and cm.idCard=16 and cm.epgOnly=0
Error: StatementErrorUnclassified
Gentle.Common.GentleException: select cm.* from ChannelMap cm where cm.idChannel =2 and cm.idCard=16 and cm.epgOnly=0 ---> System.Threading.ThreadAbortException: Thread was being aborted.
at SNINativeMethodWrapper.SNIPacketGetConnection(IntPtr packet)
at System.Data.SqlClient.TdsParserStateObject.ProcessSniPacket(IntPtr packet, UInt32 error)
at System.Data.SqlClient.TdsParserStateObject.ReadSni(DbAsyncResult asyncResult, TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParserStateObject.ReadNetworkPacket()
at System.Data.SqlClient.TdsParserStateObject.ReadBuffer()
at System.Data.SqlClient.TdsParserStateObject.ReadByte()
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
at System.Data.SqlClient.SqlDataReader.get_MetaData()
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader()
at Gentle.Framework.SqlStatement.Execute(IDbConnection conn, IDbTransaction tr)
--- End of inner exception stack trace ---
at Gentle.Framework.SqlStatement.Execute(IDbConnection conn, IDbTransaction tr)
at Gentle.Framework.PersistenceBroker.Execute(SqlStatement stmt, IDbConnection dbConnection, IDbTransaction dbTransaction)
at Gentle.Framework.SqlStatement.Execute()
at TvDatabase.TvBusinessLayer.IsChannelMappedToCard(Channel dbChannel, Card card, Boolean forEpg)
at TvService.ChannelStates.DoSetChannelStates(IDictionary`2 cards, ICollection`1 channels, ICollection`1 allUsers, IController tvController)System.Threading.ThreadAbortException: Thread was being aborted.
at SNINativeMethodWrapper.SNIPacketGetConnection(IntPtr packet)
at System.Data.SqlClient.TdsParserStateObject.ProcessSniPacket(IntPtr packet, UInt32 error)
at System.Data.SqlClient.TdsParserStateObject.ReadSni(DbAsyncResult asyncResult, TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParserStateObject.ReadNetworkPacket()
at System.Data.SqlClient.TdsParserStateObject.ReadBuffer()
at System.Data.SqlClient.TdsParserStateObject.ReadByte()
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
at System.Data.SqlClient.SqlDataReader.get_MetaData()
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader()
at Gentle.Framework.SqlStatement.Execute(IDbConnection conn, IDbTransaction tr)
 
Just had a BSOD referenecing Tuner drivers while decomposing substreams using latest build from post above, so obviously some serious problems that were not in V12 with previous 1.3b build I was using .

Logs attached.
 
Thanks for the input.

I am looking into the EPG grabber as it is this that is causing the problem.
 
I don't know if this will help on your work, but here is also a error log after a few days of testing with V12/V2.
 

Attachments

  • log 21.01.2013.zip
    141.6 KB

Users who are viewing this thread

Back
Top Bottom