MP hangs when getting out of standby (1 Viewer)

Wintermute42

Portal Pro
December 12, 2006
104
1
I tried out the fix by using the alternate configuration.exe but it the bug occured today again at my system.
 

Wintermute42

Portal Pro
December 12, 2006
104
1
So it does work for anyone else?
It's not always on my system, but shows every now and then.

After a wakeup if the screen stays blank, I get these errors in the log:

Code:
2009-02-21 15:11:43.796875 [Info.][MPMain]: Main: WM_POWERBROADCAST: 18
2009-02-21 15:11:43.796875 [Info.][MPMain]: Main: Windows has resumed from standby or hibernate mode to handle a requested event
2009-02-21 15:11:43.796875 [Info.][MPMain]: Main: OnResumeAutomatic - Starting recorder
2009-02-21 15:11:43.796875 [Info.][MPMain]: TvCardCollection: TVPlugin detected -> no TVE2 card setup
2009-02-21 15:11:43.796875 [Info.][MPMain]: Recorder: start
2009-02-21 15:11:43.796875 [Info.][CommandProcessor]: Commandprocessor: Starting
2009-02-21 15:11:44.250000 [Info.][MPMain]: Main: OnResumeAutomatic - Done
2009-02-21 15:11:44.250000 [Info.][MPMain]: Main: useS3Hack enabled, calling OnResume() on automatic resume
2009-02-21 15:11:44.250000 [Info.][MPMain]: Exception   :System.NullReferenceException: Object reference not set to an instance of an object.
   at MediaPortal.GUI.Library.GUIGraphicsContext.set_BlankScreen(Boolean value)
   at MediaPortal.GUI.Library.GUIGraphicsContext.ResetLastActivity()
   at MediaPortalApp.OnResume()
   at MediaPortalApp.WndProc(Message& msg)
2009-02-21 15:11:44.250000 [Info.][MPMain]: Exception   :Object reference not set to an instance of an object.
2009-02-21 15:11:44.250000 [Info.][MPMain]:   site      :Void set_BlankScreen(Boolean)
2009-02-21 15:11:44.250000 [Info.][MPMain]:   source    :Core
2009-02-21 15:11:44.250000 [Info.][MPMain]:   stacktrace:   at MediaPortal.GUI.Library.GUIGraphicsContext.set_BlankScreen(Boolean value)
   at MediaPortal.GUI.Library.GUIGraphicsContext.ResetLastActivity()
   at MediaPortalApp.OnResume()
   at MediaPortalApp.WndProc(Message& msg)
2009-02-21 15:12:09.484375 [Info.][MPMain]: TexturePacker: disposing texture:1999
 
D

dm15644

Guest
Hi Wintermute42,

I had similar messages, and while I also don't know exactly what the error is I solved it by automatically closing restarting MP after wakeup. I'm using StartOnWake for this.

Cheers,

jayrock
 

Wintermute42

Portal Pro
December 12, 2006
104
1
Sorry for the late answer..

Hm, I might try that, although sometimes the MP crashes with a dialog box with the exception info popping up - also in this cases the MP watchdogs starts.
I would prefer a clean solution for this, a fix in the MP software.
 

Malingo

Portal Pro
July 26, 2008
71
2
Home Country
Germany Germany
2008-12-23 02:59:19.593750 [Info.][MPMain]: Main: WM_POWERBROADCAST: 18

This is the line giving the hint of what is wrong. Usually it is followed by
WM_POWERBROADCAST: 7

Which "wakes up" MP. Since some (buggy) mainboards (mine is one example), only send the WM_POWERBROADCAST: 18 after overnight standby, we have to wake up MP on this event.

Sorry for resurrecting this old thread, but I just read up on all this stuff for some project I am doing, and it seems that only sending WM_POWERBROADCAST: 18 is correct if the computer is waking up automatically (For example to start a record).

WM_POWERBROADCAST: 7 only should be send if the computer wakes up on a user event. So for example this message is sent when a user presses a button, but not if the computer wakes up automatically.
WM_POWERBROADCAST: 18 will be sent every time, be it the computer wakes up automatically, or by user input.

Maybe I am overlooking something, but isn't only sending the first message correct if the wakeup is automatic?

Here is the info on MSDN: WM_POWERBROADCAST Message (Windows)
 

Seidelin

Retired Team Member
  • Premium Supporter
  • August 14, 2006
    1,754
    652
    Farum
    Home Country
    Denmark Denmark
    Sure it is correct, but on some machines MP hangs in some situations where only 18 is sent. Therefore this workaround.
     

    johnlc

    Portal Pro
    April 19, 2008
    59
    3
    Horsens
    Home Country
    Denmark Denmark
    Last autumn I started to get all kinds of trouble, waking up - I cannot remember the revision it started in.
    I tried every single workaround but to no avail.

    The one day in January I gave the network card a fixed ip address instead of DHCP, since then there has been absolutely no issues with "wake-up"

    At least it's woth giving a try if you have wake up issues.
     

    coopers

    Portal Pro
    November 8, 2005
    180
    3
    Adelaide
    Home Country
    Hi Folks,

    Can I confirm that this "hack" is the option that is now released and available in the MP 1.0.2 config dialog:
    "apply workaround to fix MP freezing after standby on some systems"?

    thanks
     

    Users who are viewing this thread

    Top Bottom