YaLTeR / niri

A scrollable-tiling Wayland compositor.
https://matrix.to/#/#niri:matrix.org
GNU General Public License v3.0
4.12k stars 123 forks source link

Alpine Linux fails to initialize TTY backend. #766

Closed Blendi-Goose closed 2 weeks ago

Blendi-Goose commented 3 weeks ago

On Alpine Linux, niri fails to initialize the TTY backend, giving a "Function not implemented (os error 38)" error. Here's the full output from niri:

2024-10-29T10:33:50.345589Z  INFO niri: starting version 0.1.9 (unknown commit)
2024-10-29T10:33:50.361589Z DEBUG niri_config: loaded config from "/home/blendi/.config/niri/config.kdl"
thread 'main' panicked at src/main.rs:183:6:
called `Result::unwrap()` on an `Err` value: error initializing the TTY backend

Caused by:
    0: Error creating a session. This might mean that you're trying to run niri on a TTY that is already busy, for example if you're running this inside tmux that had been originally started on a different TTY
    1: Failed to open session: Function not implemented (os error 38)
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

System Information

YaLTeR commented 3 weeks ago

Seems your TTY is busy for some reason. Do you use any display manager, or how do you run niri?

Blendi-Goose commented 3 weeks ago

Do you use any display manager, or how do you run niri?

I tried using SDDM to run niri, but that just gives a black screen and kicks me back to SDDM. This output is from running it in a seperate TTY, which had nothing else going on (as far as I know).

YaLTeR commented 3 weeks ago

Well, I'm not sure unfortunately

Blendi-Goose commented 3 weeks ago

I've done a debug build from source, so I could enable RUST_TRACEBACK=full, in case it happens to be useful.

Here's the output: new-niri-output.txt

YaLTeR commented 3 weeks ago

Unfortunately it is not useful. It says everything in the error right there (I typed that error message). I don't know what causes it in your case. Pretty sure people got niri working on Alpine in the past

Blendi-Goose commented 3 weeks ago

Update: It can actually run through SDDM if I modify the niri.desktop file in /usr/share/wayland-sessions. Apparently, the default niri.desktop just runs niri-session (which won't work on OpenRC, and isn't even installed by the alpine package)

YaLTeR commented 2 weeks ago

I see. That is an Alpine packaging issue then.