@Developers , mainly @Stéphane Lenclud could you help in D2D debugging? Issue seems to be a D2D effect with two input sources (image 1 + 2 for transition) and a set of parameters. When calling the effect rendering, I get an "INVALID_ARG" then all further calls an "INVALID_STATE".
The render starts here, coming with 2 inputs: https://github.com/MediaPortal/Medi...gement/AssetCore/EffectAssetCore.cs#L195-L197.
The calling code is the ImageContext, StartRenderTransition:
https://github.com/MediaPortal/Medi...kinEngine/Rendering/ImageContext.cs#L218-L243
The ImageTransitionEffect is defined here: https://github.com/MediaPortal/Medi...isuals/Effects2D/ImageTransitionEffect.cs#L67. The attributes on member properties are used for SharpDX parameter mappings to the data structure (is set as "Constant Buffer" to the shader(s)).
I think I already have double checked all types and indexes of variables and also order of constant buffer, but somewhere an issue is hiding It also could be a problem with the later combined shader sub functions for transitions (they are selected randomly).
[2015-05-02 06:44:59,211] [2816 ] [AMQ 'ScreenManager'] [WARN ] - Cannot open bitmapSource: 782140e7-4850-4c4d-9a88-7f670b4f37e2.jpg
[2015-05-02 06:44:59,212] [2817 ] [AMQ 'ScreenManager'] [WARN ] - Cannot open bitmapSource: ea48bd6e-60d3-45b2-9c35-1ab437cc72fb.jpg
[2015-05-02 06:44:59,212] [2817 ] [AMQ 'ScreenManager'] [WARN ] - Cannot open bitmapSource: 2c0d5028-e9fe-4eb3-b7fd-b8492b1009d2.jpg
[2015-05-02 06:44:59,213] [2818 ] [AMQ 'ScreenManager'] [WARN ] - Cannot open bitmapSource: 76d0d121-0b4b-400d-9104-09c7f20ee3a7.jpg
Thanks! Both things are normal: this is a "Debug" build where more test plugins are enabled and they don't have own tile images.Also found this.
This is indeed an issue...ALT-Enter causes screen to go Black. Had to use ALT-Tab to bring MP2 Client Screen back.
Thanks!Did a test on Windows 10 technical preview, but there is only a black screen with mouse cursor, if i use the cursor buttons on IRFB i hear the switching between the plugins.
On the Server with Windows 2012 i testet this version also, and there it's okay.
View attachment 164341
[2015-05-02 19:05:51,790] [1678 ] [DX Render] [WARN ] - GraphicsDevice: DirectX Exception
SharpDX.SharpDXException: HRESULT: [0x80070057], Module: [General], ApiCode: [E_INVALIDARG/Invalid Arguments], Message: Falscher Parameter.
bei SharpDX.Result.CheckError()
bei SharpDX.Direct2D1.Factory1.GetRegisteredEffects(Guid[] effects, Int32 effectsCount, Int32& effectsReturned, Int32& effectsRegistered)
bei SharpDX.Direct2D1.Factory1.get_RegisteredEffects()
bei MediaPortal.UI.SkinEngine.ContentManagement.AssetCore.EffectAssetCore`1.Allocate()
bei MediaPortal.UI.SkinEngine.ContentManagement.EffectAsset`1.Allocate()
bei MediaPortal.UI.SkinEngine.Rendering.ImageContext.StartRender(RenderContext renderContext, Color borderColor, Vector4 frameData)
The error codes are from DX11.1: E_INVALIDARG and E_INVALIDSTATE (for all subsequent calls after the first error appeared). SharpDX is "only" a C# wrapper around DX and D2D APIs.Not sure what gives you "INVALID_ARG" and "INVALID_STATE". Are those DX error codes or SharpDX?
Typically a shader will take a certain set of input arguments (attributes or unifroms), maybe that's your problem.
I would recommend you try implementing your transition effects outside MP.
This SharpDX library your are using surely comes with some examples you could modify to test your transitions?
Yes, didn't work yet since the D2D rewrite of those classes. In DX9 version everything is fine. Main issue is that D2D is also another API on top of DX11.1 for 2D drawing operations. This is good for all GUI rendering, but introduces new problems in shader handling: i.e. I cannot control SamplerStates to use other modes than "Clamp" (I need "Border" for all of our uses)Did it get broken when porting from one version of DX to another? Are you sure your are using the SharpDX library that works with the newer version of DX?
Thanks! There was an internal driver error which caused a "device lost" and re-creation of device:So far I've noticed two issues, both inside Titanium:
1. when you open the shutdown menu and scroll up and down few times, everything disappears and the home screen looks like in the attached screenshot.
2. when you go into settings, then back and then again into settings, the settings menu will have now buttons and not list items (screenshot). Selecting on of the buttons crashes MP2
Besides screenshots, I also post logs from both "sessions".
[2015-05-02 21:52:39,730] [24580 ] [DX Render] [DEBUG] - ScreenManager: Closing screen 'configuration-section'
[2015-05-02 21:52:39,917] [24767 ] [DX Render] [WARN ] - GraphicsDevice: DirectX Exception
SharpDX.SharpDXException: HRESULT: [0x887A0005], Module: [SharpDX.DXGI], ApiCode: [DXGI_ERROR_DEVICE_REMOVED/DeviceRemoved], Message: The GPU device instance has been suspended. Use GetDeviceRemovedReason to determine the appropriate action.
at SharpDX.Result.CheckError()
at SharpDX.DXGI.SwapChain.Present(Int32 syncInterval, PresentFlags flags)
at MediaPortal.UI.SkinEngine.DirectX11.GraphicsDevice11.Render(Boolean doWaitForNextFame)
[2015-05-02 21:52:39,919] [24769 ] [DX Render] [WARN ] - GraphicsDevice: DeviceRemovedReason: HRESULT = 0x887A0020
[2015-05-02 21:52:39,920] [24770 ] [DX Render] [WARN ] - GraphicsDevice: Resetting DX11 device...