1.15.0 - MediaPortal Invisible on Resume from Hibernate | Page 4

Discussion in 'Archive' started by rmeredit, October 1, 2016.

  1. mm1352000
    • Team MediaPortal

    mm1352000 Development Group

    Joined:
    September 1, 2008
    Messages:
    21,526
    Likes Received:
    4,734
    Ratings:
    +8,200 / 17
    Home Country:
    New Zealand New Zealand
    Can you attach your test code?
    I'd like to have a look and maybe have a try.

    Well, as you know MediaPortalApp/D3D is the render target, 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:
    https://github.com/MediaPortal/Medi...iaPortal.Application/MediaPortal.cs#L978-L994
    Code (Text):
    1.  
    2.   var app = new MediaPortalApp();
    3.   if (app.Init())
    4.   {
    5.     try
    6.     {
    7.       Log.Info("Main: Running");
    8.       GUIGraphicsContext.BlankScreen = false;
    9.       Application.Run(app);
    10.       app.Focus();
    11.     }
    12.     catch (Exception ex)
    13.     {
    14.       Log.Error(ex);
    15.       Log.Error("MediaPortal stopped due to an exception {0} {1} {2}", ex.Message, ex.Source, ex.StackTrace);
    16.       _mpCrashed = true;
    17.     }
    18.     app.OnExit();
    19.   }



     
    • Agree Agree x 1
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Sebastiii
    • Team MediaPortal

    Sebastiii Development Group

    Joined:
    November 12, 2007
    Messages:
    16,240
    Likes Received:
    6,203
    Gender:
    Male
    Location:
    France
    Ratings:
    +10,202 / 9
    Home Country:
    France France
    Show System Specs
    Great :)

    You are right all along and you are faster than me lol.
    So yes we need refactored because if we force the dispose of render target, it close MP :p

    The tested code was based on my build and i have quite all reverted except adding code to auto restart MP (better than nothing for now).
    I will try to put code based on master with an EXP branch, like this you can surely try to look on this.

    Thanks :p
     
    • Thank You! Thank You! x 1
  4. Sebastiii
    • Team MediaPortal

    Sebastiii Development Group

    Joined:
    November 12, 2007
    Messages:
    16,240
    Likes Received:
    6,203
    Gender:
    Male
    Location:
    France
    Ratings:
    +10,202 / 9
    Home Country:
    France France
    Show System Specs
    @mm1352000 i have pushed a branch : https://git.io/vP4gD
    But still i can't make it works like this night :(

    But you are right we really need to do the refactoring but even with that i'm not sure Manager.Adapters will be correct.
    I have try in the catch exception (from your above pasted code) to start another instance of MP and it was not fully good too (for sure manager was not filled correctly either and all was disposed).
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!