[Bug] TVServer crash (1 Viewer)

wjw

Portal Pro
July 13, 2008
343
33
United Kingdom United Kingdom
Country flag
MediaPortal Version: 1.1.3
MediaPortal Skin: Blue3 Wide
Windows Version: Win 7 RC 32bit
CPU Type: Intel Core Duo E8200 2.66 Ghz
HDD: 2xWD 1Tb drives
Memory: Kingston 2x1 Gb
Motherboard: Gigabyte GA-73PVM-S2H GeForce 7100
Video Card: nVidia 9400GT silent
Video Card Driver:
Sound Card:
Sound Card AC3: Optical Out
Sound Card Driver:
1. TV Card: Hauppauge Wintv HVR4000
1. TV Card Type: DVB-S
1. TV Card Driver:
2. TV Card:
2. TV Card Type:
2. TV Card Driver:
3. TV Card:
3. TV Card Type:
3. TV Card Driver:
4. TV Card:
4. TV Card Type:
4. TV Card Driver:
MPEG2 Video Codec: Cyberlink/MPC/ffdshow
MPEG2 Audio Codec:
h.264 Video Codec: Cyberlink/MPC/ffdshow
Satelite/CableTV Provider: Astra 28E
HTPC Case: Antec Fusion
Cooling:
Power Supply:
Remote:
TV:
TV - HTPC Connection: HDMI


I have been having a very occasional problem with TV Server crashing and iI think I have finally identified a common thread. I have some series set up to record "every time on this channel" which is usually OK, but sometimes it seems that when waking up to record a repeat of one that I haven't yet watched (so it's already in the database) things go wrong.

I attach a log of one such failure that I just happened to see yesterday. I know the machine woke up in the afternoon - but I wasn't watching it at the time - then shut down later, as it should. I had another scheduled recording (different program) later that evening and noticed that the machine had not woken up on time. I switched on manually and discovered that TV Service had been lost. I really needed the new recording so did a system reboot (quickest solution) so couldn't totally recreate the situation for full logs.

I attach the TV.bak log from the previous afternoon. This shows that

2011-03-13 16:02:45.988000 [PowerScheduler Waiter(6)]: PowerScheduler: OnResume

it woke up to record, then until

2011-03-13 16:11:13.236000 [scheduler thread(10)]: Scheduler: Schedule 13/03/2011 16:10:00-The Spice Trail (Pepper & Cinnamon) has already been recorded (17/02/2011 20:53:09) - aborting...

it records that this program already exists, then a whole load of stuff I don't understand, ending in

2011-03-13 17:03:29.502000 [TvClient-TvHome: HeartBeat transmitter thread(21)]: RemoteControl - Disconnected st : at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at TvControl.RemoteControl.InvokeEvents()
at TvControl.RemoteControl.RefreshRemotingConnectionStatus()
at TvControl.RemoteControl.get_Instance()
at TvPlugin.TVHome.HeartBeatTransmitter()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

which would be around the time in the afternoon that I noticed the machine was no longer on. The next line

2011-03-13 19:57:21.292000 [TvClient-TvHome: HeartBeat transmitter thread(28)]: TCP connect took : 1000

is when I manually switched on in the evening, before I did the system restart because MP client couldn't see the TV Service.

I really hope someone can identify what is going on here because apart from this occasional fault 1.1.2 (and now 3) have been superbly reliable. This is a real problem because it appears that once this situation has arisen any scheduled wake ups just don't happen. Unfortunately I don't think this is consistent because I'm sure that there are other occasions when repeats are properly handled.
 

Attachments

jameson_uk

Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,258
    2,528
    Birmingham
    United Kingdom United Kingdom
    Country flag
    Could you please look in the event log and attach the details of the crash. I have a feeling I have seen this myself a couple of times but as this is a hard crash there is nothing in logs relating to the actual crash only the events leading up to it.

    All the lines relating to
    Code:
    2011-03-13 17:03:29.502000 [TvClient-TvHome: HeartBeat transmitter thread(21)]: RemoteControl - Disconnected st : at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
    are just saying that the TV plugin is trying to query the TV service but it can't (because it has crashed)

    I really hope someone can identify what is going on here because apart from this occasional fault 1.1.2 (and now 3) have been superbly reliable. This is a real problem because it appears that once this situation has arisen any scheduled wake ups just don't happen. Unfortunately I don't think this is consistent because I'm sure that there are other occasions when repeats are properly handled.
    Once the service has totally crashed then it will not do anything (wake up machine, start recordings etc). You can tell windows to automatically restart a service if it fails, not an ideal solution but can help in these rare situations.
     

    wjw

    Portal Pro
    July 13, 2008
    343
    33
    United Kingdom United Kingdom
    Country flag
    jameson_uk

    Which event logs do you mean?

    Unfortunately, I don't think the Windows solution is all that reliable either. I have it set to restart, but it doesn't!
     

    wjw

    Portal Pro
    July 13, 2008
    343
    33
    United Kingdom United Kingdom
    Country flag
    OK, contents of the Windows Event Log:

    Log Name: Application
    Source: Application Error
    Date: 13/03/2011 16:11:14
    Event ID: 1000
    Task Category: (100)
    Level: Error
    Keywords: Classic
    User: N/A
    Computer: LoungePC-PC
    Description:
    Faulting application name: TVService.exe, version: 1.1.3.0, time stamp: 0x4d667637
    Faulting module name: KERNELBASE.dll, version: 6.1.7601.17514, time stamp: 0x4ce7b8f0
    Exception code: 0xe053534f
    Fault offset: 0x0000b760
    Faulting process id: 0x%9
    Faulting application start time: 0x%10
    Faulting application path: %11
    Faulting module path: %12
    Report Id: %13
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    <System>
    <Provider Name="Application Error" />
    <EventID Qualifiers="0">1000</EventID>
    <Level>2</Level>
    <Task>100</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2011-03-13T16:11:14.000000000Z" />
    <EventRecordID>20954</EventRecordID>
    <Channel>Application</Channel>
    <Computer>LoungePC-PC</Computer>
    <Security />
    </System>
    <EventData>
    <Data>TVService.exe</Data>
    <Data>1.1.3.0</Data>
    <Data>4d667637</Data>
    <Data>KERNELBASE.dll</Data>
    <Data>6.1.7601.17514</Data>
    <Data>4ce7b8f0</Data>
    <Data>e053534f</Data>
    <Data>0000b760</Data>
    </EventData>
    </Event>

    Hope this will help.

    PS I thought I had set the service to restart (in fact, I'm sure I had) but when I just checked no actions have been specified. I suspect that applying SP1 may have reset everything - although I really can't see why.
     

    jameson_uk

    Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,258
    2,528
    Birmingham
    United Kingdom United Kingdom
    Country flag
    I have put a fix in to SVN 27682. Not sure this will stop the crash but I think it will and it should help make things a little more stable anyway
     

    wjw

    Portal Pro
    July 13, 2008
    343
    33
    United Kingdom United Kingdom
    Country flag
    Thanks for that. I look forward to trying it out when 1.2 is released.
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    E TVserver RTSP Input / Output interfaces 0
    D [solved] TVServer Plugin must be missing something. General Development (no feature request here!) 1
    Dark Eyes Updated to Windows 10, now TVServer won't work Installation, configuration support 1
    badboyxx TV card is listed as unknown in TV-server config General 4
    G MP 1.21 TVserver race condition when cant delete recording triggered by episode management General Support 0
    T How do I install the Kodi TVServer plugin General 8
    C Manual Control doesn't work anymore inside TVServer General Support 4
    I TVServer issues Installation, configuration support 2
    T Things I wish I had known setting up and first using TVServer for good reception of DVB-T Installation, configuration support 0
    A MediaPortal crash (and restart) on LiveTV after Windows Update (Sep 2020) driver update for Intel HD Graphics 4600 General Support 0
    F MediaPortal 1.16 server crashing due to user error? General Support 5
    L Service keeps crashing General 5
    U [solved] MediaPortal crashing on startup General Support 10
    RoChess Weird GPU crash -- possible cause: resizing media MediaPortal 1 Talk 8
    torone Dritter versuch mit Mediaportal 2 Allgemeines Support- und Diskussionsforum 1
    W [solved] MP suddenly Crashes when starting live TV on most channels and on recordings from the same channels General Support 20
    W [solved] MP suddenly Crashes when starting live TV on some channels and on some recordings Television (MyTV frontend and TV-Server) 1
    D [solved] Changed username in Win10, now TV Server config crashes on fresh install Installation, configuration support 1
    ajs Trakt error when start with MP crash Trakt 1
    R TV server crash with WintTV quadHD General 0
    Dark Eyes TVService locks up or fails to restart on resuming from sleep, and crashes when grabbing EPG Installation, configuration support 7
    atlantic [solved] MP1.24 Pre released crash in TV General Support 12
    RoChess Random GPU crash leads to MePo restart, but works fine afterwards MediaPortal 1 14
    R [fixed] [MP2-819] MP2 Server crashes on ATSC OTA channel scan Submit: Bug Reports 33
    doskabouter 1.23.0 Crash when skipping in a dvd Bugreports 3
    Similar threads

























    Top Bottom