Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken on Hyprland again #47

Open
Liassica opened this issue Aug 2, 2024 · 2 comments
Open

Broken on Hyprland again #47

Liassica opened this issue Aug 2, 2024 · 2 comments

Comments

@Liassica
Copy link
Contributor

Liassica commented Aug 2, 2024

RUST_BACKTRACE=full watershot:

thread 'main' panicked at src/window/hyprland.rs:25:14:
called `Result::unwrap()` on an `Err` value: SerdeError(Error("invalid type: integer `0`, expected a boolean", line: 21, column: 19))
stack backtrace:
   0:     0x5574fc380b00 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hf3a3c9ea46e52073
   1:     0x5574fc3ada3b - core::fmt::write::hce61d4154f590c5c
   2:     0x5574fc3929ff - std::io::Write::write_fmt::h6ad874f3c4a80268
   3:     0x5574fc3808be - std::sys_common::backtrace::print::hf8557cb2e4cbad4b
   4:     0x5574fc3745ea - std::panicking::default_hook::{{closure}}::h41c62e46fa04dcc1
   5:     0x5574fc3742d8 - std::panicking::default_hook::haaf206a9c274f472
   6:     0x5574fc374a79 - std::panicking::rust_panic_with_hook::h5a0c902c2165dd5c
   7:     0x5574fc380fd4 - std::panicking::begin_panic_handler::{{closure}}::h89588c694a0e6924
   8:     0x5574fc380d19 - std::sys_common::backtrace::__rust_end_short_backtrace::h5c89081955875b99
   9:     0x5574fc374777 - rust_begin_unwind
  10:     0x5574fbd857a3 - core::panicking::panic_fmt::haf126de9ad6c372a
  11:     0x5574fbd85c36 - core::result::unwrap_failed::h2f4c54136d816548
  12:     0x5574fbdb3056 - <watershot::window::hyprland::HyprlandBackend as watershot::window::CompositorBackend>::get_all_windows::h223c7cf6734efaad
  13:     0x5574fbde5ca6 - watershot::runtime_data::RuntimeData::new::h45e2f98a29d708a5
  14:     0x5574fbdb367f - watershot::main::hef4a21de1794b4bf
  15:     0x5574fbe15843 - std::sys_common::backtrace::__rust_begin_short_backtrace::h744263cc6df56d4b
  16:     0x5574fbe0ba19 - std::rt::lang_start::{{closure}}::h81ea3f4753115b1e
  17:     0x5574fc374667 - std::panicking::try::h11af7c0cb75386f1
  18:     0x5574fc37f5a8 - std::rt::lang_start_internal::h53eb27f82a9ac9b0
  19:     0x5574fbdb5a15 - main
  20:     0x7611eaabc14e - __libc_start_call_main
  21:     0x7611eaabc209 - __libc_start_main@@GLIBC_2.34
  22:     0x5574fbd85d25 - _start
  23:                0x0 - <unknown>
@Gigas002
Copy link

Just use the git version of hyprland crate for now in Cargo.toml as workaround:

hyprland = { git = "https://github.com/hyprland-community/hyprland-rs" }

works for me

@Liassica
Copy link
Contributor Author

Just use the git version of hyprland crate for now in Cargo.toml as workaround:

hyprland = { git = "https://github.com/hyprland-community/hyprland-rs" }

works for me

That seems to fix it, thanks! For anyone else looking to use this fix, you may also need to set an output hash for the crate in nix/watershot/packages.nix, like so: Liassica@165dd43 (alternatively just use my fork's tmp-hyprland-fix branch as your flake input for now)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants