semi-overuse of cli args sometimes crash hyprpaper
hyprpaper crashed while semi-overusing cli args, not sure if this is intentional or not
[LOG] Image data for HDMI-A-1: /home/nyx/Downloads/wallpapers/walls/pixel_moon-D7801.jpg at [-0.00, 0.00], scale: 1.33 (original image size: [1920, 1080])
[LOG] Submitting viewport dest size 2560x1440 for 2407eaf0
zwlr_layer_surface_v1#22: error 0: Serial invalid in ack_configure
[1] + done hyprpaper
i can just start hyprpaper back up but OK happened to me twice while abusing this, i dont think this should happen
I can decently replicate this bug by changing the resolution or transform settings of a monitor and switching its wallpaper at the same time.
# Assuming monitor starts at scale of 1
hyprctl keyword monitor eDP-1,1920x1080@60,0x0,1.25,transform,0 &&\
hyprctl hyprpaper wallpaper eDP-1,~/Pictures/arch.png
or
# Assuming monitor starts at scale of 1
hyprctl keyword monitor eDP-1,1920x1080@60,0x0,1,transform,1 &&\
hyprctl hyprpaper wallpaper eDP-1,~/Pictures/arch-side.png
hyprpaper logs (running in command line) are uninteresting
# Here, I transformed from 1.25 to 1
...
[LOG] Image data for eDP-1: /home/swomf/Pictures/arch.png at [-0.00, 0.00], scale: 1.00 (original image size: [1920, 1080])
[LOG] Submitting viewport dest size 1920x1080 for a0004ac0
zwlr_layer_surface_v1#29: error 0: Serial invalid in ack_configure
I ran into the same bug whilst trying to chage my resolution and wallpaper at the same time like the person above, however I found that hyprpaper would only exit if I currently had two monitors active. Also, I found that even with two monitors active, I could avoid the crash by changing the order of the commands, setting the wallpaper before setting the resolution and it works as intended.
hyprctl hyprpaper wallpaper "DP-5,~/.local/share/wall_4x3"
hyprctl keyword monitor DP-5,[email protected],0x0,1,bitdepth,10