-
-
Notifications
You must be signed in to change notification settings - Fork 305
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
panic when calling Window::current_monitor() on wayland #618
Comments
Downgraded to
|
No luck with |
I have tested it with i3 X11 now, and this example works fine there. |
Thanks for reporting and diving into this @eirikblekesaune! I'm also using wayland (nixos + gnome) but am unable to reproduce either error in
I did notice that the wayland crate versions I'm pulling in seem to be a lot more recent:
Just to be sure, you are building the master branch of nannou yes? If you've had If you can also produce this bug using your code snippet above with the latest master branch of |
Thank you @mitchmindtree ! Maye you could test on your system that this line returns a surface for you? |
Hi @mitchmindtree , I wonder if you would mind sharing the nix environment you're using. I'm also running nixos and gnome, and I'm having this same problem. |
@cwyc here is my nix configuration. The |
@mitchmindtree Thanks. Turns out what your setup had that was missing in mine was the line adding vulkan-loader and the xorg libraries to $LD_LIBRARY_PATH. Maybe that's relevant to this issue. |
If you are getting this error on nixos then this issue did the trick for me: bevyengine/bevy#136 |
for anyone else having this error on nixos I'll post
|
OS: Arch Linux
WM: Sway (Wayland)
wayland 1.18.0-2
wayland-protocols 1.20-1
mesa 20.1.1-1
vulkan-intel 20.1.1-1
vulkan-icd-loader 1.2.141-1
The example
window_coordinates
has a call to window.current_monitor() that causes panic.It may be related to this winit issue: rust-windowing/winit#1257
Here is a short reproducer using winit directly:
The text was updated successfully, but these errors were encountered: