Open usagi-flow opened 11 months ago
I have no idea why your DE is trying to launch onagre with X11 backend. There are a few things you could do to solve this.
WGPU_BACKEND=vulkan onagre
, I am not sure but that might be relatedcargo install --git https://github.com/oknozor/onagre
, you would need rust installed to do that. xorg-xwayland
Let me know if any of the above works for you.
I am waiting for pop-os maintainers to publish a library so I can finally make a stable release of onagre, when that's done there will hopefully be some official package for common linux distros.
Thank you for the suggestions @oknozor . No success so far, unfortunately:
WGPU_BACKEND=vulkan onagre
didn't work, it gives the same result.Hey @usagi-flow I recently made some updates and I'd like to confirm this is fixed before releasing v1. Would you mind trying to reinstall (cargo install --git https://github.com/onagre-launcher/onagre
) and make a report here ?
Hi, I am currently having this issue with onagre on Hyprland, here is my trace. I use NixOS, and can reproduce this both by installing from nixpkgs and with cargo install --git https://github.com/onagre-launcher/onagre
.
$ RUST_BACKTRACE=1 onagre
2024-02-01T22:31:22.743488Z INFO onagre: Starting onagre
thread 'main' panicked at /home/jens/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.28.7/src/platform_impl/linux/mod.rs:757:9:
Failed to initialize any backend! Wayland status: NoWaylandLib X11 status: LibraryOpenError(OpenError { kind: Library, detail: "opening library failed (libX11.so.6: cannot open shared object file: No such file or directory); opening library failed (libX11.so: cannot open shared object file: No such file or directory)" })
stack backtrace:
0: rust_begin_unwind
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:645:5
1: core::panicking::panic_fmt
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panicking.rs:72:14
2: iced_winit::application::run
3: onagre::app::run
4: onagre::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
I also don't understand why it is unable to use Wayland
Can you paste the output of RUST_BACKTRACE=1 WINIT_UNIX_BACKEND=wayland WGPU_BACKEND=vulkan onagre
here ?
Here it is:
2024-02-05T18:28:23.066379Z INFO onagre: Starting onagre
thread 'main' panicked at /home/jens/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.28.7/src/platform_impl/linux/mod.rs:730:26:
Failed to initialize Wayland backend: NoWaylandLib
stack backtrace:
0: rust_begin_unwind
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:645:5
1: core::panicking::panic_fmt
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panicking.rs:72:14
2: core::result::unwrap_failed
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/result.rs:1653:5
3: iced_winit::application::run
4: onagre::app::run
5: onagre::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace
@JnsJensen are you sure vulkan is correctly installed on your system ? I don't know the specifics for NixOS.
I am quite certain, however, I am also new to Nix. I have the following in my configuration.nix
, vulkan-tools
, should be the package I would need. However, I get the same error with and without that package.
environment.systemPackages = with pkgs; [
vulkan-tools
...
libqalculate
hyprpaper
hyprland
];
Is there a way for me to 'check' that it is correctly installed? I don't have any other issues or programs exited with anything similar.
Seems related to https://github.com/rust-windowing/winit/issues/3244.
Okay so, I had incorrectly assumed that nixos-rebuild switch
would rebuild with the newest versions of the packages, but I understand now that I have to nix-channel --upgrade
first to follow the newest updated channel. So after I did that onagre runs fine when started from the command line.
Now I am however, unable to start it with my keybinding from Hyprland, which I have set in hyprland.conf
$mainMod = SUPER
$menu = /home/<user>/.cargo/bin/onagre
bind = $mainMod, R, exec, $menu
This led me to attempt installing onagre through nixpkgs, which with RUST_BACKTRACE=1 WINIT_UNIX_BACKEND=wayland WGPU_BACKEND=vulkan onagre
results in
Fontconfig warning: line 5: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-sub-pixel-none.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-yes-antialias.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/48-spacing.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 4: unknown element "description"
thread 'main' panicked at /build/cargo-vendor-dir/winit-0.26.1/src/platform_impl/linux/mod.rs:591:26:
Failed to initialize Wayland backend: NoWaylandLib
stack backtrace:
0: rust_begin_unwind
1: core::panicking::panic_fmt
2: core::result::unwrap_failed
3: onagre::app::run
4: onagre::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
And after removing the package again, the cargo installation goes back to same not-working state as before. I am probably doing something wrong with nix, but I am perplexed
You should not try to install Onagre from official repositories, it's not released yet and the current upstream is way ahead of the packaged version.
That said it's pretty clear that you are missing some wayland dependencies. This is a bit weird since you are running on Hyprland, which would not work without wayland.
You probably want to ask for help on the iced discord server.
Describe the bug The application doesn't start:
Config n.a.
To Reproduce
Expected behavior Onagre starts.
Window manager (please complete the following information):