home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
General Support
mediaportal hangs on resume from s3
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="mm1352000" data-source="post: 1172671" data-attributes="member: 82144"><p>Thank you for the log files <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite24" alt="(y)" title="Thumbs Up (y)" loading="lazy" data-shortname="(y)" /></p><p></p><p>Can you please try the attached patch:</p><ol> <li data-xf-list-type="ol">Close MediaPortal.</li> <li data-xf-list-type="ol">Open Windows Explorer.</li> <li data-xf-list-type="ol">Navigate to your MediaPortal install folder (typically c:\Program Files (x86)\Team MediaPortal\MediaPortal).</li> <li data-xf-list-type="ol">Take a backup of MediaPortal.exe.</li> <li data-xf-list-type="ol">Download and extract the attached replacement MediaPortal.exe into the folder.</li> <li data-xf-list-type="ol">Right click on the new MediaPortal.exe.</li> <li data-xf-list-type="ol">Select "properties".</li> <li data-xf-list-type="ol">Click "unblock". (If there's no unblock button just click "cancel".)</li> </ol><p>Now please check if the problem still happens.</p><p></p><p></p><p>[USER=60104]@Sebastiii[/USER]</p><p>To me it looks like the problem is related to this:</p><p>[2016-01-21 12:35:01,923] [Log ] [MPMain ] [DEBUG] - Main: PBT_APMSUSPEND GUIGraphicsContext.currentScreen.Bounds 1024x768</p><p>[2016-01-21 12:35:01,923] [Log ] [MPMain ] [DEBUG] - Main: PBT_APMSUSPEND screen.Bounds 1024x768</p><p>[2016-01-21 12:35:01,923] [Log ] [MPMain ] [DEBUG] - Main: PBT_APMSUSPEND BackupBounds {X=0,Y=0,Width=0,Height=0}</p><p>[2016-01-21 12:35:01,923] [Log ] [MPMain ] [DEBUG] - Main: PBT_APMSUSPEND Bounds {X=0,Y=0,Width=1024,Height=768}</p><p>[2016-01-21 12:35:01,923] [Log ] [MPMain ] [DEBUG] - Main: PBT_APMSUSPEND Bounds after {X=0,Y=0,Width=2,Height=2}</p><p></p><p>According to the commit history that code comes from you:</p><p><a href="https://github.com/MediaPortal/MediaPortal-1/commit/dd7cc913e637d8f93b96000d955746b787802d14" target="_blank">https://github.com/MediaPortal/MediaPortal-1/commit/dd7cc913e637d8f93b96000d955746b787802d14</a></p><p></p><p>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? <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite9" alt=":eek:" title="Eek! :eek:" loading="lazy" data-shortname=":eek:" /></p><p></p><p>My patch changes this line:</p><p><a href="https://github.com/MediaPortal/MediaPortal-1/blob/master/mediaportal/MediaPortal.Application/MediaPortal.cs#L1783" target="_blank">https://github.com/MediaPortal/MediaPortal-1/blob/master/mediaportal/MediaPortal.Application/MediaPortal.cs#L1783</a></p><p></p><p>...from:</p><p>[code]if (screen.Bounds.Width == 1024 && screen.Bounds.Height == 768)[/code]</p><p></p><p>...to:</p><p>[code]if (screen.Bounds.Width == 1024 && screen.Bounds.Height == 768 && _backupBounds.Width != 0 && _backupBounds.Height != 0)[/code]</p></blockquote><p></p>
[QUOTE="mm1352000, post: 1172671, member: 82144"] Thank you for the log files (y) Can you please try the attached patch: [LIST=1] [*]Close MediaPortal. [*]Open Windows Explorer. [*]Navigate to your MediaPortal install folder (typically c:\Program Files (x86)\Team MediaPortal\MediaPortal). [*]Take a backup of MediaPortal.exe. [*]Download and extract the attached replacement MediaPortal.exe into the folder. [*]Right click on the new MediaPortal.exe. [*]Select "properties". [*]Click "unblock". (If there's no unblock button just click "cancel".) [/LIST] Now please check if the problem still happens. [USER=60104]@Sebastiii[/USER] 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: [URL]https://github.com/MediaPortal/MediaPortal-1/commit/dd7cc913e637d8f93b96000d955746b787802d14[/URL] 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: [URL]https://github.com/MediaPortal/MediaPortal-1/blob/master/mediaportal/MediaPortal.Application/MediaPortal.cs#L1783[/URL] ...from: [code]if (screen.Bounds.Width == 1024 && screen.Bounds.Height == 768)[/code] ...to: [code]if (screen.Bounds.Width == 1024 && screen.Bounds.Height == 768 && _backupBounds.Width != 0 && _backupBounds.Height != 0)[/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
General Support
mediaportal hangs on resume from s3
Contact us
RSS
Top
Bottom