Resuming from Standby not working (1 Viewer)

Snoopy87

Portal Pro
August 12, 2012
470
167
Home Country
Germany Germany
JIRA BUG MP1-4070

MediaPortal Version: 1.4.0

Description
Hi,

Standby mode is working perfectly on my HTPC. Also if TV Server is running and grabbing EPG, etc.

BUT, when MP is running, my HTPC can't resume from standby! Instead it directly restart my HTPC. Sometimes I see a "There was a problem" dialog from Windows 8, sometimes not. There are no detailled Information about the crash.

One time MP logged an exception in this case (see attached log).

The issue not only appears if I watch TV with MP. You just need to start MP and go to standby while MP is showing the main menu.

As said, standby always working great when MP Client is not running.

Steps to Reproduce:
Start MP
Go to standby
 
Last edited by a moderator:

Scythe42

Retired Team Member
  • Premium Supporter
  • June 20, 2009
    2,065
    2,703
    50
    Berlin
    Home Country
    Germany Germany
    Seems to be related to TV playack. From the logs:

    Code:
    [2013-06-23 19:17:55,500] [Log	] [MPMain  ] [DEBUG] - TVHome.OnSuspend()
    [2013-06-23 19:17:55,502] [Log	] [MPMain  ] [INFO ] - TvNotify: stop
    [2013-06-23 19:17:55,503] [Log	] [MPMain  ] [DEBUG] - D3D CleanupEnvironment()

    And the fonts and textures get disposed, which of course creates an exception later. So TVHome.OnSuspend() is causing this. A bug for sure and it should be an easy fix correcting the logic here, which is obviously wrong.
     
    Last edited:

    Scythe42

    Retired Team Member
  • Premium Supporter
  • June 20, 2009
    2,065
    2,703
    50
    Berlin
    Home Country
    Germany Germany
    If you could create a ticket, that would be nice.
     

    Owlsroost

    Retired Team Member
  • Premium Supporter
  • October 28, 2008
    5,540
    5,038
    Cambridge
    Home Country
    United Kingdom United Kingdom
    Not sure if this is a related issue, but with 1.4.0 I've got a near 100% failure to render the GUI (as far as I can tell) on resume from hibernate, so the GUI is usually just completely frozen. I can close MP (via EventGhost), but I can't 'wake it up' so that it's usable using EventGhost 'bring to front' action, the mouse or the keyboard.

    Log attached for a hibernate at [2013-06-23 23:39:20,496] followed by unattended resume for a recording at [2013-06-24 20:56:44,213], then turning on the TV at [2013-06-24 21:51:26,537] and finally closing MP using EventGhost at [2013-06-24 21:51:29,919]

    This running on Vista (32 bit).

    Tony
     

    Attachments

    • MediaPortal.1_log_on_resume.zip
      16.9 KB
    Last edited:

    Scythe42

    Retired Team Member
  • Premium Supporter
  • June 20, 2009
    2,065
    2,703
    50
    Berlin
    Home Country
    Germany Germany
    Could be related and is very likely. Logs are inconclusive.

    But I see the TVHome.Resume() here as one of the last things in the log. If OnSuspend shows some issues, it is likely that Resume() has also some issues.

    Can you please try without being on the TV screen? Just somewhere else to make sure it is TVHome related as well.
     
    Last edited:

    Owlsroost

    Retired Team Member
  • Premium Supporter
  • October 28, 2008
    5,540
    5,038
    Cambridge
    Home Country
    United Kingdom United Kingdom
    I never leave MP on the 'TV home' screen - when I 'put MP to bed' I always go back to the (main) homescreen (at 23:32) and turn the TV off, then powerscheduler hibernates the system 7 minutes later (at 23:39):

    Code:
    [2013-06-23 23:32:08,720] [Log	] [MPMain  ] [WARN ] - GUIWindow:OnWindowLoaded: 'C:\ProgramData\Team MediaPortal\MediaPortal\Skin\DefaultWide\myHome.xml' is missing control id 200 (window property: lblDate)
    [2013-06-23 23:32:08,720] [Log	] [MPMain  ] [WARN ] - GUIWindow:OnWindowLoaded: 'C:\ProgramData\Team MediaPortal\MediaPortal\Skin\DefaultWide\myHome.xml' is missing control id 201 (window property: lblTime)
    [2013-06-23 23:32:08,734] [Log	] [MPMain  ] [DEBUG] - Window: TvPlugin.TVHome deinit
    [2013-06-23 23:32:08,735] [Log	] [MPMain  ] [DEBUG] - TextureManager: CleanupThumbs()
    [2013-06-23 23:32:08,737] [Log	] [MPMain  ] [DEBUG] - Window: MediaPortal.GUI.Home.GUIHome init
    [2013-06-23 23:32:08,739] [Log	] [MPMain  ] [DEBUG] - D3D: MouseMoveEvent()
    [2013-06-23 23:39:09,673] [Log	] [MPMain  ] [DEBUG] - Main: WM_POWERBROADCAST (PBT_POWERSETTINGCHANGE)
    [2013-06-23 23:39:09,673] [Log	] [MPMain  ] [INFO ] - Main: The display is off
    [2013-06-23 23:39:10,310] [Log	] [MPMain  ] [DEBUG] - D3D: OnPaint()
    [2013-06-23 23:39:11,333] [Log	] [MPMain  ] [DEBUG] - D3D: MouseMoveEvent()
    [2013-06-23 23:39:11,458] [Log	] [MPMain  ] [DEBUG] - Main: WM_POWERBROADCAST (PBT_APMSUSPEND)
    [2013-06-23 23:39:11,458] [Log	] [MPMain  ] [INFO ] - Main: Suspending operation
    [2013-06-23 23:39:11,458] [Log	] [MPMain  ] [INFO ] - TVHome.WndProc(): Windows is suspending
    [2013-06-23 23:39:11,458] [Log	] [MPMain  ] [DEBUG] - TVHome.OnSuspend()
    [2013-06-23 23:39:11,461] [Log	] [MPMain  ] [INFO ] - TvNotify: stop
    [2013-06-23 23:39:11,481] [Log	] [MPMain  ] [DEBUG] - TVHome: HeartBeat Transmitter stopped.

    It looks to me like the 'TVHome' entries are the TV plug-in responding to power events maybe ?
     
    Last edited:

    greybox

    MP Donator
  • Premium Supporter
  • January 23, 2009
    616
    127
    Home Country
    Canada Canada
    I can't see the option "Restart MediaPortal on resume" any more in Mediaportal configuration. I used it as a workaround to wake up my minidisplay after resuming. Was it removed in 1.4.0 and why? Is there a replacement menu option?
     

    Scythe42

    Retired Team Member
  • Premium Supporter
  • June 20, 2009
    2,065
    2,703
    50
    Berlin
    Home Country
    Germany Germany
    It was removed because standby/resume was rewritten and should work properly now for the majority of users.

    And also so that people actually report suspend/resume issue so we can fix them and not quietly just enable a workaround option and we never get rid of the problems.
     
    Last edited:

    Users who are viewing this thread

    Top Bottom