tvservice crashes unexpectedly (1 Viewer)

Olodin

MP Donator
  • Premium Supporter
  • September 19, 2004
    166
    4
    TV-Server Version: Media Portal 1.0.0.0
    MediaPortal Version: Media Portal 1.0.0.0
    MediaPortal Skin: Monochrome
    Windows Version: Windows XP Pro SP3 with latest patches
    CPU Type: Athlon X2 4850e
    HDD: Western Digital WD7500AAKS 750GB
    Memory: 1 x Kingston 2 GB DDR2-800
    Motherboard: Asus M3N78-EM
    Video Card: Onboard GeForce 8300
    Video Card Driver: 6.14.11.7521
    Sound Card: Realtek HD (onboard)
    Sound Card AC3: Optical SPDIF
    Sound Card Driver: 5.10.0.5745
    1. TV Card: FloppyDTV DVB-S-CI
    1. TV Card Type: DVB-S
    1. TV Card Driver: 4.8.0
    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: Nvidia Purevideo
    MPEG2 Audio Codec: Nvidia Purevideo
    h.264 Video Codec:
    Satelite/CableTV Provider: Astra 19.2°E
    HTPC Case: Silverstone LC-10B
    Cooling:
    Power Supply: Coba 350W
    Remote: Logitech Harmony 555
    TV: Samsung 27" LCD LE-27T51B
    TV - HTPC Connection: Sub-D/VGA @ 1360x768

    Since a new installation of MP 1.0.0.0 with TV-Server sometimes crashes. There is an entry in the eventlog, I've searched the TV-Server logs but found nothing obvious in them.

    This always happens when the PC is idle in Basic Home screen. I get back to it, turn on the TV and there is a message "Connection to tvservice was lost" (sorry, don't have a screenshot).

    See the screenshot when this happend today at 18:16 local time. Attached are all logs.

    I've set the service to restart when it crashes, so this doesn't make MediaPortal unusable, but it's a bit confusing for the users of the MediaPortal PC.
     

    Attachments

    • eventlog_tvservice.JPG
      eventlog_tvservice.JPG
      34.5 KB

    Marvman

    Retired Team Member
  • Premium Supporter
  • November 14, 2007
    1,163
    735
    Bavaria
    Home Country
    Germany Germany
    Hi Olodin,

    did you try to disable "grab EPG when idle" option in TV-Server config?
     

    Olodin

    MP Donator
  • Premium Supporter
  • September 19, 2004
    166
    4
    I remembered that setting and have disabled "grab EPG when idle" some days ago. Just checked the eventlog: no tvservice crashes since then.

    What I wonder: there is nothing in the logs, tvservice just had stopped. Can I enable some debug logging to get hold of the error?

    In any case: I will enable "grab EPG when idle" and will see if it crashes again.
     

    Olodin

    MP Donator
  • Premium Supporter
  • September 19, 2004
    166
    4
    Please try to find a way to reproduce the crash.

    After enabling "grab EPG when idle" yesterday morning, I had the next crash in the evening. This time there is also a backtrace in the logs:

    Code:
    2009-02-28 19:23:42.359375 [PowerEventThread]: TV service PowerEventThread 537
    2009-02-28 19:23:49.125000 [PowerEventThread]: TV service PowerEventThread 49385
    2009-02-28 19:23:49.265625 [PowerEventThread]: TV service PowerEventThread 49385
    2009-02-28 19:23:51.343750 [PowerEventThread]: TV service PowerEventThread 537
    2009-02-28 19:23:51.343750 [PowerEventThread]: TV service PowerEventThread 537
    2009-02-28 19:25:49.906250 [PowerEventThread]: TV service PowerEventThread 49385
    2009-02-28 19:25:49.984375 [PowerEventThread]: TV service PowerEventThread 49385
    2009-02-28 19:25:53.921875 [PowerEventThread]: TV service PowerEventThread 49385
    2009-02-28 19:26:54.687500 [EPG Update thread]: EPG: database updated for #0 EURONEWS
    2009-02-28 19:26:54.687500 [EPG Update thread]: user:epg remove
    2009-02-28 19:26:54.687500 [EPG Update thread]: tvcard:FreeSubChannel:1 #0 keep graph=False
    2009-02-28 19:26:54.687500 [EPG Update thread]: DVB subch:0 Decompose()
    2009-02-28 19:26:54.687500 [EPG Update thread]: FreeSubChannel CA: freeing sub channel : 0
    2009-02-28 19:26:54.687500 [EPG Update thread]: tvcard:FreeAllSubChannels:
    2009-02-28 19:26:54.687500 [EPG Update thread]: dvb:StopGraph
    2009-02-28 19:26:54.796875 [EPG Update thread]: Tvservice stopped due to a app domain exception System.AccessViolationException:
     Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
       at DirectShowLib.IMediaControl.Stop()
       at TvLibrary.Implementations.DVB.TvCardDvbBase.StopGraph()
       at TvLibrary.Implementations.TvCardBase.FreeSubChannel(Int32 id, Boolean continueGraph)
       at TvLibrary.Implementations.DVB.TvCardDvbBase.FreeSubChannel(Int32 id)
       at TvService.EpgGrabbing.Stop(User user)
       at TvService.TVController.StopGrabbingEpg(User user)
       at TvService.EpgCard.UpdateDatabaseThread()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
    2009-02-28 19:27:56.687500 [TVService]: TVService v1.0.0.21149 is starting up on Windows XP (Service Pack 3)
    2009-02-28 19:27:56.687500 [TVService]: Controller: Initilizing TVServer
    2009-02-28 19:27:56.687500 [TVService]: Controller: 1 init attempt
    2009-02-28 19:27:56.687500 [PowerEventThread]: TV service PowerEventThread message loop is running
    2009-02-28 19:27:56.718750 [TVService]: C:\Dokumente und Einstellungen\All Users\Anwendungsdaten\Team MediaPortal\MediaPortal TV Server\gentle.config
    2009-02-28 19:27:56.718750 [TVService]: Controller: using MySQL database connection: Server=mppc;Database=MpTvDb;User ID=root;Password
    2009-02-28 19:27:56.718750 [TVService]: ----------------------------

    tvservice was automatically restarted by windows after that crash.

    Attached are the full logs
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Sounds like the crash would be on C++ side. If possible try to follow the debugging steps found in:

    Debugging/MemoryDump - MediaPortal Manual Documentation

    Hopeully that will give us more info on the crashing code (I cannot reproduce the crash, so most likely the issue is stream related).

    I'll try this. Could take some days, though. Thx for that info!

    If possible try to use the debug TsWriter.ax binary from the SVN. This will show additional when analyzing the crash dump.
     

    Users who are viewing this thread

    Top Bottom