Repository navigation
TD-5427: a web view that cannot draw is relaunched without compositing, never left blank - #296
Merged
Merged
Conversation
On Linux a WebKitGTK web process that aborts at start ("Could not create
default EGL display: EGL_BAD_PARAMETER. Aborting...") left a window with a
menu bar and nothing else, with nothing said, while the host logged that it
had connected to tstd.
The window now sends a ready signal two animation frames after the root
layout mounts. The host acts if WebKitGTK reports the web process dead, or
no signal comes within 20 s while the window is shown: it stops tstd as
Quit does and execs itself once with WEBKIT_DISABLE_COMPOSITING_MODE=1,
which WebKitGTK reads once per process. If that start cannot draw either,
or the variable was already set, a native dialog quotes the log line and the
web process's last graphics error and the app exits with status 1.
The web process inherits the host's stderr, so a small forked relay copies
it on unchanged and keeps the last such line. Doctor gets a display row
through an environment variable on the spawned daemon. Tauri's exit code is
always 0 on Linux, so the failing exit is made by the host.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ailure A blank window also connects to tstd, so the packaged smoke and the long-used-install gate now require the host's "main window painted" line, and warn when it only came after a relaunch. egl-fallback-smoke.sh forces two real failures on the packaged app under Xvfb: Mesa asked for OpenGL ES 1.0 (silent until compositing is off, so the relaunch paints) and an EGL vendor file naming a missing library (the web process aborts either way, so the dialog shows and the app exits 1), plus the second with the variable already set. package.yml runs it on the Linux legs, which now install xdotool to close the dialog. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Records the four requirements as the story's criteria, the design choices (including that compositing off does not cure every EGL failure), and what a person on Linux sees when the window cannot draw. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, Quit wins over a relaunch - After a failed relaunch the dialog's OK called request_quit, which does nothing once the relaunch began a quit: a hidden process stayed running. OK now ends the process with the error code. - rfd passes the dialog message to GTK as a printf format: a % in the EGL variable, a path or the web line crashed it (exit 139). The text is escaped (% doubled, NULs stripped) on Linux. - A tray Quit while the relaunch waited for a starting tstd did nothing and the app relaunched anyway; Quit now cancels the relaunch. A tstd still starting is never killed (it may be upgrading): the wait stays, disclosed. - Wayland's missing "minimised" state and the dialog's wording with no EGL override are disclosed in DECISIONS. Tests: dialog text with % and a NUL is shown as written; a Quit during a relaunch cancels it. The crash and the hidden process need a display to reproduce; the next review round re-runs them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TD-5427: a web view that cannot draw is relaunched without compositing, never left blank
This comes from a live install. On Linux, when WebKitWebProcess aborts at start ("Could not create default EGL display: EGL_BAD_PARAMETER"), the window used to show only the File/Edit menu and stay blank. Meanwhile the host still logged "connected to tstd".
What it does
ui_painted. The host also connects WebKitGTK'sweb-process-terminatedsignal directly, because Tauri reports it only on Apple.TST_DESK_PAINT_TIMEOUT_SECS), it acts then. A healthy start paints in about 1 s. Hidden or minimised windows aren't judged.execs itself withWEBKIT_DISABLE_COMPOSITING_MODE=1, because WebKitGTK reads that variable once per process. It relaunches at most once per start; if the variable was already set, it goes straight to the dialog. The updater doesn't carry over a variable the host set.displayrow says when the app relaunched without compositing, and why.package.ymlnow requires the painted signal, not just that tstd connected.Before/after. EGL failures were forced on this machine:
MESA_GLES_VERSION_OVERRIDE=1.0): the app relaunches and paints.ubuntu:22.04container, all three launch steps pass on this branch, and the new gate fails the current release candidate for lacking the ready signal.What I could not show: disabling compositing did not fix the EGL aborts I could force here. A missing vendor library aborts either way. A Mesa-only override in the packaged 22.04 build on a newer host fails for a separate reason (its libwayland lacks
wl_fixes_interface), which may deserve its own story. The live case that compositing-off fixed wasn't reproduced here. Every forced failure now ends in the dialog rather than a blank window.Open questions for the manager:
Checks:
-D warningsis clean, and the library tests pass (190).tscand the build are clean.daemon_supervision's group-kill test fails the same way on main (see AGENTS §12).Review: 2 independent rounds (another account).
%in the dialog text crashed GTK; no window while the relaunch waited for a starting tstd. Fixed in 9866182 (end the process on the dialog's OK,dialog_safeescapes%and strips NULs, a quit during the wait cancels the relaunch).🤖 Generated with Claude Code