hyprwm / hyprpaper

Hyprpaper is a blazing fast wayland wallpaper utility with IPC controls.
https://wiki.hyprland.org/Hypr-Ecosystem/hyprpaper/
BSD 3-Clause "New" or "Revised" License
759 stars 54 forks source link

Switching wallpapers causes hyprpaper crash #42

Open J4ckTh3R1pper opened 1 year ago

J4ckTh3R1pper commented 1 year ago

I used a bash script to switch wallpaper using hyprpaper on workspace switches, but after a few switches the hyprpaper crashed, leaving the error message below:

[LOG] Submitting viewport dest size 1504x1002 for 68001890 [LOG] handlePreferredScale: 1.50 for 7ff768001890 zwlr_layer_surface_v1@52: error 0: wrong configure serial: 45405

Version: built from master WM: Hyprland, built from master bundled with HIDPI patched wlroots. It happens on both Arch Linux and NixOS.

2e0byo commented 1 year ago

Is this the same issue I had in #45 ? What happens if you insert a delay of say 0.5s between switches?

lenianiva commented 1 year ago

I've this problem too and I just wrote a systemd service file to have hyprpaper always restart after it crashes:

[Unit]
Description=Hyprpaper

[Service]
ExecStart=/usr/bin/hyprpaper
Restart=always

[Install]
WantedBy=default.target

Then systemctl enable --user hyprpaper; systemctl start --user hyprpaper

This has to be delayed by a bit after the user logs in