Claude Desktop on Linux froze every two days because of 27 bytes nobody reads
Claude Desktop on Linux froze every couple of days, and the logs stayed silent. The culprit is a small thing: the app sends a telemetry request to the server, but it never reads the 27-byte response. Chromium keeps a file descriptor open for each such response, a "slot" in the system. The slots pile up until the renderer process runs out, and the window freezes. If your Electron app sends fire-and-forget requests, read or cancel the response body.
AI-processed from Habr AI; edited by Hamidun News
Imagine a coat check where every coat gets a ticket, but nobody comes to pick up their coat. The tickets run out, and new visitors get turned away. That is roughly how Claude Desktop on Linux was dying for the author of a Habr write-up: every few days the interface turned into grey placeholders or stopped responding to clicks, and the logs were empty. Tracking down the cause took two months and a 1.5 TiB memory dump.
In short: the app sends a telemetry request, a service message to the server. The server replies with just 27 bytes, and the app never reads that reply. Chromium, which Electron is built on, keeps a file descriptor open for each such reply. That is the "ticket": a numeric identifier the process uses to work with a file, socket, or shared memory region. A renderer process has a finite number of them. When they run out, the process stops receiving responses and hangs.
Two months in the dark
The first warning sign was the machine itself: at the moment of failure, the load average hit 46, and running uptime took 20 seconds. The disk was clogged by systemd-coredump. When a renderer process crashes, the kernel tries to write its entire memory to disk. In five minutes the system saved 92.4 GiB, hit a timeout, and left not a single file behind.
The author then patched the app step by step. He capped dump sizes at 4 GiB and redirected stdout and stderr from /dev/null into the system journal. After 11 days the log showed "Crashing because hung" and nothing else. After 13 days the window quietly died for 18 minutes with no entries at all. Later, the renderer process exited with the reason "clean-exit" and code 0, meaning Chromium terminated it as if it were a normal shutdown, and the app did not reload the window. The author made the patch reload it, but the one-minute freezes remained.
Only an eight-day wait helped. The app, which had run for 35 hours, froze, but the renderer process stayed alive. The author captured a dump manually with gcore. The file was sparse: logically 1.5 TiB, physically about 1.5 GiB. Almost all of that size is not memory but address space that Chromium reserves at startup. The app runs on Electron 44, which means Chrome 152. The V8 sandbox alone takes 1 TiB, plus guard regions of 352 GiB, two 16 GiB PartitionAlloc allocator pools, and another 16 GiB for the Oilpan garbage collector.
Why the dump is so huge and so awkward
V8 asks the kernel to exclude the sandbox from dumps via MADV_DONTDUMP. In the browser process this works, and the sandbox carries the dd (don't dump) flag. In the renderer process the call is forbidden: the seccomp policy allows only six madvise variants, and MADV_DONTDUMP is not among them. As a result, the kernel tries to write out terabytes of zeros. Even a plain rg search across two dumps took almost eight minutes, nearly all of it spent reading empty regions.
Where the leak is and what to do
In the write-up, the author traces the path of the response: the presence request, the response bodies with a no-store header, and finally the descriptor limit. The conclusion matches the TL;DR. The app does not read the 27-byte response, and Chromium keeps holding a resource for it until the process runs out of descriptors. Chromium, meanwhile, says everything works as designed. Anthropic's bot closed the author's bug report as "not related to Claude Code." As of publication, there is no confirmed fix.
What developers of Electron apps and any long-running processes should take from this:
- If you send fire-and-forget requests, still read or cancel the response body. Even 27 bytes can hold an expensive system resource.
- Monitor the number of open file descriptors per process. If it grows over hours and days, a freeze is only a matter of time.
- Log normal process exits, including "clean-exit" with code 0. Without that, a crash looks like silence.
- For rare freezes, capture a dump manually while the process is still alive. An automatic dump may fail because of its size.
An honest caveat: this is one user's investigation on one build (Electron 44, Chrome 152). Whose responsibility this is remains a matter of dispute. But the lesson is universal: a single unread telemetry response can hang, within a couple of days, an app running on a developer's laptop.
- Nov 28, 2026Kimi K3.1 Pro Leads Terminal-Bench, But Scores Just 6.3% on Real-World GDPx Tasks
- Nov 28, 2026Claude charges 54% more than GPT for Russian text at the same list price
- Nov 28, 2026Third Claude Code Departure This Fall: Tarik Shihipar Joins OpenAI
- Nov 28, 2026Experts Speculate Whether AI Has Learned to Break Encryption: The Threat Could Arrive in Weeks
Key Questions Answered
What are the key details on Two months in the dark?
The first warning sign was the machine itself: at the moment of failure, the load average hit 46, and running uptime took 20 seconds. The disk was clogged by systemd-coredump. When a renderer process crashes, the kernel tries to write its entire memory to disk. In five minutes the system saved 92.4 GiB, hit a timeout, and left not a single file behind. The author then patched the app step by step. He capped dump sizes at 4 GiB and redirected stdout and stderr from /dev/null into the system journal.
Why the dump is so huge and so awkward?
V8 asks the kernel to exclude the sandbox from dumps via MADV_DONTDUMP. In the browser process this works, and the sandbox carries the dd (don't dump) flag. In the renderer process the call is forbidden: the seccomp policy allows only six madvise variants, and MADV_DONTDUMP is not among them. As a result, the kernel tries to write out terabytes of zeros. Even a plain rg search across two dumps took almost eight minutes, nearly all of it spent reading empty regions.
Where the leak is and what to do?
In the write-up, the author traces the path of the response: the presence request, the response bodies with a no-store header, and finally the descriptor limit. The conclusion matches the TL;DR. The app does not read the 27-byte response, and Chromium keeps holding a resource for it until the process runs out of descriptors. Chromium, meanwhile, says everything works as designed. Anthropic's bot closed the author's bug report as "not related to Claude Code." As of publication, there is no confirmed fix.
Test Frontier LLMs & Autonomous Agents in One Workspace
Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.
Daily 60-sec AI Voice Brief + Weekly Production AI Agent Playbook
Listen to a 60-second AI news brief every morning and get a weekly hands-on playbook for shipping AI agents to production — tools, MCP servers and patterns that work. Curated by Jemal Hamidun, Head of AI at Alpina Digital.
