Skip to content

Commit 0c62bfe

Browse files
committed
test: disable QtWebEngine sandbox+GPU for qtdragon ui-smoke
qtdragon embeds QWebEngineView. On rip-and-test (gcc) CI it racy-crashed during Chromium browser-process spawn under offscreen + xvfb, no GPU, no user namespaces. rip-and-test-clang got past it by luck. Force --no-sandbox --single-process --no-zygote --disable-gpu so the renderer runs in-process with software rendering.
1 parent b8dcdf5 commit 0c62bfe

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tests/ui-smoke/qtdragon/test.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
# scripts/linuxcnc itself forces QT_QPA_PLATFORM=xcb unless
1616
# LINUXCNC_OPENGL_PLATFORM is set to something other than glx, so we
1717
# pin both env vars.
18+
#
19+
# qtdragon embeds a QWebEngineView (Chromium). Under offscreen + xvfb
20+
# with no GPU and no user namespaces in the CI runner sandbox,
21+
# QtWebEngine racy-crashes during browser-process spawn. Disable the
22+
# Chromium sandbox and force single-process + software rendering so
23+
# the renderer runs in the same process as Qt with no GPU thread.
1824
set -u
1925

2026
LIB_DIR="$(cd "$(dirname "$0")/../_lib" && pwd)"
@@ -28,6 +34,8 @@ sed -i 's|^LOG_FILE = qtdragon\.log$|LOG_FILE = ~/qtdragon.log|' \
2834

2935
export LINUXCNC_OPENGL_PLATFORM=offscreen
3036
export QT_QPA_PLATFORM=offscreen
37+
export QTWEBENGINE_DISABLE_SANDBOX=1
38+
export QTWEBENGINE_CHROMIUM_FLAGS="--no-sandbox --disable-gpu --disable-software-rasterizer --single-process --no-zygote"
3139

3240
exec "$LIB_DIR/run-gui.sh" "$WORK_DIR/qtdragon_metric.ini" \
3341
--run-program "$LIB_DIR/smoke.ngc" --expect-delta-mm 1,1,0

0 commit comments

Comments
 (0)