Stay Awake Whilst Loading EPG (2 Viewers)

jameson_uk

Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,257
    2,533
    Birmingham
    Home Country
    United Kingdom United Kingdom
    See if you can manage to reproduce the previous case where standby is initiated after xmltv.
    I think this happens my xmltv grabber is running (I set it is a process to prevent standby) and it taking longer than then standby timeout set in powerscheduler. I am guessing log1 is the same as above? log2 should be better?

    (only tv.log and streaming.log created so I have only uploaded tv.log files)

    both times the system still went to sleep in the middle of import
     

    jameson_uk

    Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,257
    2,533
    Birmingham
    Home Country
    United Kingdom United Kingdom
    Left your DLLs in last night and when the machine woke and tried to grab file I have this in error.log
    2009-12-10 05:02:18.062500 [XmlTvImporter]: BusinessLayer: InsertPrograms error - Thread is running or terminated; it cannot restart., at System.Threading.Thread.StartupSetApartmentStateInternal()
    at System.Threading.Thread.Start()
    at TvDatabase.TvBusinessLayer.InsertPrograms(List`1 aProgramList, ThreadPriority aThreadPriority)

    Nothing odd in tv.log (attached the bits in tv.log.bak and tv.log between machine waking for XMLtv grab and going back to sleep.

    This would suggest a bug in your TVBusinessLayer changes?
     

    arion_p

    Retired Team Member
  • Premium Supporter
  • February 7, 2007
    3,367
    1,642
    Athens
    Home Country
    Greece Greece
    Left your DLLs in last night and when the machine woke and tried to grab file I have this in error.log
    2009-12-10 05:02:18.062500 [XmlTvImporter]: BusinessLayer: InsertPrograms error - Thread is running or terminated; it cannot restart., at System.Threading.Thread.StartupSetApartmentStateInternal()
    at System.Threading.Thread.Start()
    at TvDatabase.TvBusinessLayer.InsertPrograms(List`1 aProgramList, ThreadPriority aThreadPriority)
    Nothing odd in tv.log (attached the bits in tv.log.bak and tv.log between machine waking for XMLtv grab and going back to sleep.

    This would suggest a bug in your TVBusinessLayer changes?

    Yep, this is a bug in the changes I made to TVBusinessLayer, I will post updated dlls later today.

    I still cannot figure out why PowerScheduler ignores XmlTV plugin when checking if standby is allowed. Btw: you have enabled "Prevent Standby When Grabbing EPG" in PowerScheduler settings, right?
     

    jameson_uk

    Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,257
    2,533
    Birmingham
    Home Country
    United Kingdom United Kingdom
    I still cannot figure out why PowerScheduler ignores XmlTV plugin when checking if standby is allowed. Btw: you have enabled "Prevent Standby When Grabbing EPG" in PowerScheduler settings, right?
    :oops: not sure I have.... I seem to remember disabling all the DVB EPG grabbing options I could find as they were causing me a few problems.... Will try this again tonight with this option ticked
     

    arion_p

    Retired Team Member
  • Premium Supporter
  • February 7, 2007
    3,367
    1,642
    Athens
    Home Country
    Greece Greece
    Here is a new TVBusinessLayer.dll, should solve the error you saw in your logs the second day of use.
     

    jameson_uk

    Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,257
    2,533
    Birmingham
    Home Country
    United Kingdom United Kingdom
    Here is a new TVBusinessLayer.dll, should solve the error you saw in your logs the second day of use.
    Used this new file and ticked the prevent standby whilst grabbing EPG option. Seems to have dont the trick :D

    XMLTV import started|19:55:22
    XMLTV import ended|19:55:31
    Business Layer Started|19:55:36
    Business Layer Ended|20:03:40
    this is with a 4 minute timeout in powerscheduler. Also lots of these in tv.log
    Code:
    2009-12-14 19:59:21.937500 [Powerscheduler Timer]: PowerScheduler: lastUserTime: 19:58:21.9531 , False
    2009-12-14 19:59:21.937500 [Powerscheduler Timer]: NetworkMonitorHandler: standby allowed
    2009-12-14 19:59:21.953125 [Powerscheduler Timer]: EpgGrabbingHandler: TvEngine.XmlTvImporter does not allow standby
    2009-12-14 19:59:21.953125 [Powerscheduler Timer]: PowerScheduler.DisAllowShutdown: handler EpgGrabbingHandler wants to prevent standby


    One slight oddity though was that machine went to sleep after finishing EPG powerscheduler set
    Code:
    Set wakeup timer to wakeup system in 1488.63229166667 minutes
    but the machine woke itself up exactly 10 minutes after going to sleep :confused: Has never done this before. I am assuming that this is an error introduced in the amended powerscheduler dll? but I can go back to the original one now anyway as the change was only in an attempt to force more logging ?

    Going to leave xmltv and tvbusinesslayer dlls in place tonight to see what happens when EPG tries to grab at 5am tomorrow.
     

    arion_p

    Retired Team Member
  • Premium Supporter
  • February 7, 2007
    3,367
    1,642
    Athens
    Home Country
    Greece Greece
    Used this new file and ticked the prevent standby whilst grabbing EPG option. Seems to have dont the trick :D

    XMLTV import started|19:55:22
    XMLTV import ended|19:55:31
    Business Layer Started|19:55:36
    Business Layer Ended|20:03:40
    this is with a 4 minute timeout in powerscheduler. Also lots of these in tv.log
    Code:
    2009-12-14 19:59:21.937500 [Powerscheduler Timer]: PowerScheduler: lastUserTime: 19:58:21.9531 , False
    2009-12-14 19:59:21.937500 [Powerscheduler Timer]: NetworkMonitorHandler: standby allowed
    2009-12-14 19:59:21.953125 [Powerscheduler Timer]: EpgGrabbingHandler: TvEngine.XmlTvImporter does not allow standby
    2009-12-14 19:59:21.953125 [Powerscheduler Timer]: PowerScheduler.DisAllowShutdown: handler EpgGrabbingHandler wants to prevent standby
    Nice to hear it worked (at least the first part) :). Let's see if it still works the second time.

    One slight oddity though was that machine went to sleep after finishing EPG powerscheduler set
    Code:
    Set wakeup timer to wakeup system in 1488.63229166667 minutes
    but the machine woke itself up exactly 10 minutes after going to sleep :confused: Has never done this before. I am assuming that this is an error introduced in the amended powerscheduler dll? but I can go back to the original one now anyway as the change was only in an attempt to force more logging ?

    Going to leave xmltv and tvbusinesslayer dlls in place tonight to see what happens when EPG tries to grab at 5am tomorrow.
    This is strange, could there be something else that woke the system up?
    Anyway you can revert the PowerScheduler dlls. Just monitor it for a couple of days without restarting tvservice so we know the second issue (error starting thread) is resolved too.
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    This is strange, could there be something else that woke the system up?
    Anyway you can revert the PowerScheduler dlls. Just monitor it for a couple of days without restarting tvservice so we know the second issue (error starting thread) is resolved too.

    Missing Remote

    Good quide to troubleshoot S3/S4 issues. Should be even able to tell who/what did wake up the PC.
     

    jameson_uk

    Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,257
    2,533
    Birmingham
    Home Country
    United Kingdom United Kingdom
    Good quide to troubleshoot S3/S4 issues. Should be even able to tell who/what did wake up the PC.
    XP so can not query lastwake etc. As I said above machine has been workiing fine with S3 for a year or so now and this is the first time I have noticed it wake when it should not have. Have swapped back powerscheduler dll from SVN and worked fine this morning.

    Will monitor over the next couple of days.
     

    Users who are viewing this thread

    Top Bottom