Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slint skia renderer error and crash on win11 #5270

Open
sedan-cell opened this issue May 18, 2024 · 7 comments
Open

slint skia renderer error and crash on win11 #5270

sedan-cell opened this issue May 18, 2024 · 7 comments

Comments

@sedan-cell
Copy link

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
Copy link
Author

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)

@tronical
Copy link
Member

Duplicate of #3747

@tronical tronical marked this as a duplicate of #3747 May 19, 2024
@tronical
Copy link
Member

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

@tronical
Copy link
Member

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

@sedan-cell
Copy link
Author

@tronical not launching in full screen

@tronical
Copy link
Member

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

@sedan-cell
Copy link
Author

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants