Scratchpad Bug which causes Hyprland to crash
System details
i7-1185G7 Iris Xe Graphics Omarchy 3.8.0
What's wrong?
Really weird issue that i found not sure if its been found before but when using the scratchpad feature.
Steps to reproduce:
- Open Scratchpad (Super + S)
- Open a Terminal Window (Super + Return)
- Pop out the window (Super + O)
- Move and Resize the window (Super + LMB, Super + RMB)
- Close Scratchpad (Super + S)
- Pop Window
- Hyprland Crashes lmao
not sure if its a big issue or not, i for some reason cannot get a crash report to open during this crash as it forces safe mode :)
ive also added my crash log
i think it works with any window tbf, i just tried it with terminal
cc @vaxerski, maybe this is solved in 0.55+?
how would I know? :P I don't crash.
There have been so many fixes I can't keep track of them, one way to find out, retest.
i tried it again, but this time on different hardware to ensure it wasn't just the computer i was using, i switched an an AMD machine with an NVIDIA GPU and the same issue still occurs, using the exact same steps, attached is a video showing me doing this
https://youtu.be/Dc6nIz2__5A
are you on 0.55.1?
i appear to be on 0.54.3, allow me to update and i'll recheck
I have a similar bug, except it does not crash hyprland. Instead, It creates a window which cannot be moved or resized.
open scratchpad open any window pop the window out then, start dragging it with the super+LMB then, whilst dragging (or holding the super button), close scratchpad. You now have a window which is unresponsive (or 'immune') to any drag/resize gestures. You can still use the app, you just can't move it
This doesn't reproduce on current Omarchy. I tested on a fresh VM installed from the current ISO, running Omarchy 4.0.4 with Hyprland 0.56.2 on a single virtual output. I opened the scratchpad, opened a terminal there, and popped it out with omarchy-hyprland-window-pop (Super+O). I moved and resized it, closed the scratchpad, then popped it again and again, and once more with the scratchpad reopened. Hyprland kept the same process the whole time, wrote no crash report and left no core dump.
The crash report you attached is a SIGSEGV inside Hyprland 0.54.3's own layout code. It happens in CDwindleAlgorithm::addTarget, reached from the togglefloating that the pop script sends. Super+O and Super+S only call Hyprland's standard dispatchers, so the defect is Hyprland's, not Omarchy's. On 0.56.2 Hyprland also handles this differently: pinning moves the popped window off the scratchpad onto the regular workspace, so the state that crashed 0.54.3 no longer comes up. I couldn't pin down which upstream release changed this.
This test didn't cover two things. The move and resize were done with dispatches, not an actual Super+drag. And it didn't cover @Tsurgcom's variant, where closing the scratchpad mid-drag leaves the window unmovable, because that needs a real mouse grab. If either of you still sees the crash or the stuck window on Hyprland 0.56 or later, please post your hyprctl version, the exact steps and any crash report from ~/.cache/hyprland/. Otherwise this is waiting on the maintainer to decide whether to close it.
Codex at medium effort reviewed this separately. It agreed it found no Omarchy cause. It added that the result means "doesn't reproduce in this setup", not proof that the underlying Hyprland bug is fixed, and that the drag variant is untested. It read the same evidence, so its agreement is not a fully independent check.