Repository navigation
Description
Current behavior
On the Win32 Skia host with the default backend chain (Vulkan → OpenGL → software), the app sometimes dies a few seconds after it starts. The cause is a native access violation (0xc0000005, faulting module coreclr.dll) on Uno's render thread while it creates the Skia Vulkan context. The window just disappears. Because the crash is native, no managed handler runs and nothing reaches the app's log, so the app gets no chance to react or fall back to another backend.
Stack from the Windows Application log (.NET Runtime, event 1026):
Description: The process was terminated due to an unhandled exception.
Stack:
at SkiaSharp.GRContext.CreateVulkan(SkiaSharp.GRVkBackendContext, SkiaSharp.GRContextOptions)
at Uno.UI.Composition.Drawing.SkiaDrawingFactory.PresentForVulkan(Uno.UI.Composition.Drawing.IVulkanRenderTarget)
at Microsoft.UI.Xaml.Media.CompositionTarget.BeginPresent(Uno.UI.Composition.Drawing.IDrawingFactory, Uno.UI.Composition.Drawing.IRenderTarget, System.ReadOnlySpan`1<Windows.Foundation.Rect>)
at Microsoft.UI.Xaml.Media.CompositionTarget.Draw(Uno.UI.Composition.Drawing.ISwapChain, System.Nullable`1<System.Numerics.Matrix4x4>, System.Action`1<Uno.UI.Composition.Drawing.IDrawingSession>)
at Uno.UI.Runtime.Win32.Win32WindowWrapper.DrawFrame()
at Uno.UI.Runtime.Win32.Win32WindowWrapper+RenderThread.RenderLoop()
Application Error (event 1000): faulting module coreclr.dll 11.0.26.53018, exception code 0xc0000005, fault offset 0x0000000000384f74. The stack and offset were identical in all three crashes.
Expected behavior
The app should not lose its process while creating a GPU context. If GRContext.CreateVulkan cannot succeed, the Win32 host should fall back to the next backend (OpenGL, then software), as it already does when a backend fails to initialize. If the fault is inside SkiaSharp or the driver, a check before the call, or some way for the app to know the Vulkan setup is unsafe, would also help.
How to reproduce it (as minimally and precisely as possible)
Not reproduced on demand. In 10 days it happened three times, and each time it hit the process our updater (Velopack) had just relaunched after applying an update. The crash came 7 to 37 seconds after that process started. Launching the app by hand on the same PC has not crashed, and not every post-update relaunch crashes (two others in the same period did not).
| Crash | Process started | Crashed |
|---|---|---|
| 2026-11-16 | 15:54:29 | 15:55:06 |
| 2026-11-24 | 18:49:33 | 18:49:40 |
| 2026-11-25 | 09:24:20 | 09:24:34 |
The relaunched process is started by Update.exe (CreateProcessW with CREATE_UNICODE_ENVIRONMENT) right after the previous app process exits.
Workaround
Disable Vulkan for the affected machine (.UseWin32(b => b.DisableRenderingBackends(Win32RenderingBackend.Vulkan))). Because the crash is native, the app can only detect it from outside: we now run the post-update relaunch as a small parent that restarts the app if it exits with an error within a minute, and that moves the machine to OpenGL after a second crash.
Works on UWP/WinUI
Not applicable (WinUI uses DirectX).
Environment
- Uno.Sdk 7.0.5 (Uno.UI 7.0.32)
- .NET 11 (CoreCLR 11.0.26.53018),
net11.0-desktop, Win32 host, Skia renderer - Windows 11 (build 26300)
- Desktop with two Intel GPUs: Intel Arc A770 (driver 32.0.101.9175) and the CPU's Intel UHD Graphics 770 (driver 32.0.101.7092). The crashing process had both Intel Vulkan drivers loaded (
igvk64.dllfrom both driver packages), plus D3D12 from the UHD 770's driver. - Affected platform: Skia Desktop (Win32) only
Anything else we need to know?
Related to #26704: that issue covers a Vulkan device lost mid-session, where the process survives but the window never repaints. This one is a hard crash while the Vulkan context is being created. Both point at the same gap: once a Vulkan backend is chosen, nothing recovers or falls back if it later fails. Since the crash is in GRContext.CreateVulkan, part of it may belong in SkiaSharp. We filed it here because Uno owns the context creation and the backend choice.
A crash dump was not retained (WER kept only the report). We can enable WER LocalDumps and attach a full dump the next time it happens if that would help.
Activity