MePo 1.6 Final Crash on D3D.GetCapabilities() (1 Viewer)

Bernard

Portal Pro
March 5, 2012
103
25
35
Centurion
South Africa South Africa
Only thing I can think of is to install Vista and see if I can get MePo to work.

Guess this Motherboard is just to old for Win7. I had a hard time installing drivers, since the manufacturer didn't provide Win7 drivers for everything, only Vista.

Also this is using integrated graphics and I don't have a PCI-e 16x video card to test. But I will see what I can buy for cheap maybe if everything fails.

Anyways thanks for helping! Time to go to bed, 2014 work year starts tomorrow early!
 

Sebastiii

Development Group
  • Team MediaPortal
  • November 12, 2007
    16,433
    10,254
    France
    France France
    Country flag
    Good luck :)
    And hope it's a Video drivers issue (it looks like) but i would like to say thank you because you trigger a bug in D3D rework i have made :)
     

    Bernard

    Portal Pro
    March 5, 2012
    103
    25
    35
    Centurion
    South Africa South Africa
    Your welcome! It's always a pleasure to contribute to an Open Source project! In the end that is how the project succeeds, by everyone working together!

    Since I have a very uncommon problem with my video drivers, is there anyway that I can help you to improve the error handling code so to give someone a better response than "Object reference not set to an instance"? And also maybe that loop you created should have a timeout, or retry count so that it does not run indefinitely.

    My thinking is that maybe we can improve the error messages, so that if anyone ever gets this same issue (it can potentially be any Direct3D related issue, that cause it to not work... i'm not sure how many cases would cause this "null reference exception") the system immediately points it out, rather than showing the same "Loading DirectX..." message indefinitely and expecting the end-user to read the logs to get a hint that he has something wrong. We could say "Fatal Error: Direct3D could not load. Please try reinstalling your display drivers, or DirectX." as an example.

    I'm also a C# developer, so I don't have a problem reading and contributing code, but I need an "inside man" to vet the code and help it get accepted... So from my side I will try my best to figure out where the "null object" lies in the code, and then I can try to research the Direct3D libraries to determine "why" it would be "null". And then update the code as I think, but then I will need your help to verify that the code is acceptable?

    Would you be willing to help, and would you be able to point me to the source that you worked on, since the "trunk" is now outdated? I'm also more than willing to just debug the issue and write to you what is "null" and "why" and you can then write the code to improve on the error reporting? This DOES mean that you have to do more coding work...

    We can continue to work on your WIP thread referenced above just so that there is not 2 threads on this topic of D3D updates.

    I will also need to get Git going as I'm still on SVN.
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,433
    10,254
    France
    France France
    Country flag
    Hi,
    I can help for sure :)

    The loop should be stopped @ 20 retry ( but inside 20 retry we have also 20 retry for enum and adaptor).

    So yes you need to setup your dev env for MP (because you need to build c++ filter etc.)
    There is a wiki page where all is explained :)

    There is a WIP branch on GIT and i need to push the last change from yesterday (will do that this evening).

    The culprit code is in mediaportal.cs and D3D.cs.

    We run here in 2 issues :

    1- A delay need to be done on Init when system start. (that the purpose of the Bin i.e v15 actually)
    2- Check D3D capabilities or something related to D3D when the Driver or whatever will 100% failed (like your issue).

    :)
     

    Bernard

    Portal Pro
    March 5, 2012
    103
    25
    35
    Centurion
    South Africa South Africa
    Hi @Sebastiii,
    FYI, I have found the following thread which shows that there is proper error handling for Direct3D: https://forum.team-mediaportal.com/...ce-could-not-be-created-always-solved.122485/ From what I understand in the explanation, MePo did in fact show a understandable message ("Direct3D device could not be created"). So it may be that there are checks in place for issues with Direct3D, but in my case it may be failing on another (lower/deeper) level in code, thus "falsely" passing this check. Figuring this out will be a good starting point for me...
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,433
    10,254
    France
    France France
    Country flag
    Hi @Sebastiii,
    FYI, I have found the following thread which shows that there is proper error handling for Direct3D: https://forum.team-mediaportal.com/...ce-could-not-be-created-always-solved.122485/ From what I understand in the explanation, MePo did in fact show a understandable message ("Direct3D device could not be created"). So it may be that there are checks in place for issues with Direct3D, but in my case it may be failing on another (lower/deeper) level in code, thus "falsely" passing this check. Figuring this out will be a good starting point for me...
    Yep there is check loop in current master code but we run into exception, my branch should solve it and i have add retry loop because it can be D3D not fully init or drivers D3D missing or something.

    So we need to have a 100% check :)
     

    Bernard

    Portal Pro
    March 5, 2012
    103
    25
    35
    Centurion
    South Africa South Africa
    So yes you need to setup your dev env for MP (because you need to build c++ filter etc.)
    Oh boy, I know nothing about c++ filters, so hopefully this will not be a brick wall! :eek:
    There is a WIP branch on GIT and i need to push the last change from yesterday (will do that this evening).
    You can do it as you get time, I have a lot of setup work to do before I can start working on the code. I also have a daytime job, and a wife. So I'll try to get to it as soon as possible.

    We run here in 2 issues : 1[...] 2[...]
    Agreed, I will focus on finding the heart of number 2.

    Thanks the links will help a lot to get me up to speed!

    Edit: Oi! The spelling and grammar!
     
    Last edited:

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,433
    10,254
    France
    France France
    Country flag
    Thanks :)
    Let's go to work otherwise i will be late lol

    Will push the change on GIT this evening, if you follow Wiki, the c++ filter will be build correctly without doing anything, except start the .bat :)
     

    Bernard

    Portal Pro
    March 5, 2012
    103
    25
    35
    Centurion
    South Africa South Africa
    Yep there is check loop in current master code but we run into exception, my branch should solve it and i have add retry loop because it can be D3D not fully init or drivers D3D missing or something.
    So we need to have a 100% check
    Excellent! This means we can potentially expand the error check code without creating spaghetti code!
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    RoChess Random GPU crash leads to MePo restart, but works fine afterwards MediaPortal 1 14
    RoChess Splashscreen MePo version Titan Skin Feedback 8
    benicehavefun Using MePo TV Server 1.23 via MPExtended/WebMediaPortal as a Backend for Plex MPExtended 4
    B IPTV von Deutsche Glasfaser mit MePo nutzbar? TV / Streaming 0
    muellinger MePo 1.19 und PowerDVD 12 für Blu-Ray. Tips für die Konfiguration benötigt Video & DVD 5
    catalpa Moni aus lässt mepo client abstürzen [gelöst, aber wie] Allgemeines Supportforum 13
    J Info button is virtually pressed with each button use in MePo 1.19 Remotes 8
    ajs [Action Required] MP 1.25 Final Release thread MediaPortal 1 503
    ajs [Action Required] MP 1.24 Final Release thread MediaPortal 1 37
    azzuro [Action Required] MP 1.23 Final Release thread MediaPortal 1 58
    badboyxx MP 1.22 final is crashing when jumping forward while playing DVD-Iso watch/edit Videos 26
    T Issues with MediaPortal not starting correctly using versions after 1.20 Final General Support 6
    ajs [Action Required] MP 1.22 Final Release thread MediaPortal 1 83
    O [Action Required] MP 1.21 Final Release thread MediaPortal 1 84
    greybox 1.20 final does not update video duration automatically 1.20 10
    greybox 1.20 final does not update video duration automatically 1.20 Pre Release 1
    regeszter [Action Required] MP 1.20 Final Release thread MediaPortal 1 43
    coolblue [solved] How to delete Recording? General 16
    T Moving Pictures error after update to 1.19 Final...logs included! Watch / Listen Media 6
    U [solved] MediaPortal crashing on startup General Support 10
    RoChess Weird GPU crash -- possible cause: resizing media MediaPortal 1 Talk 8
    torone Dritter versuch mit Mediaportal 2 Allgemeines Support- und Diskussionsforum 1
    W [solved] MP suddenly Crashes when starting live TV on most channels and on recordings from the same channels General Support 20
    W [solved] MP suddenly Crashes when starting live TV on some channels and on some recordings Television (MyTV frontend and TV-Server) 1
    D [solved] Changed username in Win10, now TV Server config crashes on fresh install Installation, configuration support 1
    Similar threads

























    Top Bottom