MePo 1.6 Final Crash on D3D.GetCapabilities() | Page 2

Discussion in 'General Support' started by Bernard, January 5, 2014.

  1. Bernard

    Bernard Portal Pro

    Joined:
    March 5, 2012
    Messages:
    103
    Likes Received:
    20
    Gender:
    Male
    Occupation:
    Software Engineer
    Location:
    Centurion
    Ratings:
    +25 / 0
    Home Country:
    South Africa South Africa
    Show System Specs
    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!


     
    • Like Like x 1
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Sebastiii
    • Team MediaPortal

    Sebastiii Development Group

    Joined:
    November 12, 2007
    Messages:
    16,264
    Likes Received:
    6,218
    Gender:
    Male
    Location:
    France
    Ratings:
    +10,224 / 9
    Home Country:
    France France
    Show System Specs
    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 :)
     
    • Thank You! Thank You! x 1
  4. Bernard

    Bernard Portal Pro

    Joined:
    March 5, 2012
    Messages:
    103
    Likes Received:
    20
    Gender:
    Male
    Occupation:
    Software Engineer
    Location:
    Centurion
    Ratings:
    +25 / 0
    Home Country:
    South Africa South Africa
    Show System Specs
    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.
     
    • Like Like x 1
    • Thank You! Thank You! x 1
  5. Sebastiii
    • Team MediaPortal

    Sebastiii Development Group

    Joined:
    November 12, 2007
    Messages:
    16,264
    Likes Received:
    6,218
    Gender:
    Male
    Location:
    France
    Ratings:
    +10,224 / 9
    Home Country:
    France France
    Show System Specs
    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).

    :)
     
    • Agree Agree x 1
  6. Bernard

    Bernard Portal Pro

    Joined:
    March 5, 2012
    Messages:
    103
    Likes Received:
    20
    Gender:
    Male
    Occupation:
    Software Engineer
    Location:
    Centurion
    Ratings:
    +25 / 0
    Home Country:
    South Africa South Africa
    Show System Specs
    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...
     
    • Like Like x 1
  7. Sebastiii
    • Team MediaPortal

    Sebastiii Development Group

    Joined:
    November 12, 2007
    Messages:
    16,264
    Likes Received:
    6,218
    Gender:
    Male
    Location:
    France
    Ratings:
    +10,224 / 9
    Home Country:
    France France
    Show System Specs
    • Thank You! Thank You! x 1
  8. Sebastiii
    • Team MediaPortal

    Sebastiii Development Group

    Joined:
    November 12, 2007
    Messages:
    16,264
    Likes Received:
    6,218
    Gender:
    Male
    Location:
    France
    Ratings:
    +10,224 / 9
    Home Country:
    France France
    Show System Specs
    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 :)
     
  9. Bernard

    Bernard Portal Pro

    Joined:
    March 5, 2012
    Messages:
    103
    Likes Received:
    20
    Gender:
    Male
    Occupation:
    Software Engineer
    Location:
    Centurion
    Ratings:
    +25 / 0
    Home Country:
    South Africa South Africa
    Show System Specs
    Oh boy, I know nothing about c++ filters, so hopefully this will not be a brick wall! :eek:
    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.

    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: January 6, 2014
  10. Sebastiii
    • Team MediaPortal

    Sebastiii Development Group

    Joined:
    November 12, 2007
    Messages:
    16,264
    Likes Received:
    6,218
    Gender:
    Male
    Location:
    France
    Ratings:
    +10,224 / 9
    Home Country:
    France France
    Show System Specs
    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 :)
     
    • Like Like x 2
  11. Bernard

    Bernard Portal Pro

    Joined:
    March 5, 2012
    Messages:
    103
    Likes Received:
    20
    Gender:
    Male
    Occupation:
    Software Engineer
    Location:
    Centurion
    Ratings:
    +25 / 0
    Home Country:
    South Africa South Africa
    Show System Specs
    Excellent! This means we can potentially expand the error check code without creating spaghetti code!
     
    • Like Like x 2
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!