home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Products
TV-Server
Unhandled exception in TV Server
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="CyberSimian" data-source="post: 1274871" data-attributes="member: 141969"><p>I think that this is a different exception to the others that have been reported. This is what happened:</p><ul> <li data-xf-list-type="ul">I woke the system from hibernation.</li> <li data-xf-list-type="ul">From the Windows 7 desktop, I pressed the START button on the remote control to start MP 1.25f.</li> <li data-xf-list-type="ul">On the MP splash screen, the "Starting TV Server" text appeared unexpectedly.</li> <li data-xf-list-type="ul">After a long wait, the MP "Home" panel appeared.</li> <li data-xf-list-type="ul">Attempting to display the "Recorded TV" panel resulted in the "No connection" panel appearing.</li> <li data-xf-list-type="ul">Rebooting the system restored normal behaviour.</li> </ul><p>Looking at the TV Server log (attached), I noticed an interesting combination of circumstances:</p><ul> <li data-xf-list-type="ul">The system normally wakes at 06:00 to perform a manually-scheduled 30-minute recording that grabs the EPG from the broadcast datastream.</li> <li data-xf-list-type="ul">The EPG grabbing part usually takes 7-8 minutes.</li> <li data-xf-list-type="ul">The database-updating part normally takes around 20 minutes.</li> <li data-xf-list-type="ul">So the total time taken is typically around 27 minutes (i.e. just less than the 30-minute recording).</li> <li data-xf-list-type="ul">The log shows that the database-updating part was still occurring when the recording finished, and the system hibernated.</li> <li data-xf-list-type="ul">From a previous log, there are usually 138 occurrences of the word "inserted" for a complete EPG, but in the problem log there are only 134. So TV Server was almost at the end of updating the database, but not quite. In fact, it looks as though it was in the middle of updating the EPG entries for the "Cbeebies" channel when the system hibernated.</li> </ul><p>The problem occurred when the system woke, and TV Server issued an SQL command which possibly failed to respond within the specified timeout:</p><p></p><p>[code][2020-06-19 07:31:23,839] [Log ] [26 ] [INFO ] - Tvservice stopped due to an unhandled app domain exception System.NullReferenceException: Object reference not set to an instance of an object.</p><p> at MySql.Data.MySqlClient.MySqlCommand.TimeoutExpired(Object commandObject)</p><p> at System.Threading.TimerQueueTimer.CallCallbackInContext(Object state)</p><p> at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)</p><p> at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)</p><p> at System.Threading.TimerQueueTimer.CallCallback()</p><p> at System.Threading.TimerQueueTimer.Fire()</p><p> at System.Threading.TimerQueue.FireNextTimers()</p><p> at System.Threading.TimerQueue.AppDomainTimerCallback(Int32 id)[/code]</p><p></p><p></p><p>I have had this situation occur before, but the TV Server log was not in debug mode, so it was not possible to identify possible causes of the problem.</p><p></p><p>-- from CyberSimian in the UK</p></blockquote><p></p>
[QUOTE="CyberSimian, post: 1274871, member: 141969"] I think that this is a different exception to the others that have been reported. This is what happened: [LIST] [*]I woke the system from hibernation. [*]From the Windows 7 desktop, I pressed the START button on the remote control to start MP 1.25f. [*]On the MP splash screen, the "Starting TV Server" text appeared unexpectedly. [*]After a long wait, the MP "Home" panel appeared. [*]Attempting to display the "Recorded TV" panel resulted in the "No connection" panel appearing. [*]Rebooting the system restored normal behaviour. [/LIST] Looking at the TV Server log (attached), I noticed an interesting combination of circumstances: [LIST] [*]The system normally wakes at 06:00 to perform a manually-scheduled 30-minute recording that grabs the EPG from the broadcast datastream. [*]The EPG grabbing part usually takes 7-8 minutes. [*]The database-updating part normally takes around 20 minutes. [*]So the total time taken is typically around 27 minutes (i.e. just less than the 30-minute recording). [*]The log shows that the database-updating part was still occurring when the recording finished, and the system hibernated. [*]From a previous log, there are usually 138 occurrences of the word "inserted" for a complete EPG, but in the problem log there are only 134. So TV Server was almost at the end of updating the database, but not quite. In fact, it looks as though it was in the middle of updating the EPG entries for the "Cbeebies" channel when the system hibernated. [/LIST] The problem occurred when the system woke, and TV Server issued an SQL command which possibly failed to respond within the specified timeout: [code][2020-06-19 07:31:23,839] [Log ] [26 ] [INFO ] - Tvservice stopped due to an unhandled app domain exception System.NullReferenceException: Object reference not set to an instance of an object. at MySql.Data.MySqlClient.MySqlCommand.TimeoutExpired(Object commandObject) at System.Threading.TimerQueueTimer.CallCallbackInContext(Object state) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.TimerQueueTimer.CallCallback() at System.Threading.TimerQueueTimer.Fire() at System.Threading.TimerQueue.FireNextTimers() at System.Threading.TimerQueue.AppDomainTimerCallback(Int32 id)[/code] I have had this situation occur before, but the TV Server log was not in debug mode, so it was not possible to identify possible causes of the problem. -- from CyberSimian in the UK [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Products
TV-Server
Unhandled exception in TV Server
Contact us
RSS
Top
Bottom