PowerScheduler++ test versions (2 Viewers)

larsbln

MP Donator
  • Premium Supporter
  • June 12, 2010
    337
    62
    Germany
    Hi michael,

    Thanks for the debugging version. The install script does not work for me (Zugriff verweigert) I copied the files manually but PS++ does not show up in TVServer Plugins anymore.

    Anyway I tried the regular Version 1.2.6.0 and still have the same error with Network Monitor not starting:

    Code:
    2012-02-13 15:48:02.395320 [TVService(6)]: TvService OnStart failed : System.Threading.ThreadAbortException: Der Thread wurde abgebrochen.
      bei System.Threading.Thread.SleepInternal(Int32 millisecondsTimeout)
      bei TvService.TvServiceThread.OnStart()
    2012-02-13 15:48:15.193052 [(14)]: NetworkMonitorHandler: Error in StartNetworkMonitor: System.FormatException: Die Eingabezeichenfolge hat das falsche Format.
      bei System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
      bei System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
      bei System.Int32.Parse(String s, IFormatProvider provider)
      bei System.Diagnostics.PerformanceCounterLib.GetStringTable(Boolean isHelp)
      bei System.Diagnostics.PerformanceCounterLib.get_NameTable()
      bei System.Diagnostics.PerformanceCounterLib.get_CategoryTable()
      bei System.Diagnostics.PerformanceCounterLib.GetCategorySample(String category)
      bei System.Diagnostics.PerformanceCounterLib.GetCategorySample(String machine, String category)
      bei System.Diagnostics.PerformanceCounterCategory.GetCounterInstances(String categoryName, String machineName)
      bei System.Diagnostics.PerformanceCounterCategory.GetInstanceNames()
      bei TvEngine.PowerScheduler.Handlers.ActiveNetworkStandbyHandler.StartNetworkMonitor()

    I browsed through the svn sources but had no luck in finding anything that could cause this :(

    My System is pretty much the same as your testsystem: Windows 7 Ultimate x64 with wired Gbit network.
     

    Wbunaarf

    Portal Pro
    December 9, 2005
    534
    103
    Sweden
    Home Country
    Sweden Sweden
    New beta version 1.2.6.0 for MP 1.2.x / 1.3

    Thank you for re-adding "Only allow standby when on home window"! After initial testing it seems to work just as fine as it used to. The unmute after away feature also seems to be fine even though I haven't tested it very hard. I've had a few times when the sound device has been completely lost though, but I haven't yet spotted a pattern.

    //W
     

    michael_t

    Portal Pro
    November 30, 2008
    1,258
    813
    Home Country
    Germany Germany
    ...Anyway I tried the regular Version 1.2.6.0 and still have the same error with Network Monitor not starting:...
    The error is very strange because it is an exception that is not even defined for the "PerformanceCounterCategory.GetInstanceNames" method. I have no idea why this method call crashes on your system and not on others... Maybe you should reinstall your .NET or even Windows:confused:?

    I am sorry that I cannot help you.

    Michael
     

    michael_t

    Portal Pro
    November 30, 2008
    1,258
    813
    Home Country
    Germany Germany
    You could fix the special debugging version. The error is a general one, maybe from a StringToNumber call.
    Please dont give up on this.
    Well, I cannot do anything with this , even if I want. First, it is a code that I took from the original Powerscheduler without changes and which is used by thousands of users without problems (including me). Second, even if I would rewrite the NetworkMonitor code I would end up with a call to PerformanceCounterCategory.GetInstanceNames which causes the error (the buggy StringToNumber call is part of the internal code of the PerformanceCounterCategory.GetInstanceNames in the .NET library).

    Michael
     

    doveman

    Portal Pro
    February 12, 2008
    2,326
    178
    Home Country
    United Kingdom United Kingdom
    Hmm, seems my idea of modifying restart.vbs to stop and restart the TVservice has a fatal flaw that I overlooked, in that it only runs if MP is running when the PC goes into standby. As I often close MP to play a game before going to bed, when I restart the PC in the morning and start MP, the TV service is not working because it hasn't been stopped/restarted and I have to do this manually (by running a batch file). So if there's any way you could get PowerScheduler++ to do this instead, it would be much better.

    I've just tried again with a batch file triggered by PS++ and it seems to be working, although I'll have to keep testing to see if it works consistently. The batch file I'm using (named resume.bat) is

    Code:
    if "%1" == "suspend" goto OnSuspend
    if "%1" == "wakeup" goto OnWakeUp
    goto Done
     
    :OnSuspend
    taskkill /IM “MediaPortal.exe” /F
    goto Done
     
    :OnWakeUp
    taskkill /IM “TVService.exe” /F
    "C:\Program Files (x86)\Team MediaPortal\MediaPortal\MediaPortal.exe"
    goto Done
     
    :Done

    Note the WakeUp routine doesn't restart TVService as MP does that when it starts. I found it was hanging with net stop TVService, which is why I'm using taskkill.

    The tv.log from this shows

    Code:
    2012-02-24 16:12:30.728355 [PowerEventThread(9)]: OnPowerEvent: PowerStatus: Suspend
    2012-02-24 16:12:30.728355 [PowerEventThread(9)]: OnPowerEventHandler: PowerStatus: Suspend
    2012-02-24 16:12:30.728355 [PowerEventThread(9)]: TvController.OnSuspend()
    2012-02-24 16:12:30.743955 [PowerEventThread(9)]: Scheduler: stopped
    2012-02-24 16:12:30.743955 [PowerEventThread(9)]: Scheduler: thread stopped.
    2012-02-24 16:12:30.743955 [PowerEventThread(9)]: Stopcard
    2012-02-24 16:12:30.743955 [PowerEventThread(9)]: dvb:StopGraph called
    2012-02-24 16:12:30.743955 [PowerEventThread(9)]: tvcard:FreeAllSubChannels
    2012-02-24 16:12:30.743955 [PowerEventThread(9)]: Stopcard
    2012-02-24 16:12:30.743955 [PowerEventThread(9)]: dvb:StopGraph called
    2012-02-24 16:12:30.743955 [PowerEventThread(9)]: tvcard:FreeAllSubChannels
    2012-02-24 16:12:30.743955 [PowerEventThread(9)]: Stopcard
    2012-02-24 16:12:30.743955 [PowerEventThread(9)]: dvb:StopGraph called
    2012-02-24 16:12:30.743955 [PowerEventThread(9)]: tvcard:FreeAllSubChannels
    2012-02-24 16:12:30.743955 [PowerEventThread(9)]: Stopcard
    2012-02-24 16:12:30.743955 [PowerEventThread(9)]: PS: SUSPEND
    2012-02-24 16:12:30.759555 [PowerEventThread(9)]: PS: System is going to suspend
    2012-02-24 16:12:30.759555 [PowerEventThread(9)]: PS: Signal "Suspend" to StandbyWakeupThread
    2012-02-24 16:12:30.759555 [PowerEventThread(9)]: PS: Stop EPG grabbing and TV controller
    2012-02-24 16:12:30.759555 [PS StandbyWakeup(13)]: PS: StandbyWakeupThread suspended
    2012-02-24 16:12:30.759555 [PowerEventThread(9)]: PS: DeInit controller
    2012-02-24 16:12:30.759555 [PowerEventThread(9)]: Controller: DeInit.
    2012-02-24 16:12:30.759555 [PowerEventThread(9)]: Controller: stop streamer...
    2012-02-24 16:12:30.759555 [PowerEventThread(9)]: RTSP: stop streamer
    2012-02-24 16:12:30.759555 [PowerEventThread(9)]: RTSP: stop all streams (0)
    2012-02-24 16:12:30.759555 [PowerEventThread(9)]: Controller: streamer stopped...
    2012-02-24 16:12:30.759555 [PowerEventThread(9)]: Controller: stop scheduler...
    2012-02-24 16:12:30.759555 [PowerEventThread(9)]: Scheduler: stopped
    2012-02-24 16:12:30.759555 [PowerEventThread(9)]: Controller: scheduler stopped...
    2012-02-24 16:12:30.759555 [PowerEventThread(9)]: Controller: stop epg grabber...
    2012-02-24 16:12:30.759555 [PowerEventThread(9)]: Controller: epg stopped...
    2012-02-24 16:12:30.759555 [PowerEventThread(9)]: Controller: dispose card:MediaPortal IPTV Source Filter
    2012-02-24 16:12:30.759555 [PowerEventThread(9)]: Controller: dispose card:Nova-DT DVB-T Tuner (Dev1 Path0)
    2012-02-24 16:12:30.759555 [PowerEventThread(9)]: Controller: dispose card:Nova-DT DVB-T Tuner (Dev1 Path1)
    2012-02-24 16:12:30.775155 [PowerEventThread(9)]: Controller: dispose card:RadioWebStream Card (builtin)
    2012-02-24 16:12:30.775155 [PowerEventThread(9)]: RadioWebStream:Dispose()
    2012-02-24 16:12:30.775155 [PowerEventThread(9)]: PS: Run external command
    2012-02-24 16:12:30.775155 [PowerEventThread(9)]: PS: Starting external command: C:\Tools\Resume.bat suspend
    2012-02-24 16:12:31.009155 [PowerEventThread(9)]: PS: External command finished
    2012-02-24 16:12:31.009155 [PowerEventThread(9)]: PS: Send "EnteringStandby" event
    2012-02-24 16:13:29.750816 [PowerEventThread(9)]: TV service PowerEventThread 30
    2012-02-24 16:13:29.750816 [PowerEventThread(9)]: OnPowerEvent: PowerStatus: ResumeAutomatic
    2012-02-24 16:13:29.750816 [PowerEventThread(9)]: OnPowerEventHandler: PowerStatus: ResumeAutomatic
    2012-02-24 16:13:29.750816 [PowerEventThread(9)]: TvController.OnResume()
    2012-02-24 16:13:29.766416 [PowerEventThread(9)]: Controller: setup HeartBeat Monitor
    2012-02-24 16:13:29.766416 [HeartBeatMonitor(17)]: Controller: Heartbeat Monitor initiated, max timeout allowed is 30 sec.
    2012-02-24 16:13:29.766416 [PowerEventThread(9)]: PS: RESUMEAUTOMATIC
    2012-02-24 16:13:29.766416 [PowerEventThread(9)]: PS: System has resumed from standby
    2012-02-24 16:13:29.766416 [PowerEventThread(9)]: PS: Run external command
    2012-02-24 16:13:29.766416 [PowerEventThread(9)]: PS: Starting external command: C:\Tools\Resume.bat wakeup
    2012-02-24 16:13:30.031616 [PowerEventThread(9)]: PS: External command finished
    2012-02-24 16:13:30.031616 [PowerEventThread(9)]: PS: ReInitController
    2012-02-24 16:13:30.047216 [PowerEventThread(9)]: PS: ReInit Controller
    2012-02-24 16:13:35.054825 [PowerEventThread(9)]: Controller: Initializing TVServer
    2012-02-24 16:13:35.054825 [PowerEventThread(9)]: Controller: 1 init attempt
    2012-02-24 16:13:35.054825 [PowerEventThread(9)]: C:\ProgramData\Team MediaPortal\MediaPortal TV Server\gentle.config
    2012-02-24 16:13:35.054825 [PowerEventThread(9)]: Controller: using MySQL database connection: Server=X4;Database=MpTvDb;User ID=root;Password
    2012-02-24 16:13:35.054825 [PowerEventThread(9)]: ----------------------------
    2012-02-24 16:13:35.054825 [PowerEventThread(9)]: Detecting Cards in 30 seconds
    2012-02-24 16:14:05.069277 [PowerEventThread(9)]: Detecting Cards
    2012-02-24 16:14:05.069277 [PowerEventThread(9)]: Detected IP TV Card 0
    2012-02-24 16:14:05.084877 [PowerEventThread(9)]: OnPowerEvent: PowerStatus: ResumeSuspend
    2012-02-24 16:14:05.084877 [PowerEventThread(9)]: OnPowerEventHandler: PowerStatus: ResumeSuspend
    2012-02-24 16:14:05.084877 [PowerEventThread(9)]: PS: RESUMESUSPEND
    2012-02-24 16:14:05.116077 [PowerEventThread(9)]: Found card:nova-dt dvb-t tuner (dev1 path0)
    2012-02-24 16:14:05.131677 [PowerEventThread(9)]: Detected DVB card:nova-dt dvb-t tuner (dev1 path0)
    2012-02-24 16:14:05.131677 [PowerEventThread(9)]: Detecting type by MSNP 0: 216c62df-6d7f-4e9a-8571-05f14edb766a
    2012-02-24 16:14:05.131677 [PowerEventThread(9)]: Detected DVB-T* card:nova-dt dvb-t tuner (dev1 path0)
    2012-02-24 16:14:05.147277 [PowerEventThread(9)]: Found card:nova-dt dvb-t tuner (dev1 path1)
    2012-02-24 16:14:05.162877 [PowerEventThread(9)]: Detected DVB card:nova-dt dvb-t tuner (dev1 path1)
    2012-02-24 16:14:05.162877 [PowerEventThread(9)]: Detecting type by MSNP 0: 216c62df-6d7f-4e9a-8571-05f14edb766a
    2012-02-24 16:14:05.162877 [PowerEventThread(9)]: Detected DVB-T* card:nova-dt dvb-t tuner (dev1 path1)
    2012-02-24 16:14:05.162877 [PowerEventThread(9)]: Remove filter from graph: DVBC Network Provider
    2012-02-24 16:14:05.162877 [PowerEventThread(9)]: Remove filter from graph: ATSC Network Provider
    2012-02-24 16:14:05.162877 [PowerEventThread(9)]: Remove filter from graph: DVBS Network Provider
    2012-02-24 16:14:05.162877 [PowerEventThread(9)]: Remove filter from graph: DVBT Network Provider
    2012-02-24 16:14:05.162877 [PowerEventThread(9)]: Controller: started at X4
    2012-02-24 16:14:05.162877 [PowerEventThread(9)]: Controller: local ip address:192.168.1.64
    2012-02-24 16:14:05.162877 [PowerEventThread(9)]: Controller: local ip address:192.168.2.1
    2012-02-24 16:14:05.178477 [PowerEventThread(9)]: Controller: server running on 192.168.2.1
    2012-02-24 16:14:05.178477 [PowerEventThread(9)]: Controller: NOT preloading card :MediaPortal IPTV Source Filter
    2012-02-24 16:14:05.178477 [PowerEventThread(9)]: Controller: NOT preloading card :Nova-DT DVB-T Tuner (Dev1 Path0)
    2012-02-24 16:14:05.178477 [PowerEventThread(9)]: Controller: NOT preloading card :Nova-DT DVB-T Tuner (Dev1 Path1)
    2012-02-24 16:14:05.178477 [PowerEventThread(9)]: Controller: NOT preloading card :RadioWebStream Card (builtin)
    2012-02-24 16:14:05.178477 [PowerEventThread(9)]: Controller: setup hybrid cards
    2012-02-24 16:14:05.194077 [PowerEventThread(9)]: Controller: card MediaPortal IPTV Source Filter: current timeshiftpath = R:\
    2012-02-24 16:14:05.194077 [PowerEventThread(9)]: Controller: card Nova-DT DVB-T Tuner (Dev1 Path0) : current timeshiftpath = R:\
    2012-02-24 16:14:05.194077 [PowerEventThread(9)]: Controller: card Nova-DT DVB-T Tuner (Dev1 Path1) : current timeshiftpath = R:\
    2012-02-24 16:14:05.194077 [PowerEventThread(9)]: Controller: card RadioWebStream Card (builtin): current timeshiftpath = R:\
    2012-02-24 16:14:05.194077 [PowerEventThread(9)]: Controller: setup streaming
    2012-02-24 16:14:05.287678 [PowerEventThread(9)]: Scheduler: started
    2012-02-24 16:14:05.287678 [PowerEventThread(9)]: Scheduler: loaded 0 schedules
    2012-02-24 16:14:05.287678 [PowerEventThread(9)]: Scheduler: thread started.
    2012-02-24 16:14:05.287678 [PowerEventThread(9)]: DiskManagement: started
    2012-02-24 16:14:05.287678 [PowerEventThread(9)]: Controller: setup HeartBeat Monitor
    2012-02-24 16:14:05.303278 [HeartBeatMonitor(10)]: Controller: Heartbeat Monitor initiated, max timeout allowed is 30 sec.
    2012-02-24 16:14:05.303278 [PowerEventThread(9)]: ExecutePendingDeletions: number of pending deletions : 0
    2012-02-24 16:14:05.303278 [PowerEventThread(9)]: Controller: recalculating program states
    2012-02-24 16:14:05.303278 [PowerEventThread(9)]: schedule.SynchProgramStatesForAll
    2012-02-24 16:14:05.303278 [PowerEventThread(9)]: Controller: initalized
    2012-02-24 16:14:05.303278 [PowerEventThread(9)]: Controller: TVServer initialized okay
    2012-02-24 16:14:05.303278 [PowerEventThread(9)]: PS: Signal "Resume" to the StandbyWakeupThread
    2012-02-24 16:14:05.303278 [PowerEventThread(9)]: PS: Send "ResumedFromStandby" event
    2012-02-24 16:14:05.303278 [PS StandbyWakeup(13)]: PS: StandbyWakeupThread resumed
    2012-02-24 16:14:06.317279 [PS StandbyWakeup(13)]: PS: LoadSettings()
    2012-02-24 16:14:06.317279 [PS StandbyWakeup(13)]: PS: SetWakeupTimer()
    2012-02-24 16:14:06.317279 [PS StandbyWakeup(13)]: PS: Inspecting PowerController:
    2012-02-24 16:14:06.332879 [PS StandbyWakeup(13)]: PS: Inspecting ScheduledRecordings:
    2012-02-24 16:14:06.332879 [PS StandbyWakeup(13)]: PS: Inspecting XmlTvImport:
    2012-02-24 16:14:06.332879 [PS StandbyWakeup(13)]: PS: No pending events found in the future which should wakeup the system
    2012-02-24 16:14:06.332879 [PS StandbyWakeup(13)]: PS: CheckForStandby()
    2012-02-24 16:14:06.332879 [PS StandbyWakeup(13)]: PS: Inspecting PowerController:
    2012-02-24 16:14:06.332879 [PS StandbyWakeup(13)]: PS: Inspecting RemoteClient:
    2012-02-24 16:14:06.332879 [PS StandbyWakeup(13)]: PS: Inspecting ActiveStreams:
    2012-02-24 16:14:06.332879 [PS StandbyWakeup(13)]: PS: Inspecting ControllerActive:
    2012-02-24 16:14:06.332879 [PS StandbyWakeup(13)]: PS: Inspecting ProcessActive:
    2012-02-24 16:14:06.332879 [PS StandbyWakeup(13)]: PS: Inspecting ActiveNetwork:
    2012-02-24 16:14:06.332879 [PS StandbyWakeup(13)]: PS: Inspecting ActiveShares:
    2012-02-24 16:14:06.332879 [PS StandbyWakeup(13)]: PS: Check whether the next event is almost due
    2012-02-24 16:14:06.332879 [PS StandbyWakeup(13)]: PS: SetStandbyMode(StandbyAllowed)
    2012-02-24 16:14:06.332879 [PS StandbyWakeup(13)]: PS: System is idle and may go to standby
    2012-02-24 16:14:06.332879 [PS StandbyWakeup(13)]: PS: Active standby is disabled - standby is handled by Windows
    2012-02-24 16:14:21.340106 [PS StandbyWakeup(13)]: PS: StandbyWakeupThread triggered by check interval
     

    okaufmann

    Portal Member
    September 16, 2009
    5
    0
    Home Country
    Germany Germany
    hi there!

    i am using the actual stable version of PS++ with an A4-3400 APU on a Gigabyte A55-DS3P Board and W7 x64 HomePremium running. I configured PS with the Configration Tutorial on the Wiki Page. The only thing i left beside the regular configuration is that i allow the system to hibernate. After i made the setup within the server plugin i forced the system to hibernate and now i cannot start the system anymore. any suggestions? thx for your help!!!
     

    michael_t

    Portal Pro
    November 30, 2008
    1,258
    813
    Home Country
    Germany Germany
    What do you mean by "i cannot start the system anymore"?

    Michael
     

    doveman

    Portal Pro
    February 12, 2008
    2,326
    178
    Home Country
    United Kingdom United Kingdom
    Had a problem with my previous script that I was getting two instances of Mediaportal.exe and neither was displaying, so I've modifed it so that it doesn't start MP and I'll try using MP config to "restart MP on resume" instead.

    Code:
    if "%1" == "suspend" goto OnSuspend
    if "%1" == "wakeup" goto OnWakeUp
    goto Done
    
    :OnSuspend
    taskkill /IM “MediaPortal.exe” /F
    goto Done
    
    :OnWakeUp
    taskkill /IM “TVService.exe” /F
    net start TVService
    
    goto Done
    
    :Done
     

    Users who are viewing this thread

    Top Bottom