~exec64/imv#48: 
Crash on sway: Buffer size not divisible by scale

When I use imv, sometimes I get an error like this.

wl_surface@11: error 2: Buffer size (716x431) is not divisible by scale (2) swayhide: imv was terminated by signal

  • Arch Linux
  • imv: 4.4.0
  • sway: 1.8.1
Status
REPORTED
Submitter
~wildwestrom
Assigned to
No-one
Submitted
1 year, 15 days ago
Updated
a month ago
Labels
No labels applied.

All-Purpose Mat 2 months ago ยท edit

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512

I can repro this crash on Hyprland pretty consistently, so it must be a wlroots issue. I was able to trace it back to this commit: https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/18595000f3a21502fd60bf213122859cc348f9af Reverting it makes the crash go away, but is obviously not a solution.

-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQR7rht6B3uFIzc6C2ntNaasZaBraQUCZfWIBwAKCRDtNaasZaBr aVcuAP4w8FGG/ywMiE2Y7qK8Ch7Kba93XRmVmX2D3zbQ6abiHAEAi0lqJ1JhKBPx RYL70UsS4GdtwmsLWuzTDziDRAl36Qg= =MWaF -----END PGP SIGNATURE-----

~naginikaido a month ago

The same problem occurs under the following settings:

  • Arch Linux
  • imv: 4.5.0
  • Hyprland: >= 0.37.0
  • monitor scaling: >1.0

The output_data->pending_scale = 1 hack mentioned in #20 seems to be fine and works perfectly for me, no matter how the monitor scaling changes.

Register here or Log in to comment, or comment via email.