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
MediaPortal 1 Plugins
Popular Plugins
Fanart Handler
Fanart Handler Plugin v4.0.X.000
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="HomeY" data-source="post: 1117875" data-attributes="member: 68365"><p>FanartHandler.cs (line 1024)</p><p>[code=c]internal void Start()[/code] seems to do a lot of stuff. Maybe it's not supposed to do all that, except when the plugin starts?</p><p></p><p>My loglines show:</p><p>[code]03-Jan-2015 11:30:27 Info [ FanartHandler]: Fanart Handler: is suspended/hibernated.</p><p>03-Jan-2015 11:30:27 Info [ FanartHandler]: Fanart Handler: is suspended/hibernated.</p><p>03-Jan-2015 11:31:20 Info [ FanartHandler]: Fanart Handler: is resuming from standby/hibernate.</p><p>03-Jan-2015 11:31:20 Info [ FanartHandler]: Fanart Handler: is resuming from standby/hibernate.[/code]</p><p>And then it goes from 2 lines to 3:</p><p>[code]03-Jan-2015 11:31:20 Info [ FanartHandler]: Fanart Handler is starting.</p><p>03-Jan-2015 11:31:20 Info [ FanartHandler]: Fanart Handler is starting.</p><p>03-Jan-2015 11:31:20 Info [ FanartHandler]: Fanart Handler is starting.</p><p>03-Jan-2015 11:31:20 Info [ FanartHandler]: Fanart Handler version is 4.0.0.151</p><p>03-Jan-2015 11:31:20 Info [ FanartHandler]: Fanart Handler version is 4.0.0.151</p><p>03-Jan-2015 11:31:20 Info [ FanartHandler]: Fanart Handler version is 4.0.0.151 [/code]</p><p></p><p>It seems <span style="font-family: 'Courier New'">OnSystemPowerModeChanged()</span> is triggering <span style="font-family: 'Courier New'">start()</span> on resume.</p><p>[code=c] private void OnSystemPowerModeChanged(object sender, PowerModeChangedEventArgs e)</p><p> {</p><p> try</p><p> {</p><p> if (e.Mode == PowerModes.Resume)</p><p> {</p><p> logger.Info("Fanart Handler: is resuming from standby/hibernate.");</p><p> StopTasks(false);</p><p> Start();</p><p> }[/code]</p><p><span style="font-family: 'Courier New'">Stop()</span> seems to try to release some of those resources that <span style="font-family: 'Courier New'">Start()</span> created, but maybe there are some references left and it fails to release the instances?</p></blockquote><p></p>
[QUOTE="HomeY, post: 1117875, member: 68365"] FanartHandler.cs (line 1024) [code=c]internal void Start()[/code] seems to do a lot of stuff. Maybe it's not supposed to do all that, except when the plugin starts? My loglines show: [code]03-Jan-2015 11:30:27 Info [ FanartHandler]: Fanart Handler: is suspended/hibernated. 03-Jan-2015 11:30:27 Info [ FanartHandler]: Fanart Handler: is suspended/hibernated. 03-Jan-2015 11:31:20 Info [ FanartHandler]: Fanart Handler: is resuming from standby/hibernate. 03-Jan-2015 11:31:20 Info [ FanartHandler]: Fanart Handler: is resuming from standby/hibernate.[/code] And then it goes from 2 lines to 3: [code]03-Jan-2015 11:31:20 Info [ FanartHandler]: Fanart Handler is starting. 03-Jan-2015 11:31:20 Info [ FanartHandler]: Fanart Handler is starting. 03-Jan-2015 11:31:20 Info [ FanartHandler]: Fanart Handler is starting. 03-Jan-2015 11:31:20 Info [ FanartHandler]: Fanart Handler version is 4.0.0.151 03-Jan-2015 11:31:20 Info [ FanartHandler]: Fanart Handler version is 4.0.0.151 03-Jan-2015 11:31:20 Info [ FanartHandler]: Fanart Handler version is 4.0.0.151 [/code] It seems [FONT=Courier New]OnSystemPowerModeChanged()[/FONT] is triggering [FONT=Courier New]start()[/FONT] on resume. [code=c] private void OnSystemPowerModeChanged(object sender, PowerModeChangedEventArgs e) { try { if (e.Mode == PowerModes.Resume) { logger.Info("Fanart Handler: is resuming from standby/hibernate."); StopTasks(false); Start(); }[/code] [FONT=Courier New]Stop()[/FONT] seems to try to release some of those resources that [FONT=Courier New]Start()[/FONT] created, but maybe there are some references left and it fails to release the instances? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Fanart Handler
Fanart Handler Plugin v4.0.X.000
Contact us
RSS
Top
Bottom