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
Quality Assurance
Bugreports
Archive
MediaPortal Invisible on Resume from Hibernate
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: 1197666" data-attributes="member: 82144"><p>Can you attach your test code?</p><p>I'd like to have a look and maybe have a try.</p><p></p><p></p><p>Well, as you know <strong>MediaPortalApp/D3D is the render target</strong>, so I'm not surprised. This is why I have continued to say that the render target needs to be disposed. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /></p><p></p><p>I think mostly that the main() function needs to be refactored so that the MediaPortalApp instance ("app") can be disposed and recreated after GPU crash. I'm talking about this part:</p><p><a href="https://github.com/MediaPortal/MediaPortal-1/blob/master/mediaportal/MediaPortal.Application/MediaPortal.cs#L978-L994" target="_blank">https://github.com/MediaPortal/MediaPortal-1/blob/master/mediaportal/MediaPortal.Application/MediaPortal.cs#L978-L994</a></p><p>[code]</p><p> var app = new MediaPortalApp();</p><p> if (app.Init())</p><p> {</p><p> try</p><p> {</p><p> Log.Info("Main: Running");</p><p> GUIGraphicsContext.BlankScreen = false;</p><p> Application.Run(app);</p><p> app.Focus();</p><p> }</p><p> catch (Exception ex)</p><p> {</p><p> Log.Error(ex);</p><p> Log.Error("MediaPortal stopped due to an exception {0} {1} {2}", ex.Message, ex.Source, ex.StackTrace);</p><p> _mpCrashed = true;</p><p> }</p><p> app.OnExit();</p><p> }[/code]</p></blockquote><p></p>
[QUOTE="mm1352000, post: 1197666, member: 82144"] Can you attach your test code? I'd like to have a look and maybe have a try. Well, as you know [B]MediaPortalApp/D3D is the render target[/B], so I'm not surprised. This is why I have continued to say that the render target needs to be disposed. ;) I think mostly that the main() function needs to be refactored so that the MediaPortalApp instance ("app") can be disposed and recreated after GPU crash. I'm talking about this part: [URL]https://github.com/MediaPortal/MediaPortal-1/blob/master/mediaportal/MediaPortal.Application/MediaPortal.cs#L978-L994[/URL] [code] var app = new MediaPortalApp(); if (app.Init()) { try { Log.Info("Main: Running"); GUIGraphicsContext.BlankScreen = false; Application.Run(app); app.Focus(); } catch (Exception ex) { Log.Error(ex); Log.Error("MediaPortal stopped due to an exception {0} {1} {2}", ex.Message, ex.Source, ex.StackTrace); _mpCrashed = true; } app.OnExit(); }[/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Quality Assurance
Bugreports
Archive
MediaPortal Invisible on Resume from Hibernate
Contact us
RSS
Top
Bottom