TV-Server doesn't wake up to grap EPG or record scheduled shows (1 Viewer)

seco

Retired Team Member
  • Premium Supporter
  • August 7, 2007
    1,575
    1,239
    Home Country
    Finland Finland
    [UPDATE]
    Better description here: https://forum.team-mediaportal.com/...eduler-synchronization-concurrency-bug-42094/

    Ignore this thread.
    [/UPDATE]

    I didn't have this problem in 0.2.3 so I'm bit out of ideas.

    My HTPC goes to standby as it should, but never wakes up to record scheduled shows or even to grab EPG at the time I have configured it in TV-Server Configuration Powerscheduler.

    I've been trying to get at least EPG grabbing to work running only TV-Server without starting MP but with no luck.

    Some logs attached where I scheduled EPG grab to be at 10.20 and my HTPC went to standby at 10.12. However, at 10.23 my HTPC hadn't woke up so I turned it on manually. Logs look like that TV-Server still thinks that it was automatic wake up instead of manual..

    EDIT: The main problem seems to be the entering to the standby when the error occurs (see error.log). According to brief chat with Bavarian at IRC, it seems that it's somekind of synchronzation issue between threads. _powerManager get's set to null by Stop() but in the same time _powerManager will be still used in DisAllowShutdown.get() causing NPE. Both tv.log's I posted below have wrong dates for wake up (9.7.2008) because of wrong settings so ignore them (with these settings the server should have woke up not earlier than tomorrow :)


    TV-Server Version: 1.0 RC1 SVN 19574
    MediaPortal Version: 1.0 RC1 SVN 19574
    MediaPortal Skin: BlueTwo Wide
    Windows Version: Windows XP SP3
    CPU Type: Intel E8200 2.66GHz
    HDD: Seagate IV 40GB
    Memory: Corsair 2GB 800MHz
    Motherboard: Asus P5E-VM HDMI
    Video Card: Intel X3500 IGP HDMI
    Video Card Driver:
    Sound Card: Realtek HD Integrated
    Sound Card AC3: AC3Filter
    Sound Card Driver:
    1. TV Card: FireDTV DVB-C
    1. TV Card Type:
    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: nVidia Purevideo
    MPEG2 Audio Codec: AC3Filter
    h.264 Video Codec: CoreAVC 1.7
    Satelite/CableTV Provider:
    HTPC Case: Antec Fusion 2
    Cooling: Stock
    Power Supply: Antec 430W
    Remote: Logitech diNovo Mini / FireDTV Remote
    TV: Toshiba 46ZF355
    TV - HTPC Connection: HDMI
     

    seco

    Retired Team Member
  • Premium Supporter
  • August 7, 2007
    1,575
    1,239
    Home Country
    Finland Finland
    • Thread starter
    • Moderator
    • #2
    I added some debug lines to Powerscheduler.cs and found out this:

    In [Powerscheduler Suspender] the _powerManager reference is fine but when [PowerEventThread] is running just before the shutdown, the _powerManager is null and error is logged.


    Error log with Powerscheduler.dll compiled in debug mode
     

    seco

    Retired Team Member
  • Premium Supporter
  • August 7, 2007
    1,575
    1,239
    Home Country
    Finland Finland
    • Thread starter
    • Moderator
    • #3
    Another log with homemade logging

    2008-07-08 18:15:35.750000 [PowerEventThread]: SETTING POWER MANAGER TO NULL VALUE
    (before the only line in PowerScheduler.cs where _powerManager = null; is executed)

    then

    2008-07-08 18:15:35.750000 [PowerEventThread]: POWER MANAGER IS NULL WTF ????
    (on first line in PowerScheduler.cs-DisAllowShutdown get() method)

    and after that, line _powerManager.AllowStandby(); is executed in PowerScheduler.cs-DisAllowShutdown and NullPointerReferenceException occurs

    So what is happening? Plugin is first stopped by PowerEventThread but it will still use it after stopping it??
     

    Users who are viewing this thread

    Top Bottom