You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are trying to get our game to Microsoft Store. It works fine on all our Windows computers (including servers), but during the certification process in Microsoft Store, it throws the following exception in SkiaSharp:
System.Runtime.InteropServices.COMException: Class not registered (0x80040154 (REGDB_E_CLASSNOTREG))
System.TypeInitializationException: The type initializer for 'SkiaSharp.Views.WinUI.Native.PropertySetExtensions' threw an exception.
?, in IObjectReference PropertySetExtensions.get__objRef_global__SkiaSharp_Views_WinUI_Native_IPropertySetExtensionsStatics()
?, in void PropertySetExtensions.AddSingle(PropertySet propertySet, string key, float value)
?, in void GlesContext.CreateSurface(SwapChainPanel panel, Size? renderSurfaceSize, float? resolutionScale)
?, in void AngleSwapChainPanel.EnsureRenderSurface()
?, in void AngleSwapChainPanel.OnSizeChanged(object sender, SizeChangedEventArgs e)
This seems to be related to AngleSwapChainPanel.cs in SkiaSharp.Views.WinUI and GlesContext.cs in SkiaSharp.Views.WinUI\GlesInterop. In the latter, the lines
if (resolutionScale.HasValue)
{
PropertySetExtensions.AddSingle(surfaceCreationProperties, Egl.EGLRenderResolutionScaleProperty, resolutionScale.Value);
}
seem to fail. What may be causing this in Microsoft Store certification? Does anybody know any workarounds for this?
Description
We are trying to get our game to Microsoft Store. It works fine on all our Windows computers (including servers), but during the certification process in Microsoft Store, it throws the following exception in SkiaSharp:
This seems to be related to AngleSwapChainPanel.cs in SkiaSharp.Views.WinUI and GlesContext.cs in SkiaSharp.Views.WinUI\GlesInterop. In the latter, the lines
seem to fail. What may be causing this in Microsoft Store certification? Does anybody know any workarounds for this?
Code
https://github.com/hyvanmielenpelit/GnollHack
Expected Behavior
Microsoft Store certification does not result in exceptions.
Actual Behavior
Microsoft Store certification throws System.Runtime.InteropServices.COMException: Class not registered (0x80040154 (REGDB_E_CLASSNOTREG))
Version of SkiaSharp
3.x (Alpha)
Last Known Good Version of SkiaSharp
Other (Please indicate in the description)
IDE / Editor
Visual Studio (Windows)
Platform / Operating System
Windows
Platform / Operating System Version
Windows 10.0.22631.3296
Devices
Dell Latitude 5520, during Microsoft Store certification process
Relevant Screenshots
No response
Relevant Log Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: