Repository navigation
Description
Current behavior
On the Win32 Skia host with the default backend chain (Vulkan → OpenGL → software), a Vulkan device that is lost after startup leaves the app permanently unrendered. The render thread logs the error and every later frame fails, so the window never repaints: progress rings stop mid-turn and content never appears. The window still takes input and Windows never marks it "Not responding" (about 1% CPU), so to the user it looks like a frozen app. The only way out is to relaunch with a different backend.
Render thread log at the moment of failure:
[ERR] Uno.UI.Runtime.Win32.Win32WindowWrapper+RenderThread: Render thread error:
Uno.UI.Runtime.Vulkan.VulkanException: vkQueueSubmit returned VK_ERROR_DEVICE_LOST
at VulkanCommandBuffer.Submit
at VulkanImageBase.TransitionLayout
at VulkanContext.CreateRenderImage
at CompositionTarget.Draw
at Win32WindowWrapper.DrawFrame
at RenderThread.RenderLoop
[ERR] Uno.UI.Runtime.Win32.Win32WindowWrapper+RenderThread: Render thread error:
System.NotSupportedException: Skia could not wrap the host's Vulkan image (Bgra8888, format 44).
at SkiaDrawingFactory.PresentForVulkan
at CompositionTarget.BeginPresent
These errors then repeat on what looks like every frame: the app's log file grew to about 6.4 million characters in one day.
The automatic fallback only applies when a backend fails to initialize. Nothing handles a device that is lost later.
Expected behavior
When VK_ERROR_DEVICE_LOST comes back from a submit or present, the Win32 host should recover instead of leaving the window dead. Either:
- rebuild the Vulkan device, swapchain and Skia
GRContextand carry on (the recovery the Vulkan spec expects for a lost device), or - if that fails (or fails again soon after), move the window to the next backend in the chain (OpenGL, then software).
At the very least, the app should be able to find out, for example through an event or a callback on the host builder, so it can tell the user and choose another backend on the next launch. Repeated logging of the same error every frame should also be throttled.
How to reproduce it (as minimally and precisely as possible)
Seen in the field and not reproduced on demand. Any app on the default Win32 backend chain, running for a while on the affected hardware. In our case it struck about 48 minutes into a session. Forcing a device loss (for example a TDR, or dxcap -forcetdr, or disabling and re-enabling the display adapter in Device Manager) should exercise the same path.
Workaround
Turn Vulkan off for that machine and relaunch:
.UseWin32(b => b.DisableRenderingBackends(Win32RenderingBackend.Vulkan))We expose this as an environment variable. Once set to OpenGL, the same PC has had no more freezes.
Works on UWP/WinUI
Not applicable (WinUI uses DirectX).
Environment
- Uno.Sdk 7.0.5 (Uno.UI 7.0.32)
- .NET 11,
net11.0-desktop, Win32 host, Skia renderer - Windows 11
- Dell laptop, Intel Core Ultra with integrated Intel(R) Graphics (and an NPU), Intel driver 32.0.101.8991 (dated 2026-08-24)
- Affected platform: Skia Desktop (Win32) only
Anything else we need to know?
Related: #26086 (WebGPU: a lost device aborts the process on native hosts) is the same class of problem on the WebGPU backend, and #23940 is the Android case where a failed Vulkan initialization shows a black screen instead of falling back.
Since the default became Vulkan-first, any user on a GPU or driver that drops the device once can end up with an app that is permanently frozen and cannot recover without changing the configuration.
Activity