Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Make a fatal X11 error visible in the Linux desktop legs (#8063)

Daniel Han87d7bb008303
diff --git a/.github/workflows/desktop-app-clean-machine-ci.yml b/.github/workflows/desktop-app-clean-machine-ci.yml
index 178ab9386da..59c7d212968 100644
--- a/.github/workflows/desktop-app-clean-machine-ci.yml
+++ b/.github/workflows/desktop-app-clean-machine-ci.yml
@@ -424,6 +424,16 @@ jobs:
"$PY" -c "import torch; print('torch', torch.__version__)"
- name: Launch under Xvfb and prove it stays up
+ env:
+ # Without this a fatal X11 error is completely invisible. GTK3 registers
+ # gdk_x_io_error() as its XSetIOErrorHandler, and that handler reports with
+ # g_debug() and then calls _exit(1) (gtk-3-24 gdk/x11/gdkmain-x11.c; the comment
+ # there says g_warning() was avoided because it could be redirected). g_debug()
+ # output is dropped unless G_MESSAGES_DEBUG names the domain, so the app exits 1
+ # having printed nothing at all and the step reports a bare rc=1 with no cause.
+ # That is exactly what #8062 looked like until this variable was set, at which
+ # point the next line read "Fatal IO error 11 ... on X server".
+ G_MESSAGES_DEBUG: all
run: |
set -a; [ -f ./clean-machine.env ] && . ./clean-machine.env; set +a
# The one platform where a hosted runner can give the app a real display, so this