hyprswitch icon indicating copy to clipboard operation
hyprswitch copied to clipboard

Overlay for alt-tab hangs and captures all input events when no applications are open in the current workspace, when filtering by current workspace, this effectively locks up the desktop

Open mmj2023 opened this issue 3 months ago • 9 comments

But, when there are no windows on the current workspace then, it errors out and stops working even though the background process is still running and the overlay captures all input events so, hyprland becomes unusable and to fix it, I had to kill the process by changing my tty.

hyprshell run                                                                                                                     took 37s   23:23:34
   0.001516087s  INFO Starting hyprshell 4.7.1 in release mode on hyprland 0.51.1
   0.063015619s  INFO Using theme: Some("Everforest-Dark") and icon theme: Some("Papirus"), please make sure both exist, else weird icon or graphical issues may occur
   0.185373290s  INFO Starting gui loop
   0.185770201s  INFO Starting socket on "/run/user/1000/hypr/71a1216abcc7031776630a6d88f105605c4dc1c9_1760163769_1496905214/hyprshell.sock"
MESA-INTEL: warning: ../mesa/src/intel/vulkan/anv_formats.c:991: FINISHME: support more multi-planar formats with DRM modifiers
MESA-INTEL: warning: ../mesa/src/intel/vulkan/anv_formats.c:957: FINISHME: support YUV colorspace with DRM format modifiers
   2.108618355s  INFO Application initialized
   2.108852324s  INFO Starting hyprshell config reload listener
   2.109144971s  INFO Starting hyprshell css reload listener
   2.109310849s  INFO Starting monitor added/removed listener

thread 'main' (2079078) panicked at /home/user/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/hyprshell-windows-lib-4.7.1/src/next.rs:94:58:
attempt to calculate the remainder with a divisor of zero
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Originally posted by @mmj2023 in https://github.com/H3rmt/hyprshell/discussions/312#discussioncomment-14661617

mmj2023 avatar Oct 13 '25 23:10 mmj2023

could you also include the output when run with -vv

H3rmt avatar Oct 27 '25 23:10 H3rmt

should be fixed in 4.8.0

H3rmt avatar Nov 09 '25 22:11 H3rmt

should be fixed in 4.8.0 Alr I will try it out, thanks for being responsive and fixing the issues.

mmj2023 avatar Nov 09 '25 22:11 mmj2023

I am running the last tests, should be released the next hour

H3rmt avatar Nov 09 '25 22:11 H3rmt

@mmj2023 did the new version solve your issue?

H3rmt avatar Nov 12 '25 22:11 H3rmt

Hi now I am having this issue,

RUST_BACKTRACE=1 hyprshell run -vv
   0.000021960s DEBUG FEATURES: json5_config: true, generate_config_command: true, debug_command: true, launcher_calc: true, clipboard_compress_lz4: true, clipboard_compress_zstd: true, clipboard_compress_brotli: true, clipboard_encrypt_chacha20poly1305: true, clipboard_encrypt_aes_gcm: true
   0.000038546s DEBUG ENV: HYPRSHELL_NO_LISTENERS: -None-, HYPRSHELL_NO_ALL_ICONS: -None-, HYPRSHELL_RELOAD_TIMEOUT: -None-, HYPRSHELL_LOG_MODULE_PATH: -None-, HYPRSHELL_NO_USE_PLUGIN: -None-, HYPRSHELL_EXPERIMENTAL: -None-, HYPRSHELL_RUN_ACTIONS_IN_DEBUG: -None-
   0.000047915s DEBUG OS: linux, ARCH: x86_64, NAME="Arch Linux"
   0.000057904s DEBUG Checking if daemon is running on /run/user/1000/hypr/967c3c7404d4fa00234e29c70df3e263386d2597_1763123351_928743173/hyprshell.sock
   0.000797649s TRACE hyprland Version { branch: "v0.52.1", commit: "967c3c7404d4fa00234e29c70df3e263386d2597", version: Some("0.52.1"), dirty: false, commit_message: "version: bump to 0.52.1", commit_date: "Sun Nov 9 23:31:36 2025", tag: "v0.52.1", commits: "6564", build_aquamarine: "0.9.5", flags: [] }
   0.000810816s  INFO Starting hyprshell 4.8.0 in release mode on hyprland 0.52.1
   0.000823421s TRACE Found config file at "/home/user/.config/hyprshell/config.toml"
   0.040210715s  INFO preactivate: Using theme: Some("adw-gtk3-dark") and icon theme: Some("Papirus"), please make sure both exist, else weird icon or graphical issues may occur
   0.043747945s TRACE preactivate: Icon theme search path: ["/home/user/.local/share/icons", "/home/user/.icons", "/var/lib/flatpak/exports/share/icons", "/usr/share/icons", "/home/user/.nix-profile/share/icons", "/usr/share/pixmaps"]
   0.043763299s DEBUG preactivate:reload_icons: found 642 icons from theme
   0.043972575s TRACE preactivate:reload_icons: icon map filled
   0.043984931s DEBUG preactivate:reload_icons: found 1 icons from filesystem in "/home/user/.icons" paths (in background)
   0.044113691s DEBUG preactivate:reload_icons: found 23 icons from filesystem in "/usr/share/pixmaps" paths (in background)
   0.044193581s DEBUG preactivate:reload_icons: found 1 icons from filesystem in "/home/user/.nix-profile/share/icons" paths (in background)
   0.044242048s DEBUG preactivate:reload_icons: found 12 icons from filesystem in "/var/lib/flatpak/exports/share/icons" paths (in background)
   0.045533872s TRACE preactivate:reload_files: found 408 desktop files
   0.049943269s TRACE preactivate:reload_files: Collected all desktop files
   0.050661151s TRACE preactivate:reload_files: found 4 mimeapps lists
   0.050803792s TRACE preactivate:reload_files: Collected all mime files
   0.051269441s TRACE preactivate:reload_class_to_icon_map: filled class to icon map
   0.051568271s TRACE preactivate:reload_desktop_entries_map: filled launcher desktop file map
   0.051572232s DEBUG preactivate: Reloaded desktop data in 7.591796ms
   0.051576016s DEBUG Reloading hyprland config
   0.056806949s DEBUG preactivate:reload_icons: found 6702 icons from filesystem in "/home/user/.local/share/icons" paths (in background)
   0.065990220s  INFO socket_handler: Starting socket on "/run/user/1000/hypr/967c3c7404d4fa00234e29c70df3e263386d2597_1763123351_928743173/hyprshell.sock"
   0.065909497s  INFO Starting gui loop
   0.066202521s DEBUG Application created
   0.338223146s DEBUG activate: Loading custom css file "/home/user/.config/hyprshell/styles.css"
   0.338443056s TRACE activate: Storing previous follow_mouse value: 2
   0.338481942s TRACE activate: Cached version: Version { major: 4, minor: 8, patch: 0 }, current version: Version { major: 4, minor: 8, patch: 0 }: Equal
   0.339414500s DEBUG activate: Hyprshell is up to date
   0.339507878s TRACE activate:load_config{path="/home/user/.config/hyprshell/config.toml"}: No migration needed
   0.339584622s DEBUG activate:load_config{path="/home/user/.config/hyprshell/config.toml"}: Loaded config
   0.340054382s TRACE activate:create_binds:load_plugin: plugins: []
   0.340089642s TRACE activate:create_binds:load_plugin:generate: extracting plugin from zip
   0.340202196s TRACE activate:create_binds:load_plugin:generate: extracted 5 files
   0.340208698s TRACE activate:create_binds:load_plugin:generate: configuring defs file
   0.340264321s TRACE activate:create_binds:load_plugin:generate: building plugin
   0.340271794s TRACE activate:create_binds:load_plugin:generate:build{path="/tmp/.tmpIQ3Kumhyprshell-hyprland-plugin"}: PATH: Some("/home/user/.opam/default/bin:/home/user/.local/:/home/user/.local/bin:/home/user/.local/:/home/user/.local/bin:/home/user/.bun/bin:/home/user/.config/carapace/bin:/home/user/.local/:/home/user/.local/bin:/home/user/.local/:/home/user/.local/bin:/home/user/.bun/bin:/home/user/.cabal/bin:/home/user/.ghcup/bin:/home/user/.config/nvm/versions/node/v24.2.0/bin:/home/user/.local/share/../bin:/home/user/.opam/default/bin:/home/user/.cargo/bin:/home/user/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/opt/cuda/bin:/opt/cuda/nsight_compute:/opt/cuda/nsight_systems/bin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/user/go/bin:/home/user/go/bin")
   0.340287676s TRACE activate:create_binds:load_plugin:generate:build{path="/tmp/.tmpIQ3Kumhyprshell-hyprland-plugin"}: CPATH: None
   0.340294327s TRACE activate:create_binds:load_plugin:generate:build{path="/tmp/.tmpIQ3Kumhyprshell-hyprland-plugin"}: Running build command: cd "/tmp/.tmpIQ3Kumhyprshell-hyprland-plugin" && "gcc" "-shared" "-fPIC" "--no-gnu-unique" "-std=c++2b" "-I/usr/include/pixman-1" "-O2" "-o" "/tmp/hyprshell.so" "all.cpp"
   1.906132417s DEBUG preactivate:reload_icons: found 23904 icons from filesystem in "/usr/share/icons" paths (in background)
   3.139162023s TRACE activate:create_binds:load_plugin: generated plugin at "/tmp/hyprshell.so"
   3.139422539s TRACE activate:create_binds:load_plugin: loaded plugin
   3.156768419s TRACE activate:create_binds: layerrules applied
   3.357703832s DEBUG activate:create_windows_overview_window: Created overview window (1) for monitor "eDP-1"
   3.401274871s DEBUG activate:create_windows_overview_launcher_window: Created launcher window (2)
   3.454591932s DEBUG activate:create_windows_switch_window: Created switch window (3)
   3.454737475s  INFO activate: Application initialized
   3.454810913s  INFO Starting hyprshell config reload listener
   3.454908264s  INFO Starting hyprshell css reload listener
   3.454983935s TRACE event_handler: handling event: Type("")
   3.454998634s  INFO event_handler: Starting monitor added/removed listener
   3.455052260s  INFO event_handler: Starting hyprland config reload listener
  10.776840552s DEBUG socket_handler:handle_client: Received command: OpenSwitch(OpenSwitch { reverse: false })
  10.776877741s TRACE event_handler: handling event: OpenSwitch(OpenSwitch { reverse: false })
  10.779143832s TRACE event_handler:open_switch: Set follow_mouse to 3
  10.779741013s TRACE event_handler:open_switch:collect_data: active_client: Some(("com.mitchellh.ghostty", 94880361462912)); active_ws: 1; active_monitor: 0
  10.779760634s TRACE event_handler:open_switch:collect_data: client_data: [(94880361462912, ClientData { x: 0, y: 44, width: 1536, height: 820, class: "com.mitchellh.ghostty", title: "hyprshell hyprshell", workspace: 1, monitor: 0, focus_history_id: 0, floating: false, enabled: true, pid: 3718 }), (94880377950160, ClientData { x: 0, y: 0, width: 1536, height: 864, class: "app.zen_browser.zen", title: "(46) Valve Paves The Way (Again), Linux Testing, Desktop Reinstall & More | Dual Boot Diaries ep. 12 - YouTube — Zen Browser", workspace: 2, monitor: 0, focus_history_id: 1, floating: false, enabled: false, pid: 4772 }), (94880366126112, ClientData { x: 0, y: 44, width: 1536, height: 820, class: "com.mitchellh.ghostty", title: "v .bashrc", workspace: 4, monitor: 0, focus_history_id: 2, floating: false, enabled: false, pid: 3718 }), (94880366005360, ClientData { x: 0, y: 44, width: 1536, height: 820, class: "affinity.exe", title: "Affinity", workspace: 3, monitor: 0, focus_history_id: 3, floating: false, enabled: false, pid: 96831 }), (94880373809008, ClientData { x: 61, y: 433, width: 41, height: 161, class: "affinity.exe", title: "Sub", workspace: 3, monitor: 0, focus_history_id: 4, floating: true, enabled: false, pid: 96831 }), (94880384174384, ClientData { x: 0, y: 44, width: 1536, height: 820, class: "helium", title: "(9) Zara Larsson - You Love Who You Love (Official Music Video) - YouTube - Helium", workspace: 5, monitor: 0, focus_history_id: 5, floating: false, enabled: false, pid: 3734 }), (94880366073472, ClientData { x: 0, y: 44, width: 1536, height: 820, class: "helium", title: "Watch The Hangover Part II 2011 full HD on SFlix Free - Helium", workspace: 6, monitor: 0, focus_history_id: 6, floating: false, enabled: false, pid: 3734 }), (94880380866592, ClientData { x: 0, y: 65, width: 1536, height: 799, class: "com.mitchellh.ghostty", title: "/home/user", workspace: -98, monitor: 0, focus_history_id: 7, floating: false, enabled: false, pid: 3718 }), (94880384766464, ClientData { x: 0, y: 65, width: 1536, height: 799, class: "app.zen_browser.zen", title: "(46) Secure ArchLinux Installation Tutorial 2025 - YouTube — Zen Browser", workspace: -98, monitor: 0, focus_history_id: 8, floating: false, enabled: false, pid: 4772 })]
  10.779793141s TRACE event_handler:open_switch:collect_data: workspace_data: [(1, WorkspaceData { name: "1", width: 1536, height: 864, monitor: 0, any_client_enabled: true }), (2, WorkspaceData { name: "2", width: 1536, height: 864, monitor: 0, any_client_enabled: false }), (4, WorkspaceData { name: "4", width: 1536, height: 864, monitor: 0, any_client_enabled: false }), (3, WorkspaceData { name: "3", width: 1536, height: 864, monitor: 0, any_client_enabled: false }), (5, WorkspaceData { name: "5", width: 1536, height: 864, monitor: 0, any_client_enabled: false }), (6, WorkspaceData { name: "6", width: 1536, height: 864, monitor: 0, any_client_enabled: false }), (-98, WorkspaceData { name: "special:magic", width: 1536, height: 864, monitor: 0, any_client_enabled: false })]
  10.779804398s TRACE event_handler:open_switch:collect_data: monitor_data: [(0, MonitorData { x: 0, y: 0, width: 1536, height: 864, connector: "eDP-1" })]
  10.779822250s TRACE event_handler:open_switch:find_next_client{direction=Right wrap=true active=Active { client: Some(94880361462912), workspace: 1, monitor: 0 } clients_per_row=5}:find_next_grid{len=1 current=0}: Finding next workspace with offset: 1
  10.779828149s TRACE event_handler:open_switch:find_next_client{direction=Right wrap=true active=Active { client: Some(94880361462912), workspace: 1, monitor: 0 } clients_per_row=5}:find_next_grid{len=1 current=0}: Index out of bounds, wrapping around 1
  10.779832898s TRACE event_handler:open_switch:find_next_client{direction=Right wrap=true active=Active { client: Some(94880361462912), workspace: 1, monitor: 0 } clients_per_row=5}:find_next_grid{len=1 current=0}: Next index: 1

thread 'main' (107336) panicked at /home/user/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/hyprshell-windows-lib-4.8.0/src/next.rs:104:18:
unable to find next client!
stack backtrace:
   0: __rustc::rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::option::expect_failed
   3: hyprshell_windows_lib::next::find_next_client
   4: hyprshell_windows_lib::switch::open::open_switch
   5: glib::main_context_futures::<impl glib::auto::main_context::MainContext>::spawn_local_with_priority::{{closure}}
   6: glib::main_context_futures::TaskSource::dispatch
   7: <unknown>
   8: <unknown>
   9: g_main_context_iteration
  10: g_application_run
  11: gio::application::ApplicationExtManual::run_with_args
  12: hyprshell::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
  12.240738399s DEBUG socket_handler:handle_client: Received command: CloseSwitch
  14.328797706s DEBUG socket_handler:handle_client: Received command: OpenSwitch(OpenSwitch { reverse: false })
  14.892655805s DEBUG socket_handler:handle_client: Received command: OpenSwitch(OpenSwitch { reverse: false })
  15.296659027s DEBUG socket_handler:handle_client: Received command: OpenSwitch(OpenSwitch { reverse: false })
  15.676881640s DEBUG socket_handler:handle_client: Received command: OpenSwitch(OpenSwitch { reverse: false })
  16.010619342s DEBUG socket_handler:handle_client: Received command: OpenSwitch(OpenSwitch { reverse: false })
  16.262643195s DEBUG socket_handler:handle_client: Received command: OpenSwitch(OpenSwitch { reverse: false })
  16.454701488s DEBUG socket_handler:handle_client: Received command: OpenSwitch(OpenSwitch { reverse: false })
  16.660687851s DEBUG socket_handler:handle_client: Received command: OpenSwitch(OpenSwitch { reverse: false })
  17.186597769s DEBUG socket_handler:handle_client: Received command: CloseSwitch
  18.284577861s DEBUG socket_handler:handle_client: Received command: OpenSwitch(OpenSwitch { reverse: false })
  18.566723839s DEBUG socket_handler:handle_client: Received command: OpenSwitch(OpenSwitch { reverse: false })
  18.772570919s DEBUG socket_handler:handle_client: Received command: OpenSwitch(OpenSwitch { reverse: false })
  18.982691923s DEBUG socket_handler:handle_client: Received command: OpenSwitch(OpenSwitch { reverse: false })
  19.198560074s DEBUG socket_handler:handle_client: Received command: OpenSwitch(OpenSwitch { reverse: false })
  19.392582632s DEBUG socket_handler:handle_client: Received command: OpenSwitch(OpenSwitch { reverse: false })
  19.598568651s DEBUG socket_handler:handle_client: Received command: OpenSwitch(OpenSwitch { reverse: false })
  20.056525351s DEBUG socket_handler:handle_client: Received command: OpenSwitch(OpenSwitch { reverse: false })
  20.268572491s DEBUG socket_handler:handle_client: Received command: OpenSwitch(OpenSwitch { reverse: false })
  20.468592234s DEBUG socket_handler:handle_client: Received command: OpenSwitch(OpenSwitch { reverse: false })
  20.662579226s DEBUG socket_handler:handle_client: Received command: OpenSwitch(OpenSwitch { reverse: false })
  20.864560202s DEBUG socket_handler:handle_client: Received command: OpenSwitch(OpenSwitch { reverse: false })
  21.136557041s DEBUG socket_handler:handle_client: Received command: OpenSwitch(OpenSwitch { reverse: false })
  22.468545509s DEBUG socket_handler:handle_client: Received command: OpenSwitch(OpenSwitch { reverse: false })
  22.694501626s DEBUG socket_handler:handle_client: Received command: OpenSwitch(OpenSwitch { reverse: false })
  22.768449071s DEBUG socket_handler:handle_client: Received command: CloseSwitch

mmj2023 avatar Nov 14 '25 23:11 mmj2023

It doesn't even do anything anymore.

mmj2023 avatar Nov 14 '25 23:11 mmj2023

Should be fixed in 4.8.1

H3rmt avatar Nov 17 '25 14:11 H3rmt

Thanks I wil try it out.

mmj2023 avatar Nov 20 '25 09:11 mmj2023

still a problem with 4.8.1?

H3rmt avatar Dec 01 '25 23:12 H3rmt