~whynothugo/shotman#28: 
error handling configure event: no buffer_info for screenshot

Using Hyprland, i get following error after selecting a region:

thread 'main' panicked at src/main.rs:1106:22:
error handling configure event: no buffer_info for screenshot
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

To my knowledge, Hyprland supports all protocols specified in the readme.

Status
REPORTED
Submitter
~martin-lndbl
Assigned to
No-one
Submitted
3 months ago
Updated
22 days ago
Labels
No labels applied.

~whynothugo a month ago

Can you try v0.4.6? This sounds like an issue that was fixed a few weeks ago.

~rkoten a month ago

Not OP but adding to the report: running what should be 0.4.6 (according to the Nix package repo, however shotman --version gives shotman unknown for some reason), on NixOS 24.05 with Hyprland 0.40.0 and getting the same error with the following stack:

RUST_BACKTRACE=full shotman --copy --capture output

thread 'main' panicked at src/main.rs:1129:22:
error handling configure event: no buffer_info for screenshot
stack backtrace:
   0:     0x55bc69d18e99 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h4886110ae7835fd2
   1:     0x55bc69c66300 - core::fmt::write::h6fab83f0f5bc0c8f
   2:     0x55bc69d2e3ad - std::io::Write::write_fmt::h64824cb874054607
   3:     0x55bc69d19abe - std::sys_common::backtrace::print::hb8fea9d041077138
   4:     0x55bc69d19690 - std::panicking::default_hook::{{closure}}::hc60f0f690c67943c
   5:     0x55bc69d1a338 - std::panicking::rust_panic_with_hook::hd61e30fe5971d187
   6:     0x55bc69d19d50 - std::panicking::begin_panic_handler::{{closure}}::h95d2684e28f89fd2
   7:     0x55bc69d19ca6 - std::sys_common::backtrace::__rust_end_short_backtrace::h48780d898316fff8
   8:     0x55bc69d19c93 - rust_begin_unwind
   9:     0x55bc69c0df84 - core::panicking::panic_fmt::hdb89b5c14a056cec
  10:     0x55bc69c0df42 - core::result::unwrap_failed::h850510ea6c159887
  11:     0x55bc69c999f2 - wayland_client::event_queue::queue_callback::ha52287389ca6ae2a
  12:     0x55bc69cd4697 - <core::cell::RefCell<calloop::sources::DispatcherInner<S,F>> as calloop::sources::EventDispatcher<Data>>::process_events::hf2739d42d61a7c4b
  13:     0x55bc69ca7a51 - calloop::loop_logic::EventLoop<Data>::run::h572c86e12a7c2f8d
  14:     0x55bc69cc3ae7 - shotman::main::hc6d5094ef40a3261
  15:     0x55bc69cb0dc3 - std::sys_common::backtrace::__rust_begin_short_backtrace::h049206d86e37fb73
  16:     0x55bc69cbac1b - main
  17:     0x7fa107a4e10e - __libc_start_call_main
  18:     0x7fa107a4e1c9 - __libc_start_main@@GLIBC_2.34
  19:     0x55bc69c13765 - _start
  20:                0x0 - <unknown>

Thanks!

~whynothugo 29 days ago

Can you run WAYLAND_DEBUG=1 shotman --copy --capture output -vdebug?

~rkoten 22 days ago

Yes, this is the output:

[1719628982.544000] -> wl_display@1.get_registry (wl_registry@2)
[1719628982.544027] -> wl_display@1.sync (wl_callback@3)
[1719628982.544770] <- wl_registry@2.global, (1, Some("wl_seat"), 9)
[1719628982.544803] <- wl_registry@2.global, (2, Some("wl_data_device_manager"), 3)
[1719628982.544824] <- wl_registry@2.global, (3, Some("wl_compositor"), 6)
[1719628982.544844] <- wl_registry@2.global, (4, Some("wl_subcompositor"), 1)
[1719628982.544869] <- wl_registry@2.global, (5, Some("wl_shm"), 1)
[1719628982.544892] <- wl_registry@2.global, (6, Some("wp_viewporter"), 1)
[1719628982.544911] <- wl_registry@2.global, (7, Some("wp_tearing_control_manager_v1"), 1)
[1719628982.544934] <- wl_registry@2.global, (8, Some("wp_fractional_scale_manager_v1"), 1)
[1719628982.544957] <- wl_registry@2.global, (9, Some("zxdg_output_manager_v1"), 3)
[1719628982.544980] <- wl_registry@2.global, (10, Some("wp_cursor_shape_manager_v1"), 1)
[1719628982.545005] <- wl_registry@2.global, (11, Some("zwp_idle_inhibit_manager_v1"), 1)
[1719628982.545027] <- wl_registry@2.global, (12, Some("zwp_relative_pointer_manager_v1"), 1)
[1719628982.545050] <- wl_registry@2.global, (13, Some("zxdg_decoration_manager_v1"), 1)
[1719628982.545077] <- wl_registry@2.global, (14, Some("wp_alpha_modifier_v1"), 1)
[1719628982.545096] <- wl_registry@2.global, (15, Some("zwlr_gamma_control_manager_v1"), 1)
[1719628982.545115] <- wl_registry@2.global, (16, Some("ext_foreign_toplevel_list_v1"), 1)
[1719628982.545132] <- wl_registry@2.global, (17, Some("zwp_pointer_gestures_v1"), 3)
[1719628982.545157] <- wl_registry@2.global, (18, Some("zwlr_foreign_toplevel_manager_v1"), 3)
[1719628982.545179] <- wl_registry@2.global, (19, Some("zwp_keyboard_shortcuts_inhibit_manager_v1"), 1)
[1719628982.545200] <- wl_registry@2.global, (20, Some("zwp_text_input_manager_v3"), 1)
[1719628982.545219] <- wl_registry@2.global, (21, Some("zwp_pointer_constraints_v1"), 1)
[1719628982.545237] <- wl_registry@2.global, (22, Some("zwlr_output_power_manager_v1"), 1)
[1719628982.545253] <- wl_registry@2.global, (23, Some("xdg_activation_v1"), 1)
[1719628982.545276] <- wl_registry@2.global, (24, Some("ext_idle_notifier_v1"), 1)
[1719628982.545296] <- wl_registry@2.global, (25, Some("ext_session_lock_manager_v1"), 1)
[1719628982.545315] <- wl_registry@2.global, (26, Some("zwp_input_method_manager_v2"), 1)
[1719628982.545336] <- wl_registry@2.global, (27, Some("zwp_virtual_keyboard_manager_v1"), 1)
[1719628982.545356] <- wl_registry@2.global, (28, Some("zwlr_virtual_pointer_manager_v1"), 2)
[1719628982.545377] <- wl_registry@2.global, (29, Some("zwlr_output_manager_v1"), 4)
[1719628982.545398] <- wl_registry@2.global, (30, Some("org_kde_kwin_server_decoration_manager"), 1)
[1719628982.545421] <- wl_registry@2.global, (31, Some("hyprland_focus_grab_manager_v1"), 1)
[1719628982.545441] <- wl_registry@2.global, (32, Some("zwp_tablet_manager_v2"), 1)
[1719628982.545460] <- wl_registry@2.global, (33, Some("zwlr_layer_shell_v1"), 5)
[1719628982.545486] <- wl_registry@2.global, (34, Some("wp_presentation"), 1)
[1719628982.545513] <- wl_registry@2.global, (35, Some("xdg_wm_base"), 6)
[1719628982.545533] <- wl_registry@2.global, (36, Some("zwlr_data_control_manager_v1"), 2)
[1719628982.545552] <- wl_registry@2.global, (37, Some("zwp_primary_selection_device_manager_v1"), 1)
[1719628982.545572] <- wl_registry@2.global, (38, Some("xwayland_shell_v1"), 1)
[1719628982.545597] <- wl_registry@2.global, (39, Some("wl_drm"), 2)
[1719628982.545623] <- wl_registry@2.global, (40, Some("zwp_linux_dmabuf_v1"), 5)
[1719628982.545647] <- wl_registry@2.global, (41, Some("hyprland_toplevel_export_manager_v1"), 2)
[1719628982.545670] <- wl_registry@2.global, (42, Some("zwp_text_input_manager_v1"), 1)
[1719628982.545695] <- wl_registry@2.global, (43, Some("hyprland_global_shortcuts_manager_v1"), 1)
[1719628982.545715] <- wl_registry@2.global, (44, Some("zwlr_screencopy_manager_v1"), 3)
[1719628982.545734] <- wl_registry@2.global, (45, Some("wp_drm_lease_device_v1"), 1)
[1719628982.545753] <- wl_registry@2.global, (46, Some("wp_drm_lease_device_v1"), 1)
[1719628982.545772] <- wl_registry@2.global, (47, Some("wp_drm_lease_device_v1"), 1)
[1719628982.545798] <- wl_registry@2.global, (48, Some("wl_output"), 4)
[1719628982.545816] <- wl_registry@2.global, (49, Some("wl_output"), 4)
[1719628982.545843] <- wl_callback@3.done, (1087)
[1719628982.545858] <- wl_display@1.delete_id, (3)
[1719628982.545884] -> wl_registry@2.bind (5, Some("wl_shm"), 1, wl_shm@3)
[1719628982.545909] -> wl_registry@2.bind (44, Some("zwlr_screencopy_manager_v1"), 3, zwlr_screencopy_manager_v1@4)
[1719628982.545937] -> wl_registry@2.bind (6, Some("wp_viewporter"), 1, wp_viewporter@5)
[1719628982.545958] -> wl_registry@2.bind (1, Some("wl_seat"), 7, wl_seat@6)
[1719628982.545987] -> wl_registry@2.bind (2, Some("wl_data_device_manager"), 3, wl_data_device_manager@7)
thread 'main' panicked at src/main.rs:166:6:
called `Result::unwrap()` on an `Err` value: the requested global was not found in the registry
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Just fyi this is on hyprland 0.41.2 now.

Register here or Log in to comment, or comment via email.