slint-ui / slint

Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.
https://slint.dev
Other
17.33k stars 586 forks source link

open slint show preview in vs code from VM debian12 got Slint Language Server crashed #6555

Open banrieen opened 1 week ago

banrieen commented 1 week ago

Invalid MIT-MAGIC-COOKIE-1 key VMware: No 3D enabled (0, Success). VMware: No 3D enabled (0, Success). Using Skia OpenGL renderer Rendering at 1280x800 thread 'main' panicked at tools/lsp/preview/native.rs:122:40: called Result::unwrap() on an Err value: OtherError("Error presenting framebuffer on screen: Permission denied (os error 13)") note: run with RUST_BACKTRACE=1 environment variable to display a backtrace [Info - 10:39:54] Connection to server got closed. Server will restart. true The Slint Language Server crashed. This is a bug. Please open an issue on https://github.com/slint-ui/slint/issues

bug env vs code: 1.92.2 , OS: win 11 (windows NT x64 10.0.22621) VM : virtualbox 7.0.18 VM OS: debian 12 code lang: rust(cargo) 1.81.0

Reproduce

  1. open vs code , connect the VM debian12
  2. open the VM code project(folder) UI
  3. open the *.slint file
  4. Ctrl+shift+P , select the Slint show preview
ogoffart commented 1 week ago

Thanks for reporting the bug.

The panic has been fixed in https://github.com/slint-ui/slint/pull/6340 and replaced by an error.

But the error is still the same though.

Error presenting framebuffer on screen: Permission denied (os error 13)

I believe this comes from the LinuxKMS backend But of course there should probably be an error before as to why the winit backend couldn't be initialized. Is there any reason, it ccouldn't connect to the X11 or Wayland server?