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

AdapterNotFound on Pixel::new #86

Closed
harrysarson opened this issue Jun 7, 2020 · 5 comments
Closed

AdapterNotFound on Pixel::new #86

harrysarson opened this issue Jun 7, 2020 · 5 comments
Labels
driver bug Update your drivers to fix this issue upstream bug Bug appears to originate in an upstream dependency

Comments

@harrysarson
Copy link

Hi, I am trying to run the minimal-winit example (on git master) and I get

Error: AdapterNotFound

I looked at #83 and #29 and tried WINIT_UNIX_BACKEND=x11 cargo run but got the same error. Installing xorg-server and libx11 but neither helped.

$ echo $XDG_SESSION_DESKTOP
gnome
 
$ echo $XDG_SESSION_TYPE        
wayland
 
$ uname -a 
Linux archlinux 5.4.43-1-lts #1 SMP Wed, 27 May 2020 23:42:34 +0000 x86_64 GNU/Linux
@parasyte
Copy link
Owner

parasyte commented Jun 7, 2020

Your host needs to support Vulkan, and you may be missing drivers, or running on a very old driver. Support for OpenGL is currently a work in progress.

@parasyte parasyte added driver bug Update your drivers to fix this issue upstream bug Bug appears to originate in an upstream dependency labels Jun 7, 2020
@harrysarson
Copy link
Author

Hi thanks the makes sense :). I will look into my drivers re Vulcan. Is there a way of getting more debugging info out of pixel or winit?

@parasyte
Copy link
Owner

parasyte commented Jun 8, 2020

Yes! The examples use a crate called env_logger which allows you to control debug logs through the RUST_LOG environment variable. You can read more about it in the linked docs.

The examples also have a feature set on the log crate that limits the log level in release builds. So for debug logs, you should build the debug profile. Here’s a simple example:

$ RUST_LOG=trace cargo run --package=invaders

@harrysarson
Copy link
Author

Thanks, I will give that a try next time I have some time. I will close for now and see if I can get it work.

Thanks for you help

@harrysarson
Copy link
Author

harrysarson commented Jun 8, 2020

In case anyone else ends up here: As per the arch vulkan docs I installed vulkan-intel and the example now runs. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
driver bug Update your drivers to fix this issue upstream bug Bug appears to originate in an upstream dependency
Projects
None yet
Development

No branches or pull requests

2 participants