mediaportal hangs on resume from s3 (1 Viewer)

htpchtpc

MP Donator
  • Premium Supporter
  • February 14, 2012
    27
    5
    Home Country
    Canada Canada
    Am having similar problem... put computer to sleep with remote, wake computer, MP program stuck in task bar. Have been closing it, by hovering the mouse over it and click the red x in the window above. Ran MP in debug, put to sleep and woke, logs after.Thanks for looking,
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,578
    8,227
    Home Country
    New Zealand New Zealand
    Thank you for the log files (y)

    Can you please try the attached patch:
    1. Close MediaPortal.
    2. Open Windows Explorer.
    3. Navigate to your MediaPortal install folder (typically c:\Program Files (x86)\Team MediaPortal\MediaPortal).
    4. Take a backup of MediaPortal.exe.
    5. Download and extract the attached replacement MediaPortal.exe into the folder.
    6. Right click on the new MediaPortal.exe.
    7. Select "properties".
    8. Click "unblock". (If there's no unblock button just click "cancel".)
    Now please check if the problem still happens.


    @Sebastiii
    To me it looks like the problem is related to this:
    [2016-01-21 12:35:01,923] [Log ] [MPMain ] [DEBUG] - Main: PBT_APMSUSPEND GUIGraphicsContext.currentScreen.Bounds 1024x768
    [2016-01-21 12:35:01,923] [Log ] [MPMain ] [DEBUG] - Main: PBT_APMSUSPEND screen.Bounds 1024x768
    [2016-01-21 12:35:01,923] [Log ] [MPMain ] [DEBUG] - Main: PBT_APMSUSPEND BackupBounds {X=0,Y=0,Width=0,Height=0}
    [2016-01-21 12:35:01,923] [Log ] [MPMain ] [DEBUG] - Main: PBT_APMSUSPEND Bounds {X=0,Y=0,Width=1024,Height=768}
    [2016-01-21 12:35:01,923] [Log ] [MPMain ] [DEBUG] - Main: PBT_APMSUSPEND Bounds after {X=0,Y=0,Width=2,Height=2}

    According to the commit history that code comes from you:
    https://github.com/MediaPortal/MediaPortal-1/commit/dd7cc913e637d8f93b96000d955746b787802d14

    Please can you explain what the code is meant to do. Surely it is not right to try to set the dimensions to 0x0! Maybe you did not consider that some people really do have screens which are 1024x768? :eek:

    My patch changes this line:
    https://github.com/MediaPortal/Medi.../MediaPortal.Application/MediaPortal.cs#L1783

    ...from:
    Code:
    if (screen.Bounds.Width == 1024 && screen.Bounds.Height == 768)

    ...to:
    Code:
    if (screen.Bounds.Width == 1024 && screen.Bounds.Height == 768 && _backupBounds.Width != 0 && _backupBounds.Height != 0)
     

    Attachments

    • MediaPortal [1.13 fix 0x0 resolution].zip
      506.4 KB

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    Hi :)

    You are right, people shouldn't not have screen to 1024x768 (i'm joking).
    This resolution is the native one when screen are disconnected (HDMI stuff etc.), so yes i try to bypass it when it's this resolution, but i didn't try to set the resolution to 0x0, i mean the goal is to not change from higher resolution to the native one 1024x768 but it's maybe a wrong code :)
     

    htpchtpc

    MP Donator
  • Premium Supporter
  • February 14, 2012
    27
    5
    Home Country
    Canada Canada
    thanks for the file, did as you suggested MM ,no change... same issue... have changed my resolution before, only to find my tv didn't support it and had to restore to previous. I find no shame in that. Perhaps it's old school but only this software is having a problem with it. Typical quirky old MEPO
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    thanks for the file, did as you suggested MM ,no change... same issue... have changed my resolution before, only to find my tv didn't support it and had to restore to previous. I find no shame in that. Perhaps it's old school but only this software is having a problem with it. Typical quirky old MEPO

    Just to be sure, you have let your PC to wait a while (1 or 2 min) before closing MP ? :)
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,578
    8,227
    Home Country
    New Zealand New Zealand
    @htpchtpc
    In case it wasn't clear, I'm waiting on you for fresh log files with the patch applied. Without fresh log files I have no idea what's going on, and there'd be nothing more I could do with this problem. That'd be a real shame.
    There's no need to change your resolution; just need the log files...
     

    Marvman

    Retired Team Member
  • Premium Supporter
  • November 14, 2007
    1,163
    735
    Bavaria
    Home Country
    Germany Germany
    Hi MM,

    I have the same issue and I can reproduce it.

    MP don't hang or freez it's just 1 pixel in the upper left corner.
    I have to press ALT+Enter twice (with a little delay between) to get full screen back.

    I tried your patch without luck.

    Steps I did:

    1. Start MP (full screen)
    2. Menu -> Sleep
    3. Resume PC
    Result: MP's window size is 1 Pixel in the upper left corner

    Logs attached
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,578
    8,227
    Home Country
    New Zealand New Zealand
    Thanks for the report and log file Marvman. (y)

    Based on what I see in your log file it seems like my patch was incomplete. I missed some cases. :oops:

    I'll try to provide a new patch within the next hour...
     

    Users who are viewing this thread

    Top Bottom