danyspin97 / wpaperd

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

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

Open ktnlikeasmallcat opened 6 months ago

ktnlikeasmallcat commented 6 months 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 6 months 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 6 months ago

OpenGL version string: 2.1 Mesa 24.0.7

danyspin97 commented 6 months ago

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

ktnlikeasmallcat commented 6 months ago

OpenGL ES 2.0 Mesa 24.0.7

Oops posting from my phone rn. Thanks.

danyspin97 commented 6 months ago

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

cplir-c commented 4 months ago

Crash on Arch Linux under Sway

RUST_BACKTRACE=full wpaperd --verbose
DEBUG [smithay_client_toolkit::registry] Bound new global [48] wl_output v4
DEBUG [smithay_client_toolkit::registry] Bound new global [49] wl_output v4
DEBUG [smithay_client_toolkit::registry] Bound new global [8] zxdg_output_manager_v1 v3
DEBUG [smithay_client_toolkit::shm] supported wl_shm format Argb8888
DEBUG [smithay_client_toolkit::shm] supported wl_shm format Xrgb8888
DEBUG [smithay_client_toolkit::shm] supported wl_shm format Xbgr8888
DEBUG [smithay_client_toolkit::shm] supported wl_shm format Abgr8888
DEBUG [smithay_client_toolkit::shm] supported wl_shm format Bgr888
DEBUG [smithay_client_toolkit::shm] supported wl_shm format Rgbx4444
DEBUG [smithay_client_toolkit::shm] supported wl_shm format Rgba4444
DEBUG [smithay_client_toolkit::shm] supported wl_shm format Rgbx5551
DEBUG [smithay_client_toolkit::shm] supported wl_shm format Rgba5551
DEBUG [smithay_client_toolkit::shm] supported wl_shm format Rgb565
DEBUG [smithay_client_toolkit::shm] supported wl_shm format Xbgr2101010
DEBUG [smithay_client_toolkit::shm] supported wl_shm format Abgr2101010
DEBUG [smithay_client_toolkit::shm] supported wl_shm format Xbgr16161616f
DEBUG [smithay_client_toolkit::shm] supported wl_shm format Abgr16161616f
The application panicked (crashed).
Message:  unable to create an EGL context: BadMatch
Location: ~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wpaperd-1.0.1/src/render/egl_context.rs:43

  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
                                ⋮ 7 frames hidden ⋮                               
   8: wpaperd::surface::Surface::new::h5e60b5f0551ca166
      at <unknown source file>:<unknown line>
   9: <wpaperd::wpaperd::Wpaperd as smithay_client_toolkit::output::OutputHandler>::new_output::h94a84e9041527a7d
      at <unknown source file>:<unknown line>
  10: wayland_client::event_queue::queue_callback::h937fcc5f9b72ec6f
      at <unknown source file>:<unknown line>
  11: <core::cell::RefCell<calloop::sources::DispatcherInner<S,F>> as calloop::sources::EventDispatcher<Data>>::process_events::h964592079ea81eb5
      at <unknown source file>:<unknown line>
  12: calloop::loop_logic::EventLoop<Data>::dispatch::ha1db9cb1414eac20
      at <unknown source file>:<unknown line>
  13: wpaperd::main::hac4b6c4e41776368
      at <unknown source file>:<unknown line>
  14: std::sys::backtrace::__rust_begin_short_backtrace::h5a1ffd2b45f800c6
      at <unknown source file>:<unknown line>
  15: main<unknown>
      at <unknown source file>:<unknown line>
  16: __libc_start_main<unknown>
      at <unknown source file>:<unknown line>
  17: _start<unknown>
      at <unknown source file>:<unknown line>
glxinfo | grep "OpenGL ES profile version"
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 24.1.3-arch1.1
danyspin97 commented 4 months ago

Can you please try now? Thanks!

cplir-c commented 4 months ago

Trying cargo install --git https://github.com/danyspin97/wpaperd wpaperd wpaperctl to build from main branch.

$ wpaperd
ERROR [wpaperd] 
   0: TOML parse error at line 1, column 1
   0:   |
   0: 1 | 
   0:   | ^
   0: unknown field `initial_transition`, expected one of `path`, `duration`, `apply-shadow`, `sorting`, `mode`, `queue-size`, `transition-time`, `initial-transition`, `transition`, `offset`
   0: 

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
WARN [wpaperd::wpaperd] Configuration error on display VGA-1: 
   0: attribute path is not set

Suggestion: add attribute path in the display section of the configuration:
path = "</path/to/image>"

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
The application panicked (crashed).
Message:  vertex shader creation succeed: 
   0: 0:2(10): error: GLSL ES 3.20 is not supported. Supported versions are: 1.00 ES, and 3.00 ES

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
Location: daemon/src/render/renderer.rs:431

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

~/wpaperd/config.toml:

[default]
duration = "10m"
sorting = "random"
mode = "fit-border-color"
path = "~/Pictures/backgrounds"
initial_transition = false
danyspin97 commented 3 months ago

Hello @cplir-c! The last error you posted is regarding the option initial_transition, which have been renamed to initial-transition. Can you please update the configuration and try again? Thank you!

cplir-c commented 3 months ago
$ RUST_BACKTRACE=full wpaperd --verbose
DEBUG [smithay_client_toolkit::registry] Bound new global [48] wl_output v4
DEBUG [smithay_client_toolkit::registry] Bound new global [49] wl_output v4
DEBUG [smithay_client_toolkit::registry] Bound new global [8] zxdg_output_manager_v1 v3
DEBUG [smithay_client_toolkit::shm] supported wl_shm format Argb8888
DEBUG [smithay_client_toolkit::shm] supported wl_shm format Xrgb8888
DEBUG [smithay_client_toolkit::shm] supported wl_shm format Xbgr8888
DEBUG [smithay_client_toolkit::shm] supported wl_shm format Abgr8888
DEBUG [smithay_client_toolkit::shm] supported wl_shm format Bgr888
DEBUG [smithay_client_toolkit::shm] supported wl_shm format Rgbx4444
DEBUG [smithay_client_toolkit::shm] supported wl_shm format Rgba4444
DEBUG [smithay_client_toolkit::shm] supported wl_shm format Rgbx5551
DEBUG [smithay_client_toolkit::shm] supported wl_shm format Rgba5551
DEBUG [smithay_client_toolkit::shm] supported wl_shm format Rgb565
DEBUG [smithay_client_toolkit::shm] supported wl_shm format Xbgr2101010
DEBUG [smithay_client_toolkit::shm] supported wl_shm format Abgr2101010
DEBUG [smithay_client_toolkit::shm] supported wl_shm format Xbgr16161616f
DEBUG [smithay_client_toolkit::shm] supported wl_shm format Abgr16161616f
The application panicked (crashed).
Message:  unable to create an EGL context: BadMatch
Location: daemon/src/render/egl_context.rs:43

  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   1: __libc_start_main<unknown>
      at <unknown source file>:<unknown line>

Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.