Skip to content

[Bug]: Desktop (Windows): after repeated renderer OOM kills, the window stays black with no recovery UI #37234

Closed

Description

@astrorehan

Area

apps/desktop

Version

0.1.9 (Windows 11 26200)

What happened

When system commit memory was nearly exhausted (other apps holding ~14 GB; commit 32.5 / 33.7 GB),
the main window's renderer was killed with reason: "oom". The app reloaded it (the loading screen
appeared), it got killed again, and after a few quick kills in a row the app stopped recreating the
renderer. The window then stayed completely black. The main process, server, and agent sessions
kept running (I could still use the app from mobile), but the desktop window had no way to recover.

From logs/renderer-history.ndjson:

time reason exitCode renderer working set
21:01:10 oom -536870904 367 MB
21:02:15 oom -536870904 291 MB
21:05:13 crashed -36861 290 MB
21:05:13 oom -536870904 died ~50 ms after dom-ready
21:05:14 oom -536870904 died ~20 ms after dom-ready
21:05:15 oom -536870904 died ~50 ms after dom-ready

After the last kill there was no renderer process left. Only the sample events kept logging,
with the last-known PID.

The renderer itself wasn't leaking (it peaked at ~450 MB). The OOM was system-wide memory
pressure, so the crash itself is expected. The bug is what happens after it.

Expected

After the renderer dies, show a "Window crashed — Reload" screen, or keep retrying with a
backoff instead of giving up and leaving a black window. Ideally, mention low system memory
when reason === "oom".

Workaround

Free memory, then quit and relaunch the app.

Related

#4816 (black conversation view, closed, no root cause given), #1686 (renderer OOM → white screen on Linux, caused by the app's own memory use)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions