Skip to content

Requested wgpu surface is double my monitor size, exceeding limit #11

Description

@kianblakley

Compositor: niri (Wayland)
Wallr Version: 0.2.7 (built from source)

Config:
default

Steps to Reproduce:

  1. Start a Wayland session using niri.
  2. Use a 5120x2160 monitor with output scale set to 1.25.
  3. Run wallr daemon (or wallr --verbose daemon).

Expected Behavior:
wallr daemon should start.

Actual Behavior:
wallr errors while configuring the wgpu surface.

My monitor's native resolution is 5120x2160, but wallr attempts to configure the surface at 10240x4320 (exactly 2x the native resolution in both dimensions), which exceeds the maximum supported texture size of 8192.

For reference, niri msg outputs reports:

Output "PNP(CSF) CS40X Unknown" (HDMI-A-1)
  Current mode: 5120x2160 @ 120.000 Hz
  Variable refresh rate: not supported
  Physical size: 940x420 mm
  Logical position: 0, 0
  Logical size: 4096x1728
  Scale: 1.25
  Transform: normal

Logs:

$ wallr --verbose daemon

2026-08-06T01:25:49.665053Z  INFO wallr_core::daemon: Output detected: protocol_id=7
2026-08-06T01:25:49.665580Z  INFO wallr_core::daemon: Detected 1 output(s): ["HDMI-A-1 (5120x2160)"]

thread 'main' (140249) panicked at /home/kian/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/wgpu-24.0.5/src/backend/wgpu_core.rs:3432:18:
wgpu error: Validation Error

Caused by:
  In Surface::configure
    `Surface` width and height must be within the maximum supported texture size.
    Requested was (10240, 4320), maximum extent for either dimension is 8192.

note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Aborted (core dumped)

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions