-
Notifications
You must be signed in to change notification settings - Fork 638
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
Application aborts when running on WSL2 #4089
Comments
What where you doing when this panic triggered? Is that right after the start or were you actually copying something from the window or pasting something into the window when this triggered? |
@hunger Nothing. |
So no user interaction (besides maybe the mouse moving). Strange. My first suspicion without having looked into this much would of course be a problem in the smithay-clipboard crate, but of course we might just be using it wrong:-) You could try using the Qt backend for slint (installing Qt6 into the WSL changeroot before building slint should suffice). That has very different code paths from the winit-based code we use elsewhere. That might at least get you around this problem so that you are not blocked on it. |
Okay, I will try. |
@hunger It is working with dependence configuration |
As @hunger said, the panic is inside the smithay-clipboard crate which is used indirectly by our winit backend via the copypasta crate to get the clipboard on Wayland. So IMHO this is a bug in smithay-clipboard and it should be reported there. |
The error message suggests that the peer that provides clipboard-data is not alive anymore (so the FD transfer fails). That's a little weird though. @araraloren did you do anything with your clipboard before launching? What happens if you select text in say a web browser or terminal, copy it into the clipboard, and then start the app? |
@tronical I have something similar:
Even having stuff on the clipboard the error occurs. |
Yes, it's working if I clean the clipboard from clipboard settings of Windows. |
interesting, for me this does not work. Could you please share the Windows and WSL 2 version? |
@microhobby
|
Upstream bug: Smithay/smithay-clipboard#52 |
Closing as this is a bug upstream and we can't do anything in Slint |
So this turned out not to be a bug in smithay-clipboard. It just happened to panic, but the root symptom is that the Wayland connection breaks off. Afaics Weston crashes. Have yet to find out why. |
hey @tronical, so this Smithay/smithay-clipboard#54 will not fix from the Slint side? |
That's correct. It allows for better error propagation, but what's crashing is Weston. I haven't figured out yet why. Perhaps I can file a ticket with wslg - Weston should not crash. The clipboard is a red herring. As to workaround: I don't know any yet :(. |
I think that I figure out a workaround: WAYLAND_DISPLAY= slint_app Unsetting the |
Platform:
WSL2
Fedora release 39 (Thirty Nine)
Slint: 1.3.2
Running with
cargo run
, with default feature.The text was updated successfully, but these errors were encountered: