Skip to content

fix: stop hiding errors from the update and capture threads - #38

Merged
samuelba merged 7 commits into
mainfrom
fix-stop-hiding-errors-from-the-update-a
Nov 30, 2026
Merged

samuelba merged 7 commits into
mainfrom
fix-stop-hiding-errors-from-the-update-a

Conversation

@samuelba

Copy link
Copy Markdown
Owner

A panic in the update's blocking work was told as "cancelled". It is now
logged and told as a bug, apart from the runtime shutting down. The
capture logs a tray icon that cannot be shown, and a screenshots folder
that cannot be created before the Save As dialog, instead of dropping
both.

Replace the string-carrying Protocol, Failed, Portal and Shell variants
with Bind, Wayland, Timeout and Frame { output, reason }, plus
PortalError and ShellError that keep their zbus and image sources. A
timeout is now its own variant, so KWin's slow answers no longer look
like a refusal. Drop the never-built Pixels variant: pixel errors are
now a FrameError reason.

A screen whose buffer cannot be allocated now fails on its own and
is reported with its output name.
Move size, format and buffer into Pending::allocate, used by both
ext-image-copy-capture and wlr-screencopy. The stride is the one the
compositor asked for, else rows packed tightly, which makes the
no-stride case unreachable.

wlr-screencopy now destroys its frames and manager even when waiting
fails, as ext-image-copy-capture already did.
to_rgba and View::get now both turn a pixel into RGBA through
ShmFormat::rgba.
Transform::apply takes the image by value, so an upright screen is
moved instead of cloned (about 33 MB at 4K), and flips and half turns
happen in place.
capture() now returns a Capture with layer_shell, read from the
globals it already listed, so the overlay no longer opens a second
Wayland connection just to ask for zwlr_layer_shell_v1.
Looking up and installing a release now fails with an UpdateError instead
of a string. The editor's card tells a GitHub it cannot reach, which it
offers to try again, apart from a download that failed its signature or
checksum check, which it does not. The tray logs only the latter as a
warning, and self-update no longer wraps the error by hand.
A panic in the update's blocking work was told as "cancelled". It is now
logged and told as a bug, apart from the runtime shutting down. The
capture logs a tray icon that cannot be shown, and a screenshots folder
that cannot be created before the Save As dialog, instead of dropping
both.
@samuelba
samuelba merged commit 9399448 into main Nov 30, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant