swaylock
swaylock copied to clipboard
Error: Buffer size not divisible by scale
wlroots version: 0.12.0.r330.g5e19e005 sway version: 1.5-63a66351 (Feb 9 2021, branch 'master') swaylock version: 1.5 Linux version: 5.10.14-arch1-1
When I run swaylock -d
I get the following error:
2021-02-09 19:19:58 - [swaylock-1.5/main.c:1147] Parsing CLI Args
2021-02-09 19:19:58 - [swaylock-1.5/main.c:280] output name is HDMI-A-1
2021-02-09 19:19:58 - [swaylock-1.5/main.c:280] output name is eDP-1
wl_surface@23: error 2: Buffer size not divisible by scale
Can you grab a WAYLAND_DEBUG=1
log of swaylock?
Can you grab a
WAYLAND_DEBUG=1
log of swaylock?
https://gist.github.com/ChrisLane/515b2c49f52f055c49a0af6d20f721eb
Hm, seems like swaylock creates a 1x1 buffer for some reason…
I should note, I don't think this was happening to me yesterday when I was most likely running versions of wlroots and sway from yesterday morning's git so this may have arisen from commits to wlroots/sway since then.
I should note, I don't think this was happening to me yesterday when I was most likely running versions of wlroots and sway from yesterday morning's git so this may have arisen from commits to wlroots/sway since then.
I experienced the same issue after updating to the newest sway-git and wlroots-git
@ChrisLane, @sontrant, do you have output scaling set to anything other than 1?
@ChrisLane, @sontrant, do you have output scaling set to anything other than 1?
Yes, I have the following config for my laptop screen:
output $laptop_screen scale 2 pos 1920 0
i have the same issue
https://github.com/swaywm/swaylock/pull/167
There are still some cases where we use an invalid buffer size for the scale we use: https://github.com/swaywm/swaylock/pull/167#issuecomment-778289975
Probably some rounding errors?