danyspin97 / wpaperd

Modern wallpaper daemon for Wayland
GNU General Public License v3.0
278 stars 20 forks source link

Crash on Void Linux under Sway (BadConfig error) #64

Open ktnlikeasmallcat opened 1 month ago

ktnlikeasmallcat commented 1 month ago

I installed with git clone and cargo build --release, and when wpaperd is run from either .local/bin or the target/release directory I get:

The application panicked (crashed).
Message:  unable to create an EGL context: BadConfig
Location: daemon/src/render/egl_context.rs:43

  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   1: color_eyre::config::PanicHook::into_panic_hook::{{closure}}::hef7b1e00338335bd
      at <unknown source file>:<unknown line>
   2: std::panicking::rust_panic_with_hook::h0ad14d90dcf5224f
      at <unknown source file>:<unknown line>
   3: std::panicking::begin_panic_handler::{{closure}}::h4a1838a06f542647
      at <unknown source file>:<unknown line>
   4: std::sys_common::backtrace::__rust_end_short_backtrace::h77cc4dc3567ca904
      at <unknown source file>:<unknown line>
   5: rust_begin_unwind<unknown>
      at <unknown source file>:<unknown line>
   6: core::panicking::panic_fmt::h940d4fd01a4b4fd1
      at <unknown source file>:<unknown line>
   7: core::result::unwrap_failed::h5119205a73b72b0d
      at <unknown source file>:<unknown line>
   8: <wpaperd::wpaperd::Wpaperd as smithay_client_toolkit::output::OutputHandler>::new_output::h4e978337d054f19f
      at <unknown source file>:<unknown line>
   9: <smithay_client_toolkit::output::OutputState as wayland_client::event_queue::Dispatch<wayland_client::protocol::wl_output::WlOutput,smithay_client_toolkit::output::OutputData,D>>::event::he6b754e9c9fa20c8
      at <unknown source file>:<unknown line>
  10: wayland_client::event_queue::queue_callback::h68d54977e1d32112
      at <unknown source file>:<unknown line>
  11: wayland_client::event_queue::EventQueue<State>::dispatching_impl::h8e5250a53f0d4fb4
      at <unknown source file>:<unknown line>
  12: <calloop_wayland_source::WaylandSource<D> as calloop::sources::EventSource>::process_events::hc7c8b5716bd79369
      at <unknown source file>:<unknown line>
  13: <core::cell::RefCell<calloop::sources::DispatcherInner<S,F>> as calloop::sources::EventDispatcher<Data>>::process_events::h88e64e62ffb89645
      at <unknown source file>:<unknown line>
  14: calloop::loop_logic::EventLoop<Data>::dispatch::h7204fdff99e6906e
      at <unknown source file>:<unknown line>
  15: wpaperd::main::hea3ce69446f9875a
      at <unknown source file>:<unknown line>
  16: std::sys_common::backtrace::__rust_begin_short_backtrace::h5f24b47d7a908837
      at <unknown source file>:<unknown line>
  17: std::rt::lang_start::{{closure}}::hb0c9705b915feb3a
      at <unknown source file>:<unknown line>
  18: std::rt::lang_start_internal::h103c42a9c4e95084
      at <unknown source file>:<unknown line>
  19: main<unknown>
      at <unknown source file>:<unknown line>
  20: __libc_start_call_main<unknown>
      at ./csu/../sysdeps/nptl/libc_start_call_main.h:58
  21: __libc_start_main_impl<unknown>
      at ./csu/../csu/libc-start.c:360
  22: _start<unknown>
      at <unknown source file>:<unknown line>

Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
Run with RUST_BACKTRACE=full to include source snippets.

My config.toml file is:

[default]
duration = "30m"
mode = "fit"
transition_time = 200

[any]
path = "~/.bg/"

also I had to move the install.yml and LICENSE into /target/release to get rinstall install -c install.yml --yes to take effect (no idea if this is the regular method or if this indicates something about my problem. The same error occurs as noted earlier without doing this.) No nvidia gpu. I've also tried using cargo install and cargo-binstall and got similar results. What might be my next steps? Thanks for your time.

danyspin97 commented 1 month ago

Hello @ktnlikeasmallcat and thank you for opening this issue.

The issue is not related to the installation process with rinstall or cargo install but it's related to openGL configuration. Can you please run the following command:

$ glxinfo | grep "OpenGL ES profile version"
ktnlikeasmallcat commented 1 month ago

OpenGL version string: 2.1 Mesa 24.0.7

danyspin97 commented 1 month ago

This is the OpenGL version, can you please check for the OpenGL ES? Or there is no string regarding that?

ktnlikeasmallcat commented 1 month ago

OpenGL ES 2.0 Mesa 24.0.7

Oops posting from my phone rn. Thanks.

danyspin97 commented 1 month ago

That's even an older version, I'll try to see if it works with OpenGL ES 2.0.