Open Proximus888 opened 2 weeks ago
Hm, very weird indeed. I also did not realize how bad panic messages are without debug symbols so I will stop removing those for future versions 😅.
However, the line causing it: https://github.com/marcelohdez/dim/blob/2e305d8ebd8c6d9d68b80db7d5b30808fa55496b/src/dim.rs#L86-L87 is literally just binding to the global, I don't think there's anything I can do from my side.
Tried on Hyprland v0.39
(and something like v0.36
when I was initially developing dim) and it worked then, so this does seem like an upstream regression, idk if it's a Smithay toolkit fix or a Hyprland fix :/
I will keep this open until it is fixed, and will make issue(s) upstream; Here is the output of
$ RUST_BACKTRACE=full dim
on dim master, in hyprland-git
(from Fedora COPR, version 0.41.1^19.git4a8b13e-1.fc40
) for future reference:
thread 'main' panicked at src/dim.rs:87:18:
wp_single_pixel_buffer_manager_v1 not available!: NotPresent
stack backtrace:
0: 0x564264baf7ff - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hbe715776571fedde
1: 0x564264abd68b - core::fmt::write::h55d03372cad3f739
2: 0x564264b875a2 - std::io::Write::write_fmt::h1eac210b8171e7b1
3: 0x564264bb1129 - std::sys_common::backtrace::print::hd8fbafa492b96d86
4: 0x564264bb094e - std::panicking::default_hook::{{closure}}::h084093d99dd18eed
5: 0x564264bb1b3f - std::panicking::rust_panic_with_hook::h95efcd38fabde594
6: 0x564264bb1492 - std::panicking::begin_panic_handler::{{closure}}::h7f8d0d9063260d01
7: 0x564264bb13e9 - std::sys_common::backtrace::__rust_end_short_backtrace::h82e94e56eb6c7552
8: 0x564264bb13d6 - rust_begin_unwind
9: 0x564264a1a3d2 - core::panicking::panic_fmt::h1bf964dabb6fd750
10: 0x564264a1a7e5 - core::result::unwrap_failed::hc8a7b968958d675c
11: 0x564264a45485 - dim::main::hccadf6ec8d9fd3f6
12: 0x564264a2acb3 - std::sys_common::backtrace::__rust_begin_short_backtrace::h031c71a5210c4725
13: 0x564264a465ef - main
14: 0x7fda5c92d088 - __libc_start_call_main
15: 0x7fda5c92d14b - __libc_start_main_impl
16: 0x564264a22ca5 - _start
17: 0x0 - <unknown>
I have tested it with 2 installations of dim-screen (AUR and Cargo) but it gets the same result. I don't know if the error comes because Hyprland now forks wl-roots.
Hyprland version: v0.41.1-52 Dim version: 0.2.2
When running dim I get this error:
Bash:
ZSH: