Unhandled exception in TV Server (1 Viewer)

CyberSimian

Test Group
  • Team MediaPortal
  • June 10, 2013
    2,310
    1,403
    Southampton
    Home Country
    United Kingdom United Kingdom
    Country flag
    I think that this is a different exception to the others that have been reported. This is what happened:
    • 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.
    Looking at the TV Server log (attached), I noticed an interesting combination of circumstances:
    • 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.
    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)


    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
     

    Attachments

    • tv_server_unhandled_exception.zip
      21.7 KB · Views: 0

    Users who are viewing this thread

    Similar threads

    I made some improvements to loading the dashboard in upcoming v6.0.4, I'm not 100% sure if it fixes this particular issue but please notify if not.
    I made some improvements to loading the dashboard in upcoming v6.0.4, I'm not 100% sure if it fixes this particular issue but...
    Trakt error when start with MP crash: [2020-03-07 11:13:58,044] [Log ] [DashShows] [ERROR] - Exception...
    Replies
    1
    Views
    518
    Thank you for performing this test, and confirming @joecrow 's suspicion as to the cause of the problem. In principle the same problem exists with other EPG sources, such as the broadcast EPG that I use with DVB-T/T2. When a programme first appears in the EPG (7 days ahead of its broadcast time), some programmes have a generic...
    Thank you for performing this test, and confirming @joecrow 's suspicion as to the cause of the problem. In principle the same...
    TV Server 1.25. Windows 10. This has been an issue for many years, if not since inception, and I hoped it would be resolved...
    Replies
    10
    Views
    1K
    The broadcast EPG for DVB-T in the UK has the capability to flag programmes that are interrupted partway through (e.g. by a short news bulletin), and DVRs with appropriate code can use this information to record both parts when you schedule the first part to record. I had always assumed that this capability was not implemented in "TV...
    The broadcast EPG for DVB-T in the UK has the capability to flag programmes that are interrupted partway through (e.g. by a short...
    The broadcast EPG for DVB-T in the UK has the capability to flag programmes that are interrupted partway through (e.g. by a short...
    Replies
    0
    Views
    296
    I believe I have a solution for this and should be fixed in v6.0.4+.
    I believe I have a solution for this and should be fixed in v6.0.4+.
    Trakt crashed Mediaportal if no Internet in home lan: [2019-02-12 22:00:04,626] [Error ] [CheckConnection] [ERROR] - MediaPortal...
    Replies
    2
    Views
    696
    Having used MP1 since 15 years, these epg related problems occuring after a fresh install stumble me. Needed to change a system hdd and decided it was time for a clean install anyway. Other hardware (C2D, 8 Gb ram, no tv cards - IP only) unchanged. Was running an earlier Win10 version with MP 1.24 which had been updated for years...
    Having used MP1 since 15 years, these epg related problems occuring after a fresh install stumble me. Needed to change a system...
    Having used MP1 since 15 years, these epg related problems occuring after a fresh install stumble me. Needed to change a system...
    Replies
    0
    Views
    270
    Top Bottom