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
Media Portal freezes on wake
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: 1159582" data-attributes="member: 82144"><p>[USER=153825]@Jeffrios[/USER]</p><p>Thank you for the log files. They show that there's still something not right on your system. This something could be the underlying cause of your resume problem, and perhaps the cause of the crashes as well. On second examination, the same problem seems to apply to [USER=131230]@keeperoftraken[/USER] .</p><p></p><p>What I see is this.</p><p></p><p>MP resumes from standby:</p><p>[2015-11-03 17:30:59,307] [Log ] [MPMain ] [INFO ] - Main: WM_POWERBROADCAST (PBT_APMRESUMESUSPEND)</p><p></p><p>Databases are opened etc. That stuff is not relevant.</p><p></p><p>Now MP tries to activate the user interface:</p><p>[2015-11-03 17:31:10,753] [Log ] [MPMain ] [INFO ] - Main: Resuming operation of user interface</p><p>[2015-11-03 17:31:10,753] [Log ] [MPMain ] [INFO ] - Main: OnResumeSuspend - Switch to basic home screen</p><p>[2015-11-03 17:31:10,862] [Log ] [MPMain ] [DEBUG] - Window: WindowPlugins.home.GUIBasicHome init</p><p>[2015-11-03 17:31:10,878] [Log ] [MPMain ] [DEBUG] - Main: OnResumeSuspend - set GUIGraphicsContext.State.RUNNING</p><p>[2015-11-03 17:31:10,878] [Log ] [MPMain ] [DEBUG] - Main: OnResumeSuspend - Init Input Devices</p><p></p><p>...and then the thread is locked. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" /></p><p>I can tell that the thread is locked because there is no "Main: OnResumeSuspend - Done" message in the log.</p><p></p><p>After the thread is locked MP receives the notification that you want to use the interface:</p><p>[2015-11-03 17:31:10,893] [Log ] [MPMain ] [INFO ] - Main: WM_POWERBROADCAST (PBT_POWERSETTINGCHANGE)</p><p>[2015-11-03 17:31:10,893] [Log ] [MPMain ] [INFO ] - Main: User is providing input to the session</p><p></p><p>...and my patch activates the user interface successfully:</p><p>[collapse][2015-11-03 17:31:10,909] [Log ] [MPMain ] [INFO ] - Main: Resuming operation of user interface</p><p>[2015-11-03 17:31:10,909] [Log ] [MPMain ] [DEBUG] - Main: OnResumeSuspend - set GUIGraphicsContext.State.RUNNING</p><p>[2015-11-03 17:31:10,909] [Log ] [MPMain ] [DEBUG] - Main: OnResumeSuspend - Init Input Devices</p><p>[2015-11-03 17:31:10,909] [Log ] [MPMain ] [INFO ] - Remotes: Init was called before Stop - stopping devices now</p><p>...</p><p>[2015-11-03 17:31:10,956] [Log ] [MPMain ] [INFO ] - X10 debug: Could not get interface</p><p>[2015-11-03 17:31:10,956] [Log ] [MPMain ] [DEBUG] - Main: OnResumeSuspend - Autoplay start listening</p><p>[2015-11-03 17:31:10,956] [Log ] [MPMain ] [INFO ] - Main: OnResumeSuspend - Done[/collapse]</p><p></p><p>However, if the thread did not get locked then the interface would already have been activated and my patch would not be required.</p><p></p><p>So, the question is: why is the thread locked?</p><p>After checking the code, it seems to me that the only place that the thread could get locked (since all input/remote handlers are disabled) is here:</p><p><a href="https://github.com/MediaPortal/MediaPortal-1/blob/master/mediaportal/RemotePlugins/Remotes/X10Remote/X10Remote.cs#L88-L115" target="_blank">https://github.com/MediaPortal/MediaPortal-1/blob/master/mediaportal/RemotePlugins/Remotes/X10Remote/X10Remote.cs#L88-L115</a></p><p></p><p>I think that loading should not be necessary unless the X10 input/remote handler is actually enabled.</p><p></p><p>[USER=60104]@Sebastiii[/USER] </p><p>Can you please build another installer with the following changes:</p><p>1. Remove the previous patch. I think it should not be needed.</p><p>2. Add the following code:</p><p>[code]if (!_controlEnabled)</p><p>{</p><p> return;</p><p>}[/code]</p><p></p><p>...after this line:</p><p><a href="https://github.com/MediaPortal/MediaPortal-1/blob/master/mediaportal/RemotePlugins/Remotes/X10Remote/X10Remote.cs#L78" target="_blank">https://github.com/MediaPortal/MediaPortal-1/blob/master/mediaportal/RemotePlugins/Remotes/X10Remote/X10Remote.cs#L78</a></p><p></p><p>[USER=153825]@Jeffrios[/USER] and [USER=131230]@keeperoftraken[/USER] : please could you install and test the new installer once it becomes available, and please post log files regardless of success or failure.</p></blockquote><p></p>
[QUOTE="mm1352000, post: 1159582, member: 82144"] [USER=153825]@Jeffrios[/USER] Thank you for the log files. They show that there's still something not right on your system. This something could be the underlying cause of your resume problem, and perhaps the cause of the crashes as well. On second examination, the same problem seems to apply to [USER=131230]@keeperoftraken[/USER] . What I see is this. MP resumes from standby: [2015-11-03 17:30:59,307] [Log ] [MPMain ] [INFO ] - Main: WM_POWERBROADCAST (PBT_APMRESUMESUSPEND) Databases are opened etc. That stuff is not relevant. Now MP tries to activate the user interface: [2015-11-03 17:31:10,753] [Log ] [MPMain ] [INFO ] - Main: Resuming operation of user interface [2015-11-03 17:31:10,753] [Log ] [MPMain ] [INFO ] - Main: OnResumeSuspend - Switch to basic home screen [2015-11-03 17:31:10,862] [Log ] [MPMain ] [DEBUG] - Window: WindowPlugins.home.GUIBasicHome init [2015-11-03 17:31:10,878] [Log ] [MPMain ] [DEBUG] - Main: OnResumeSuspend - set GUIGraphicsContext.State.RUNNING [2015-11-03 17:31:10,878] [Log ] [MPMain ] [DEBUG] - Main: OnResumeSuspend - Init Input Devices ...and then the thread is locked. :( I can tell that the thread is locked because there is no "Main: OnResumeSuspend - Done" message in the log. After the thread is locked MP receives the notification that you want to use the interface: [2015-11-03 17:31:10,893] [Log ] [MPMain ] [INFO ] - Main: WM_POWERBROADCAST (PBT_POWERSETTINGCHANGE) [2015-11-03 17:31:10,893] [Log ] [MPMain ] [INFO ] - Main: User is providing input to the session ...and my patch activates the user interface successfully: [collapse][2015-11-03 17:31:10,909] [Log ] [MPMain ] [INFO ] - Main: Resuming operation of user interface [2015-11-03 17:31:10,909] [Log ] [MPMain ] [DEBUG] - Main: OnResumeSuspend - set GUIGraphicsContext.State.RUNNING [2015-11-03 17:31:10,909] [Log ] [MPMain ] [DEBUG] - Main: OnResumeSuspend - Init Input Devices [2015-11-03 17:31:10,909] [Log ] [MPMain ] [INFO ] - Remotes: Init was called before Stop - stopping devices now ... [2015-11-03 17:31:10,956] [Log ] [MPMain ] [INFO ] - X10 debug: Could not get interface [2015-11-03 17:31:10,956] [Log ] [MPMain ] [DEBUG] - Main: OnResumeSuspend - Autoplay start listening [2015-11-03 17:31:10,956] [Log ] [MPMain ] [INFO ] - Main: OnResumeSuspend - Done[/collapse] However, if the thread did not get locked then the interface would already have been activated and my patch would not be required. So, the question is: why is the thread locked? After checking the code, it seems to me that the only place that the thread could get locked (since all input/remote handlers are disabled) is here: [URL]https://github.com/MediaPortal/MediaPortal-1/blob/master/mediaportal/RemotePlugins/Remotes/X10Remote/X10Remote.cs#L88-L115[/URL] I think that loading should not be necessary unless the X10 input/remote handler is actually enabled. [USER=60104]@Sebastiii[/USER] Can you please build another installer with the following changes: 1. Remove the previous patch. I think it should not be needed. 2. Add the following code: [code]if (!_controlEnabled) { return; }[/code] ...after this line: [URL]https://github.com/MediaPortal/MediaPortal-1/blob/master/mediaportal/RemotePlugins/Remotes/X10Remote/X10Remote.cs#L78[/URL] [USER=153825]@Jeffrios[/USER] and [USER=131230]@keeperoftraken[/USER] : please could you install and test the new installer once it becomes available, and please post log files regardless of success or failure. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
General Support
Media Portal freezes on wake
Contact us
RSS
Top
Bottom