hyprpicker: hyprpicker stops working after a couple of uses
In hyprland.conf
I use a bind for hyprpicker
:
bind=SUPER,C,exec,hyprpicker -a && notify-send --icon ~/.config/hypr/assets/blossom.png -u critical -t 4000 "$(wl-paste)"
It works for about 20 times. But then it suddenly breaks. When running hyprpicker in the terminal afterwards I get:
❯ hyprpicker
zsh: bus error (core dumped) hyprpicker
Rebooting gets it working again. But then it breaks again, after a couple of uses.
I’m on AMD, and installed hyprpicker-git from the AUR.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 22 (12 by maintainers)
I had a look into the sources:
The problem is that
execlp()
which is called from withinClipboard::copy()
never returns (this is the intended behavior ofexeclp()
and in case of success the new process replaces the current process). For that reason the call ofg_pHyprpicker->finish()
at the end ofEvents::handlePointerButton()
is not performed and therefore the cleanup does not happen.@AmadeusWM: In my case this seems to be a controlled exit in case of an error which is handled somehow. There is no crash like in your case and therefore I cannot provide a coredump.
I just stumbled over
hyprpicker
and quickly compiled it. Nice and useful tool! Then I saw this issue and quickly tried to replicate it.I also see
hyprpicker -a
not working anymore after about 20 runs, but the behaviour is slightly different in my case. I just see the messagewl_buffer@25: error 2: error accessing SHM buffer
in the terminal then. Maybe that helps in finding the cause of the issue.https://github.com/hyprwm/Hyprland/blob/main/docs/ISSUE_GUIDELINES.md