winit icon indicating copy to clipboard operation
winit copied to clipboard

when going through the learn-wgpu tutorial, error occured (windows 11, wsl2, ubuntu)

Open LollipopFt opened this issue 2 years ago • 7 comments

error: [2022-07-17T03:51:11Z ERROR smithay_client_toolkit::window::fallback_frame] Failed to set cursor

everything worked fine, it's just that this kept appearing on the terminal every time my mouse moved.

LollipopFt avatar Jul 17 '22 04:07 LollipopFt

Seems like a wsl issue.

kchibisov avatar Jul 17 '22 10:07 kchibisov

i see, thanks!

LollipopFt avatar Jul 17 '22 10:07 LollipopFt

I mean we'll keep it open for a while, until the answer will be clear. But maybe wsl isn't supporting all the linux features we're aiming for, like memfd, since it's something common on linux these days.

kchibisov avatar Jul 17 '22 12:07 kchibisov

i think it could be winit because vkcube and gedit works, even lapce editor does not have this problem.

LollipopFt avatar Jul 19 '22 15:07 LollipopFt

Wait, Am I understand correct that it runs, but just prints error while you move your mouse?

So it doesn't prevent from setting the cursor, etc.

kchibisov avatar Jul 20 '22 09:07 kchibisov

@kchibisov yeah

everything works fine

it runs completely like it should, mouse actions (including mouse movement) are working just fine, just that in the terminal the error messages are appearing.

LollipopFt avatar Jul 20 '22 09:07 LollipopFt

Well, the error is that it fails to set buffer for the cursor, most other applications probably ignored it. I think you may filter old it from the logs, if you use logger. Not sure if action should be performed here, given that the failure is fine. The problem is that it fails to set cursor icon, I'd assume you're using some cursor from windows instead of default linux cursor icons(like adwaita).

kchibisov avatar Jul 20 '22 09:07 kchibisov