MP2 - V2.1 [MP2-581] Navigation in music view fails. (1 Viewer)

Status
Not open for further replies.

Brownard

Development Group
  • Team MediaPortal
  • March 21, 2007
    2,290
    1,872
    Home Country
    United Kingdom United Kingdom
    This is something more fundamental. I can not confirm the issue, but similar issues were reported. @Brownard had already pushed this. He needs to confirm, if this might solve it already, that's why a tagged him a few posts above.
    This looks like a different issue. I notice in the logs that the graphics device keeps being reset unexpectedly which is possibly related but I'm not sure why its being reset.
    [2016-12-31 09:46:30,606] [2447 ] [Main ] [WARN ] - GraphicsDevice: Resetting DX device...
    [2016-12-31 09:46:30,621] [2463 ] [Main ] [WARN ] - GraphicsDevice: Device successfully reset
    ...
    [2016-12-31 09:46:32,650] [4492 ] [Main ] [WARN ] - GraphicsDevice: Resetting DX device...
    [2016-12-31 09:46:32,861] [4703 ] [Main ] [WARN ] - GraphicsDevice: Device successfully reset
     

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,418
    2,335
    Home Country
    Germany Germany
    The DX issue has been captured as MP2-581. I am setting the thread about the initially reported navigation problems to "not reproducible".
     

    Helios61

    Retired Team Member
  • Premium Supporter
  • January 30, 2008
    4,587
    873
    62
    NRW
    Home Country
    Germany Germany
    The bug is still / again present in MP 2.1 final. Logs are attached. A lot of these entrries ->

    Code:
    [2017-05-15 15:43:03,115] [38607  ] [DX Render] [WARN ] - GraphicsDevice: DirectX Exception, DeviceState: Ok
    SharpDX.SharpDXException: HRESULT: [0x8876086C], Module: [SharpDX.Direct3D9], ApiCode: [D3DERR_INVALIDCALL/InvalidCall], Message: Unknown
       bei SharpDX.Result.CheckError()
       bei SharpDX.Direct3D9.Device.BeginScene()
       bei MediaPortal.UI.SkinEngine.DirectX.RenderPipelines.AbstractRenderPipeline.BeginRender()
       bei MediaPortal.UI.SkinEngine.DirectX.GraphicsDevice.Render(Boolean doWaitForNextFame)
    [2017-05-15 15:43:03,115] [38607  ] [DX Render] [WARN ] - GraphicsDevice: DirectX Exception, DeviceState: Ok
    SharpDX.SharpDXException: HRESULT: [0x8876086C], Module: [SharpDX.Direct3D9], ApiCode: [D3DERR_INVALIDCALL/InvalidCall], Message: Unknown
       bei SharpDX.Result.CheckError()
       bei SharpDX.Direct3D9.Device.BeginScene()
       bei MediaPortal.UI.SkinEngine.DirectX.RenderPipelines.AbstractRenderPipeline.BeginRender()
       bei MediaPortal.UI.SkinEngine.DirectX.GraphicsDevice.Render(Boolean doWaitForNextFame)
    [2017-05-15 15:43:03,115] [38607  ] [DX Render] [WARN ] - GraphicsDevice: DirectX Exception, DeviceState: Ok
    SharpDX.SharpDXException: HRESULT: [0x8876086C], Module: [SharpDX.Direct3D9], ApiCode: [D3DERR_INVALIDCALL/InvalidCall], Message: Unknown
       bei SharpDX.Result.CheckError()
       bei SharpDX.Direct3D9.Device.BeginScene()
       bei MediaPortal.UI.SkinEngine.DirectX.RenderPipelines.AbstractRenderPipeline.BeginRender()
       bei MediaPortal.UI.SkinEngine.DirectX.GraphicsDevice.Render(Boolean doWaitForNextFame)
     

    aspik

    Retired Team Member
  • Team MediaPortal
  • April 14, 2008
    1,322
    586
    Hi Helios61,

    using the steps from the first post, are you able to reproduce the issue every time? What graphic card (and driver version) do you have installed on your system? (I see your system spec, but I don't know on which system you're did the test).

    The error starts here:
    Code:
    [2017-05-15 15:42:34,526] [10018  ] [DX Render] [DEBUG] - ScreenManager: Closing screen 'home'
    [2017-05-15 15:42:37,885] [13377  ] [DX Render] [WARN ] - GraphicsDevice: DirectX Exception, DeviceState: Ok
    SharpDX.SharpDXException: HRESULT: [0x8876086C], Module: [SharpDX.Direct3D9], ApiCode: [D3DERR_INVALIDCALL/InvalidCall], Message: Unknown
       bei SharpDX.Result.CheckError()
       bei SharpDX.Direct3D9.Device.StretchRectangle(Surface sourceSurfaceRef, Nullable`1 sourceRectRef, Surface destSurfaceRef, Nullable`1 destRectRef, TextureFilter filter)
       bei MediaPortal.UI.SkinEngine.Controls.Visuals.FrameworkElement.Render(RenderContext parentRenderContext)

    The ApiCode from the SharpDXException is D3DERR_INVALIDCALL/InvalidCall, which means that the method call is invalid. The method which is throwing the exception seems to be StretchRectangle. According to the MSDN documentation driver support for this method varies.
    There are many restrictions as to which surface combinations are valid for StretchRect. Factors include whether the driver is a Direct3D 9 driver or older, and whether the operation will result in stretching/shrinking. Since applications are not expected to recognize if the driver is a Direct3D 9 driver or not, the runtime will automatically set a new cap, D3DDEVCAPS2_CAN_STRETCHRECT_FROM_TEXTURES cap (see D3DDEVCAPS2), for Direct3D 9-level drivers and above.

    @morpheus_xx
    In MP2 the call is done here. According to the comment, you did some optimizations in there. Do you think we should look into how we call StretchRectangle?
     

    Lehmden

    Retired Team Member
  • Premium Supporter
  • December 17, 2010
    12,554
    3,936
    Lehmden
    Home Country
    Germany Germany
    Hi.
    I also have SharpDX errors sometimes, but not reproducible. I have the same GFX (Intel HD 4600)... Mainly when playing lots of videos after each other without closing the client. Sometimes they are appearing while navigating too...
    But those errors are much less since Win 10 creators upgrade...
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    @Helios61 do you have MultiSampling Antialiasing (MSAA) enabled? The stacktrace above can only be reached in this case, an MS AA is known to cause various issues like affecting video performance, and probably also your reported issue. Please turn it off and try again.

    @Developers
    I would go so far to disable MSAA options from MP2 code, as it causes more issue than it improves visual appearance. In D2D branch it is no longer required at all (it uses per-primitive AA, not a full 2nd renderpass on whole image)
     

    Helios61

    Retired Team Member
  • Premium Supporter
  • January 30, 2008
    4,587
    873
    62
    NRW
    Home Country
    Germany Germany
    @Helios61 do you have MultiSampling Antialiasing (MSAA) enabled? The stacktrace above can only be reached in this case, an MS AA is known to cause various issues like affecting video performance, and probably also your reported issue. Please turn it off and try again.
    Yes, after tuning it off, it is working fine.
     
    Status
    Not open for further replies.

    Users who are viewing this thread

    Top Bottom