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

Hello Minimal Terminal crashes with Wayland error #339

Open
bjnord opened this issue Mar 11, 2023 · 1 comment
Open

Hello Minimal Terminal crashes with Wayland error #339

bjnord opened this issue Mar 11, 2023 · 1 comment

Comments

@bjnord
Copy link

bjnord commented Mar 11, 2023

I'm trying to get the Hello Minimal Terminal example from the manual to work. It crashes as follows:

     Running `target/debug/my_project`
thread 'main' panicked at 'Failed to initialize any backend! Wayland status: NoCompositorListening X11 status: XOpenDisplayFailed', /home/bjn/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.27.5/src/platform_impl/linux/mod.rs:719:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

I only want to use terminal (like simple80x50), not anything graphical. Is there a way to get it to stop trying to use Wayland/X11? I tried the "Feature Flags" suggestions in the README (disable default features) to no avail.

Details about my system, which is an EC2 server accessed remotely with no graphical packages installed:

$ head -4 /etc/os-release 
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"

$ rustc --version
rustc 1.67.1 (d5a82bbd2 2023-02-07)

$ cat Cargo.toml 
[package]
name = "my_project"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
bracket-lib = "0.8"
@rdrobinson3
Copy link

I ran into a similar line of Wayland related errors. I am running in a different environment (WSL2 under Windows). After some digging I installed sudo apt install libxkbcommon-dev libegl1 libwayland-dev and that resolved it.

My issues were not exactly the same but dropping this here as your post lead me down the path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants