Direct3D could not be created after resume (1 Viewer)

The_Stig

Retired Team Member
  • Premium Supporter
  • April 5, 2005
    2,176
    428
    Country flag
    MediaPortal Version: 1.4.0

    Description
    I get this Direct3D error after resume quite often lately (hangs on "Initializing DirectX" and after around 2 Minutes it closes MP with the Direct3D error).
    Debug-log attached. Since its not happening all the time I could only export present logs.
    I already tried to increase the time when MP starts to 5 seconds, but this doesnt help at all. First time if have seen this behaviour was with 1.4 pre-release.
    What I think is a bit weird is that MP is starting up fully. Shouldnt it only re-initialize itself? At least that is what I am seeing most of the time after a resume.
    Anyone with an idea?

    Steps to Reproduce:
    1. Resume MP from standy
     

    Froderikus

    Portal Member
    May 27, 2013
    8
    2
    49
    Germany Germany
    Hello,

    I also have this problem after reboot. Does not help to set the internal "Delay Startup" function.
    I use a third party software called "StartupDelayer" to set a startup delay of 5 sec.
    This does the job.

    Frank
     
    Last edited:

    BlueMax1916

    Super User
  • Team MediaPortal
  • Super User
  • January 29, 2007
    699
    124
    Germany Germany
    Country flag
    I have the same problem after a fresh restart. MePo 1.4.0 hangs at 'Initializing DirectX'. When a fire up the task manager I see that FullScreenSplashScreen.exe hangs. After killing it and another start it loads. I have set MePo to autostart via autostart folder. This problem began after updating to 1.4.0 from 1.3.0 yesterday.

    I have reinstalled latest DirectX9 already but to no avail.
     
    Last edited:

    The_Stig

    Retired Team Member
  • Premium Supporter
  • April 5, 2005
    2,176
    428
    Country flag
    Thanks for your answers. I'd like to get this fixed and not just workaround with other tools. So may I ask if you attach logs when happening? Best run MP debug mode and click on "Export all current avalílable logs". So I hope to find a dev when other have this problem too. Thanks!
     

    mm1352000

    Development Group
  • Team MediaPortal
  • September 1, 2008
    21,571
    8,218
    New Zealand New Zealand
    Country flag
    @Scythe42 (seem to be tagging you quite a lot recently - sorry :))
    I guess the error message is due to _renderTarget having been disposed, but my question would be why/how the application is disposed. Unhandled exception in the standby process (total guess :)) ???

    @The_Stig
    Seems like your logs are not debug-level. Could you please change to debug-level in MP configuration so we can have full details for when this problem occurs next time.
     

    The_Stig

    Retired Team Member
  • Premium Supporter
  • April 5, 2005
    2,176
    428
    Country flag
    Seems like your logs are not debug-level. Could you please change to debug-level in MP configuration so we can have full details for when this problem occurs next time.
    Will do. Thanks for looking into this issue.
     

    BlueMax1916

    Super User
  • Team MediaPortal
  • Super User
  • January 29, 2007
    699
    124
    Germany Germany
    Country flag
    Here is my log. I have to kill MePo during DirectX Initialisation because it hangs. When the trouble starts I hear a Windows error sound in the background.

    Cheers
     
    Last edited:

    Scythe42

    Retired Team Member
  • Premium Supporter
  • June 20, 2009
    2,065
    2,703
    46
    Berlin
    Germany Germany
    MP comes up too early and lands in an "environment" before D3D is fully ready. Delaying startup inside MP has no effect here naturally, as the executable is already loaded.

    This does down to an issue with Manged DirectX that loads some resources that cannot be re-initialized in .NET as soon as the executable loads you are stuck in a given environment.

    Please give it a try starting MP with the Task Scheduler if the problem still persists. Changing from the legacy Run Key to the Task Scheduler is simple.

    Or use an other tool for a more controlled Auto Start of applications.

    Also there is a proper Error Message Box, but it is overlayed by the damn splash screen that is on top of it. A simple OK would work here, but you cannot click on it. Always on Top is evil...
     
    Last edited:

    The_Stig

    Retired Team Member
  • Premium Supporter
  • April 5, 2005
    2,176
    428
    Country flag
    Please give it a try starting MP with the Task Scheduler if the problem still persists. Changing from the legacy Run Key to the Task Scheduler is simple.
    Erm...could you explain a bit more for a dummy?
     

    Scythe42

    Retired Team Member
  • Premium Supporter
  • June 20, 2009
    2,065
    2,703
    46
    Berlin
    Germany Germany
    Windows has its own Task Scheduler since for ever. I think since the Win95 Plus Pack.

    Here is a video introduction:


    Just autostart MP with a trigger executed upon booting Windows. In fact this is the way autostart should be handled since Windows 7 according to MS guidelines. Was overhauled with Vista a lot with additional feature like executing stuff based on entries in the event log...

    And changing code to create an entry here instead of the run key is very very simple. Have a branch laying around since ages for MP that uses the task management library.

    Edit:
    Interesting question now is: will this solve the issue for you or does it in the end come down to an issue with Managed DirectX, meaning MP needs an autostart wrapper that actually does the delay before starting the MediaPortal.exe.

    As said code wise nothing can be done, because I tracked the issue down to Managed Direct X, that cannot re-init some stuff once the runtime is loaded.

    I consider this a defect in MP, but nothing that can be solved easily without some major changes. In the end the deprecated Managed DirectX has to anyway and such problems go away with it.
     
    Last edited:

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

    OP Similar threads Forum Replies Date
    C Problem playing videos created on IPhone X and Samsung S9 General Support 2
    G [fixed] No recorded video thumbnails created while recording. 2.2 Archive 2
    M [solved] MP2 v 2.2.1 Issue - Registry Key not created General 5
    uxDesign Can't play Blu Ray: VideoPlayer9: Exception while creating DShow graph 1.20 2
    S Resume Playback Annoyance Newcomers Forum 4
    joecrow MP 1 Hangs on resume fro sleep (TV) Watch / Listen Media 2
    joecrow 1.25.0 Radio Time plugin fails after Resume from Sleep with MP 1.25 Bugreports 4
    F After resume, TV Server connection screen is shown General Support 4
    Dark Eyes TVService locks up or fails to restart on resuming from sleep, and crashes when grabbing EPG Installation, configuration support 7
    P MP2 Client Screen Flickering on Resume General 2
    HTPCSourcer [fixed] [MP2-815] User not logged in when resuming from standby MediaPortal 2 17
    J Resume from Standby Last Module TV Showing TV Server Settings Television (MyTV frontend and TV-Server) 2
    R Media portal resumes with wrong screen resolution General Support 3
    B resume from within a folder Watch / Listen Media 0
    joecrow No Audio after MP Start/Resume from Sleep General Support 0
    R Weird sleep/resume loop General Support 4
    joecrow Further problem on resume from sleep (MP Crash) 1.21 5
    joecrow Loss of Navigation Sounds on Resume from Sleep Mp 1.21 General Support 10
    D [further infos missing] Problems switching to live tv channel after resume 2.2 Archive 1
    stirlinghart [duplicate] Mp not focused on after resuming from sleep 2.2 Archive 7
    P Multiple clients - share resume/watched data General 1
    stirlinghart FOCUS not on MP after resuming from sleep General 11
    U IR Blaster doesn't work after system wake/resume General Support 6
    megahorst Mediaportal chrashs when the PC goes to suspend mode (or when it resumes?) 1.19 11
    Similar threads
























    Top Bottom