slint icon indicating copy to clipboard operation
slint copied to clipboard

slint skia renderer error and crash on win11

Open sedan-cell opened this issue 1 year ago • 8 comments
trafficstars

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

sedan-cell avatar May 18 '24 21:05 sedan-cell

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)

sedan-cell avatar May 18 '24 22:05 sedan-cell

Duplicate of #3747

tronical avatar May 19 '24 06:05 tronical

Is it possible that you’re launching the window full screen?

tronical avatar May 19 '24 06:05 tronical

(I wonder if this is related perhaps to window decorations)

tronical avatar May 19 '24 06:05 tronical

@tronical not launching in full screen

sedan-cell avatar May 19 '24 12:05 sedan-cell

Oh that's new. Do you have a slint file that reproduces this ?

tronical avatar May 19 '24 12:05 tronical

@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

sedan-cell avatar May 19 '24 12:05 sedan-cell

FYI, I was able to reproduce this on a source from #5338.

Justyna-JustCode avatar Jun 04 '24 12:06 Justyna-JustCode