Skip to content

[Bug]: Agent UI (Electron) crashes in GPU-less environments (Windows Sandbox / VM) — child-process-gone type=GPU #1800

Description

@kovtcharov

What happens: Agent UI desktop app crashes on launch in GPU-less environments. After the hub fix (#1698) it gets past catalog load, shows "Loading ML libraries" / "Loading catalog…", then the Electron GPU child process crashes and the whole app exits:

GAIA crashed
Error: child-process-gone: type=GPU reason=crashed
  at EventEmitter.<anonymous> (C:\Users\WDAGUtilityAccount\AppData\Local\Programs\gaia-desktop\resources\app...:11)
  at EventEmitter.emit (node:events:509:28)

Environment: Windows Sandbox (path shows WDAGUtilityAccount) — no GPU / hardware acceleration. Repro class: any GPU-less env (Windows Sandbox, bare VM, some RDP sessions). Electron ^42.2.0.

Root cause: src/gaia/apps/webui/main.cjs handles only Linux/Wayland GPU quirks and backend crashes — there's no app.disableHardwareAcceleration(), no GPU child-process-gone handler, and no software-render fallback. So a GPU-process crash on Windows is fatal.

Fix options:

  1. app.disableHardwareAcceleration() before app.whenReady() — one line, robust everywhere, negligible perf cost for a chat UI. Recommended.
  2. Handle GPU child-process-gone and relaunch with --disable-gpu — keeps GPU accel for normal users, more code.

Tests: manual repro in Windows Sandbox (no GPU) → app launches and renders. Reporter (@PCAssistSoftware) can retest on real hardware tomorrow to confirm it's GPU-specific.

Split from #1697 (the hub-unreachable error there is fixed in v0.21.2). Reported by @PCAssistSoftware.

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-uiAgent UI changesbugSomething isn't workingguiGUI / desktop application

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions