Skip to content

BUG: Severe OOM with qwen --resume and Escape key broken #4815

@zzhenyao

Description

@zzhenyao

What happened?

Severe out-of-memory (OOM) issue. The Escape key becomes completely non-functional (100% reproducible). Using qwen --resume to restore the session works initially, but OOM reappears within ~10 minutes.

This is the crash output:

<--- Last few GCs --->

[3445683:0x27797000]   931701 ms: Mark-Compact 8040.7 (8229.1) -> 8025.0 (8229.3) MB, pooled: 9 MB, 1158.22 / 2.55 ms  (average mu = 0.101, current mu = 0.061) allocation failure; scavenge might not succeed
[3445683:0x27797000]   932914 ms: Mark-Compact 8041.4 (8229.3) -> 8025.9 (8230.6) MB, pooled: 8 MB, 1164.61 / 2.03 ms  (average mu = 0.071, current mu = 0.040) allocation failure; scavenge might not succeed


<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----
 1: 0xe42d60 node::OOMErrorHandler(char const*, v8::OOMDetails const&) [/usr/bin/node]
 2: 0x121ded0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [/usr/bin/node]
 3: 0x121e1a7 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [/usr/bin/node]
 4: 0x144d015  [/usr/bin/node]
 5: 0x144d043  [/usr/bin/node]
 6: 0x146611a  [/usr/bin/node]
 7: 0x14692e8  [/usr/bin/node]
 8: 0x1cd07a1  [/usr/bin/node]

What did you expect to happen?

  • Memory usage should remain stable and not grow unbounded
  • After a session is resumed via qwen --resume, it should stay functional without hitting OOM again within minutes
  • The Escape key should remain functional after sending a message

Client information

Qwen Code: 0.17.1
Runtime: Node.js v22.22.2 / npm 10.9.7
LSP: disabled
OS: linux x64 (6.8.0-110-generic)
Auth: API Key - openai
Session ID: fccab10a-3943-4282-a2ef-736e3bac19f3
Sandbox: no sandbox
Proxy: no proxy
Memory Usage: 8.16 GB

Login information

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    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