[solved] Direct3D device could not be created - prohibiting mp start (1 Viewer)

Owlsroost

Retired Team Member
  • Premium Supporter
  • October 28, 2008
    5,540
    5,038
    Cambridge
    Home Country
    United Kingdom United Kingdom
    When the error occurs MP is making a Windows Direct3D system call (CreateDeviceEx), and that is returning 'not successful' - hence the error message.

    Did you have any .NET updates around the time the problem started?

    If you start MP in windowed mode (not full screen) does it work or fail?
     

    Owlsroost

    Retired Team Member
  • Premium Supporter
  • October 28, 2008
    5,540
    5,038
    Cambridge
    Home Country
    United Kingdom United Kingdom
    Assuming you are running MP 1.18, can you both try the attached 'MediaPortal.exe' please, which provides more logging information?

    You must have the log level set to 'debug' in MP Configuration.

    Just copy the 'MediaPortal.exe' from the attached zip file into 'C:\Program Files (x86)\Team MediaPortal\MediaPortal' (after making a backup copy of the original file), run MP and upload the logs please.
     

    Attachments

    • MediaPortal_exe_D3D_debug1.zip
      495.7 KB

    Owlsroost

    Retired Team Member
  • Premium Supporter
  • October 28, 2008
    5,540
    5,038
    Cambridge
    Home Country
    United Kingdom United Kingdom
    OK - I can reproduce the problem, but I haven't found the root cause of the problem yet.

    It looks like the MediaPortal.xml settings file (in C:\ProgramData\Team MediaPortal\MediaPortal) can get invalid values for these lines e.g.:

    <entry name="backupsizewidth">120</entry>
    <entry name="backupsizeheight">0</entry>

    ...which then causes the crash - but only if MP is starting in 'windowed' mode (not fullscreen).

    Please try this which hopefully should fix it for now:

    Open the MP configuration utility, go to General -> Startup/Resume Settings, then tick 'Start MediaPortal in fullscreen mode'.

    Close MP configuration, then start MP client - hopefully it will start OK. Close MP (which should save valid values for those lines mentioned above).

    If you need to run MP in windowed mode afterwards, open MP config and un-tick 'Start MediaPortal in fullscreen mode'.

    upload_2017-12-28_23-37-17.png


    I'll try and fix the code so that those values in MediaPortal.xml are sanity checked and don't cause an error....
     

    Attachments

    • upload_2017-12-28_23-36-41.png
      upload_2017-12-28_23-36-41.png
      69.7 KB
    Last edited:

    Owlsroost

    Retired Team Member
  • Premium Supporter
  • October 28, 2008
    5,540
    5,038
    Cambridge
    Home Country
    United Kingdom United Kingdom
    I'll try and fix the code so that those values in MediaPortal.xml are sanity checked and don't cause an error....

    @c 4 and @sdlitvin

    Please try the attached replacement 'MediaPortal.exe' - this should correct/workaround the 'invalid values' problem.

    To install, copy 'MediaPortal.exe' from the zip file into C:\Program Files (x86)\Team MediaPortal\MediaPortal (after making a backup copy of the original file)
     

    Attachments

    • MediaPortal_exe_D3D_debug2.zip
      496 KB

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    Thanks @Owlsroost for investigate this :p it's a regression introduce by my change so it seems and really happy that you take the time to resolve this :p
     

    yhoogi

    MP Donator
  • Premium Supporter
  • March 9, 2008
    599
    47
    Home Country
    Germany Germany
    I have since today also this issue that mp doesn't start
    neither in fullscreen nor in windowed mode.

    It hangs while saying "initializing directx"

    Logfiles are attached

    Thanks for any support
     

    Attachments

    • MediaPortalLogs_08_06_19__20_15.zip
      1.4 MB

    Users who are viewing this thread

    Top Bottom