onagre-launcher / onagre

A general purpose application launcher for X and wayland inspired by rofi/wofi and alfred
MIT License
511 stars 27 forks source link

onagre 1.1.0: crashes on start with "called `Option::unwrap()` on a `None` value" #83

Closed eljamm closed 1 month ago

eljamm commented 2 months ago

Describe the bug Running onagre 1.1.0 crashes on start with the following output:

2024-04-19T17:09:50.193906Z  INFO onagre: Starting onagre
2024-04-19T17:09:50.193990Z ERROR onagre::app::style: Failed to parse theme "/home/user/.config/onagre/theme.scss":
 Failed to open config file
2024-04-19T17:09:50.194000Z  WARN onagre::app::style: Failing back to default theme
thread 'main' panicked at /home/kuroko/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-core-0.19.3/src/inst
ance.rs:521:39:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Here is the full log: RUST_BACKTRACE=full ./target/debug/onagre &> onagre.log -> onagre.log

Config No config/theme. Putting a theme removes the Failed to parse theme error, but the program still crashes.

To Reproduce

  1. cargo build --release --locked
  2. ./target/release/onagre

Expected behavior The program opens.

System Information

Additional context Tried running 1.0.0 and that version opens normally.

Rairosu commented 1 month ago

wgpu requires you to put vulkan-loader from nixpkgs in your LD_LIBRARY_PATH

eljamm commented 1 month ago

Thanks a lot! This solved this issue for me, but apparently there were more bugs after that. Thankfully, onagre was recently updated to 1.1.0 in nixpkgs, which works great.