[MP1-4578] Crashes after standby. (1 Viewer)

killer8

Portal Pro
July 29, 2012
378
186
Home Country
Netherlands Netherlands
One thing I noticed since I installed the v4 fix. Sometimes when I resume the pc I see the desktop first for a couple of seconds(it isn't always the same, can be 1 second but also 8, but it can also go straight to mp) after that mediaportal comes up. When I see the desktop it's like mediaportal is minimized or invisible. Does anyone else see this behaviour after applying the fix? Previously it always resumed straight to mp and I never saw the desktop.
 

Sebastiii

Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    Yep i need to use the workaround to minimize (catch windows handle to properly send the resume message) and restore MP windows.
    So yes it's normal that it happen but i only find this way to get the handle and focus lol.
     

    killer8

    Portal Pro
    July 29, 2012
    378
    186
    Home Country
    Netherlands Netherlands
    Ah, that explains a lot. But why is it sometimes faster and sometimes slower. I mean sometimes it takes like 0 seconds and sometimes it's quite long(around 8 seconds or something).
     

    killer8

    Portal Pro
    July 29, 2012
    378
    186
    Home Country
    Netherlands Netherlands
    I found a few errors in my log. One of them is an out of memory from my gpu but this isn't possible since i'm using a nvidia gtx 970 with 4gb gddr5, even with the 4k resolution i'm using this shouldn't be a problem I think. The error only occured once.

    Here's the log:
    Code:
    [2014-10-13 23:42:44,242] [Error  ] [MPMain   ] [ERROR] - D3D: D3DERR_OUTOFVIDEOMEMORY - not enough available display memory to perform the operation
    [2014-10-13 23:42:44,279] [Error  ] [MPMain   ] [ERROR] - GUIFont: Failed to load font debug from cache. Trying to recreate it...
    [2014-10-13 23:42:44,307] [Log    ] [MPMain   ] [ERROR] - Exception: System.NullReferenceException: De objectverwijzing is niet op een exemplaar van een object ingesteld.
       bij MediaPortal.GUI.Library.GUIFont.InitializeDeviceObjects()
       bij MediaPortal.GUI.Library.GUIFontManager.InitializeDeviceObjects()
       bij MediaPortal.D3D.RecreateSwapChain()
       bij MediaPortal.D3D.RecoverDevice()
       bij MediaPortalApp.OnDeviceLost(Object sender, EventArgs e)
       bij Microsoft.DirectX.Direct3D.Device.raise_DeviceLost(Object i1, EventArgs i2)
       bij Microsoft.DirectX.Direct3D.Device.Reset(PresentParameters[] presentationParameters)
       bij MediaPortal.D3D.RecreateSwapChain()
       bij MediaPortalApp.OnGetMinMaxInfo(Message& msg)
       bij MediaPortalApp.WndProc(Message& msg)  Message: De objectverwijzing is niet op een exemplaar van een object ingesteld.  Site   : Void InitializeDeviceObjects()  Source : Core  Stack Trace:     bij MediaPortal.GUI.Library.GUIFont.InitializeDeviceObjects()
       bij MediaPortal.GUI.Library.GUIFontManager.InitializeDeviceObjects()
       bij MediaPortal.D3D.RecreateSwapChain()
       bij MediaPortal.D3D.RecoverDevice()
       bij MediaPortalApp.OnDeviceLost(Object sender, EventArgs e)
       bij Microsoft.DirectX.Direct3D.Device.raise_DeviceLost(Object i1, EventArgs i2)
       bij Microsoft.DirectX.Direct3D.Device.Reset(PresentParameters[] presentationParameters)
       bij MediaPortal.D3D.RecreateSwapChain()
       bij MediaPortalApp.OnGetMinMaxInfo(Message& msg)
       bij MediaPortalApp.WndProc(Message& msg)
    [2014-10-13 23:42:44,336] [Log    ] [MPMain   ] [ERROR] - Exception: Fout in de toepassing.
    -2005530516 (D3DERR_INVALIDCALL)
       bij Microsoft.DirectX.Direct3D.Device.EvictManagedResources()
       bij MediaPortal.D3D.RecreateSwapChain()
       bij MediaPortal.D3D.RecoverDevice()
       bij MediaPortalApp.OnProcess()
       bij MediaPortal.D3D.OnIdle(Object sender, EventArgs e)
       bij System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
       bij System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
       bij System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       bij System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       bij System.Windows.Forms.Application.Run(Form mainForm)
       bij MediaPortalApp.Main(String[] args)  Message: Fout in de toepassing.  Site   : Void EvictManagedResources()  Source : Microsoft.DirectX.Direct3D  Stack Trace:     bij Microsoft.DirectX.Direct3D.Device.EvictManagedResources()
       bij MediaPortal.D3D.RecreateSwapChain()
       bij MediaPortal.D3D.RecoverDevice()
       bij MediaPortalApp.OnProcess()
       bij MediaPortal.D3D.OnIdle(Object sender, EventArgs e)
       bij System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
       bij System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
       bij System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       bij System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       bij System.Windows.Forms.Application.Run(Form mainForm)
       bij MediaPortalApp.Main(String[] args)
    [2014-10-13 23:42:44,338] [Error  ] [MPMain   ] [ERROR] - MediaPortal stopped due to an exception Fout in de toepassing. Microsoft.DirectX.Direct3D    bij Microsoft.DirectX.Direct3D.Device.EvictManagedResources()
       bij MediaPortal.D3D.RecreateSwapChain()
       bij MediaPortal.D3D.RecoverDevice()
       bij MediaPortalApp.OnProcess()
       bij MediaPortal.D3D.OnIdle(Object sender, EventArgs e)
       bij System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
       bij System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
       bij System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       bij System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       bij System.Windows.Forms.Application.Run(Form mainForm)
       bij MediaPortalApp.Main(String[] args)
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    Ah, that explains a lot. But why is it sometimes faster and sometimes slower. I mean sometimes it takes like 0 seconds and sometimes it's quite long(around 8 seconds or something).

    Don't know maybe it's because MP try to start D3D too soon and can lead to your error in the next post.
    Maybe you could try to delay the resume (for ex 30 sec) to see what happen ? :)
     

    killer8

    Portal Pro
    July 29, 2012
    378
    186
    Home Country
    Netherlands Netherlands
    Ah, that explains a lot. But why is it sometimes faster and sometimes slower. I mean sometimes it takes like 0 seconds and sometimes it's quite long(around 8 seconds or something).

    Don't know maybe it's because MP try to start D3D too soon and can lead to your error in the next post.
    Maybe you could try to delay the resume (for ex 30 sec) to see what happen ? :)
    I will give that a try.

    Mediaportal crashed again this morning(log included). Atleast it had the rectangle in the upper left corner and mediaportal was invisible, I had to reboot my pc to get it working again(I use always in front so wasn't able to kill the process since it wasn't really crashed).

    I'm thinking something has changed since I downgraded my bios yesterday to solve another problem(weird keyboard behaviour after standby sometimes and no audio over hdmi, however these 2 issues seems to be fixed with the older bios). Any recommended settings regarding standby in the bios which I can check? Mediaportal was quite stable before the downgrade for atleast one day.

    Update: I tried to resume after about 5/6 hours(I think problems only occur when it slept for a while) and there was no problem this time.Only thing I noticed, the screen stayed black for quite a while before mediaportal showed up.
     
    Last edited:

    killer8

    Portal Pro
    July 29, 2012
    378
    186
    Home Country
    Netherlands Netherlands
    And again I had a problem where mediaportal was invisible. Error in the log is:

    Code:
    [2014-10-14 18:47:55,481] [Log    ] [MPMain   ] [ERROR] - Exception: System.NullReferenceException: De objectverwijzing is niet op een exemplaar van een object ingesteld.
       bij MediaPortal.GUI.Library.GUIFont.InitializeDeviceObjects()
       bij MediaPortal.GUI.Library.GUIFontManager.InitializeDeviceObjects()
       bij MediaPortal.D3D.RecreateSwapChain()
       bij MediaPortal.D3D.RecoverDevice()
       bij MediaPortalApp.OnDeviceLost(Object sender, EventArgs e)
       bij System.EventHandler.Invoke(Object sender, EventArgs e)
       bij Microsoft.DirectX.Direct3D.Device.raise_DeviceLost(Object i1, EventArgs i2)
       bij Microsoft.DirectX.Direct3D.Device.Reset(PresentParameters[] presentationParameters)
       bij MediaPortal.D3D.RecreateSwapChain()
       bij MediaPortalApp.OnGetMinMaxInfo(Message& msg)
       bij MediaPortalApp.WndProc(Message& msg)  Message: De objectverwijzing is niet op een exemplaar van een object ingesteld.  Site   : Void InitializeDeviceObjects()  Source : Core  Stack Trace:     bij MediaPortal.GUI.Library.GUIFont.InitializeDeviceObjects()
       bij MediaPortal.GUI.Library.GUIFontManager.InitializeDeviceObjects()
       bij MediaPortal.D3D.RecreateSwapChain()
       bij MediaPortal.D3D.RecoverDevice()
       bij MediaPortalApp.OnDeviceLost(Object sender, EventArgs e)
       bij System.EventHandler.Invoke(Object sender, EventArgs e)
       bij Microsoft.DirectX.Direct3D.Device.raise_DeviceLost(Object i1, EventArgs i2)
       bij Microsoft.DirectX.Direct3D.Device.Reset(PresentParameters[] presentationParameters)
       bij MediaPortal.D3D.RecreateSwapChain()
       bij MediaPortalApp.OnGetMinMaxInfo(Message& msg)
       bij MediaPortalApp.WndProc(Message& msg)

    I will try if it gets better when I revert the v4 fix.

    Update: same crashes in background without v4 fix however when it works it resumes nicely -> I don't see the desktop. But I will install the v4 fix again and see if I can get the crashes fixed

    Update #2 Got another crash, I've enabled watchdog now so here is the zip.
     
    Last edited:

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    Try my own build too :)
    You can reinstall 1.9 over it if needed, it should maybe fix the error :
    TvPlugin.TVHome.TvDelayThread() ..... :)
     

    Users who are viewing this thread

    Top Bottom