FTNN CEF GPU flag tests — results (2026-11-16 02:27–02:42 HKT, old ARM 213.35.112.20)
================================================================
Baseline: FTNN v16.39 x86_64 .deb via box64 v0.4.5, Xvfb :1 (1600x1080) and :99 (1408x900).
Old cef_main.log: 137,398 "GPU process has crashed" lines, 137,398 "launch failed".

CONFIG / ENV CHECK (no CEF flag mechanism found):
- qt.conf = Qt paths only (linuxdeployqt). license.txt = CEF licence attribution only.
- No cef/chromium/disable-gpu in any .json/.conf/.ini under /tmp/ftnn/opt/FTNN/ or FTNN home
  (except manifest hashes / language strings). No QTWEBENGINE (FTNN uses own libcef.so).
- FTNN --help = no output; strings finds no gpu flags in FTNN binary (A2 confirmed).

TEST 1 — FEASIBILITY, --test-inject-flag, :1, 80s (02:30:26):
- FTNN cmdline: ./FTNN --test-inject-flag (PID 1461511, alive)
- FTWebRender: 4 zygotes + 1 utility; "test-inject-flag" count in subprocess cmdlines = 0
- cef_main.log: 0 lines, crash=0, launchfail=0, unusable=0; "test-inject-flag"=0, "unknown flag"=0
- Screenshot /tmp/ftnn-test-feas.png 416,009 B — Log In screen confirmed visually; xlsclients FTNN present
- CONCLUSION: unknown/arbitrary flags are NOT propagated to CEF subprocesses.

TEST 01 (from killed 10-test script) — COMBO --disable-gpu --disable-gpu-compositing
--disable-gpu-sandbox --no-sandbox, :1, ~64s (02:27:26):
- FTNN cmdline shows all 4 flags (PID 1455768).
- FTNN GPU process cmdline: FTWebRender --type=gpu-process --disable-gpu-sandbox --no-sandbox
  ... --use-gl=disabled ...
- cef_main.log: 0 lines, crash=0, launchfail=0.
- CONCLUSION: RECOGNISED Chromium switches DO reach CEF. --disable-gpu-sandbox appears
  literally; --use-gl=disabled is the downstream effect of --disable-gpu.

TEST 20 — --disable-gpu, :1, 120s sampled 60s/120s (02:33:04):
- FTNN alive, Log In screen (screenshot 416,165 B).
- cef_main.log: 0 lines, crash=0, launchfail=0, unusable=0 at 60s AND 120s.
- GPU-process sampling CONTAMINATED: matched Playwright headless_shell (PIDs 695414, 1475603),
  not FTNN. FTNN GPU state NOT captured in this test. (Measurement error — disclosed.)

TEST 21 — --disable-gpu --disable-gpu-compositing, :1, 120s (02:35:17):
- Same as test 20: 0 lines at 60s/120s, FTNN alive, Log In screen (416,126 B).
- GPU sampling same contamination as test 20.

TEST 99BASE — NO flags, :99, 180s sampled 60s/120s/180s (02:39:08):
- FTNN alive, Log In screen (screenshot 400,633 B, visually confirmed).
- FTNN GPU process (FTWebRender-restricted): NONE at 60s, 120s, 180s.
- cef_main.log: 0 lines, crash=0, launchfail=0 at all samples.

OLD LOG RE-ANALYSIS (cef_main.log.01-combo.bak, 137,398 crash lines):
- Crash lines 01:59:47–02:04:52 at ~460 lines PER SECOND (steady), first crash 73s after
  run 1397573 started (01:58:34).
- ALL 137,398 lines are from run 1397573 (:99, Log In screen ONLY, --disable-gpu via
  ftnn-run.sh). Run 1408968 (:1, owner logged in 02:12) contributed ZERO crash lines —
  cef_main.log stopped 02:04:52, before 1408968 started 02:05:06.
- REFRAMING: the 137k loop was a LOGIN-SCREEN phenomenon on :99, NOT a post-login one.
  The 1408968 post-login death was diagnosed from a log that recorded the earlier :99 run.

CONCLUSIONS:
(a) CLI flags DO reach CEF (recognised Chromium switches only). --disable-gpu-sandbox
    literal in GPU cmdline; --use-gl=disabled = --disable-gpu effect. Unknown flags
    are not propagated (normal Chromium behaviour, not a FTNN defect).
(b) Whether --disable-gpu stops the crash loop: INCONCLUSIVE from login-screen testing.
    In all 5 login-screen runs (:1 and :99, with and without flags) cef_main.log stayed
    0 lines and no FTNN GPU process spawned — including the NO-FLAG baseline. So "0 lines"
    cannot be attributed to --disable-gpu. CEF GPU process does not spawn at the Log In
    screen in current conditions (Log In screen is pure Qt); it likely only initialises
    when the main interface loads post-login. Definitive test needs owner login.
(c) Path B (LD_PRELOAD interpose CefInitialize): NOT built/tested. Parent condition was
    "if flags do NOT reach CEF" — they do, so condition not met. A2 already confirmed
    feasibility (libcef.so 317 MB, dynamic library). Recommend as next step only if CLI
    --disable-gpu proves insufficient post-login.

PROCESS NOTES:
- pkill self-kill incident: inline SSH command had bare "FTNN" in echo strings + pkill -f
  '[F]TNN' in same bash -c → pkill killed own shell (exit 255). Recovered via script files
  and PID kills. Rule: never put literal pattern + pkill in one command.
- Step 2 GPU sampling error: unqualified "type=gpu-process" grep matched Playwright
  headless Chromium. Fixed in :99 baseline by restricting to FTWebRender.
- Final state: FTNN dead (clean); x.js (693552) + m.js (695238) untouched and running;
  Xvfb :1 + :99 running. No login performed. No FTNN files modified.
