slint
slint copied to clipboard
slint skia renderer error and crash on win11
an error about failing to init the skia renderer shows in a console window opened outside my application window. app was build with cargo release mode. trying to build and run in debug mode results in an instant crash with no log info.
In Cargo.toml:
slint = { version = "1.6.0", default-features = false, features = ["accessibility", "backend-winit", "compat-1-2", "renderer-winit-skia", "std"] }
Error:
Failed to initialize Skia GPU renderer: unable to create D3D swap chain failed. 80070005 . Falling back to software rendering
in debug mode if i cargo run i see:
> cargo run
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.37s
Running `target\debug\myapp.exe`
thread 'main' panicked at C:\Users\MYUSER\.cargo\registry\src\index.crates.io-6f17d22bba15001f\i-slint-renderer-skia-1.6.0\d3d_surface.rs:171:13:
assertion `left == right` failed
left: 512
right: 0
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: process didn't exit successfully: `target\debug\myapp.exe` (exit code: 101)
Duplicate of #3747
Is it possible that you’re launching the window full screen?
(I wonder if this is related perhaps to window decorations)
@tronical not launching in full screen
Oh that's new. Do you have a slint file that reproduces this ?
@tronical i dont have one at the moment, cant share existing source, and will try to make one later to post as an example. there is no issue with the software renderer
FYI, I was able to reproduce this on a source from #5338.