openclaw - 💡(How to fix) Fix [Bug] Event loop freeze (9+ min) + Discord heartbeat timeout + local embeddings regression [2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#75577Fetched 2026-05-02 05:32:59
View on GitHub
Comments
2
Participants
3
Timeline
11
Reactions
2
Timeline (top)
mentioned ×3subscribed ×3commented ×2cross-referenced ×2

Error Message

  • Error: Gateway heartbeat ACK timeout

Fix Action

Workaround

Downgrading to v2026.4.26 confirmed as working. OPENCLAW_DIRTY_DISCOVERY_CACHE=1 workaround not yet tested.

Code Example

{
  "eventLoop": {
    "degraded": true,
    "reasons": ["event_loop_delay", "event_loop_utilization", "cpu"],
    "delayMaxMs": 566398,
    "utilization": 0.973
  }
}

---

first run:  core-plugin-tools: 11965ms, system-prompt: 143488ms, total: 170551ms
second run: core-plugin-tools: 22732ms (grows!), system-prompt: 51513ms, total: 92050ms
RAW_BUFFERClick to expand / collapse

Bug Description

Since upgrading from v2026.4.26 (which was stable for weeks) to v2026.4.29, the gateway experiences extreme event loop blocking that causes cascading channel failures.

Environment

  • WSL2 on Windows, Linux 6.6, node 22.22.2, 11GB RAM
  • Gateway v2026.4.29 running as systemd service
  • 116 bundled plugins loaded
  • Local node-llama-cpp embeddings with GGUF model for memory search
  • Two Discord accounts, two Telegram accounts

Symptoms

1. Event loop freeze Diagnostic endpoint /readyz shows:

{
  "eventLoop": {
    "degraded": true,
    "reasons": ["event_loop_delay", "event_loop_utilization", "cpu"],
    "delayMaxMs": 566398,
    "utilization": 0.973
  }
}

eventLoopDelayMaxMs of 566,398ms (9.4 minutes) — event loop completely frozen.

2. Discord failures

  • Gateway heartbeat ACK timeout — both bots drop and reconnect in loops
  • Bots appear online in Discord but do not respond to any messages
  • Discord API calls timing out: /users/@me at 21+ seconds
  • Error: Gateway heartbeat ACK timeout

3. Telegram failures

  • getUpdates polling stalls for 590+ seconds
  • Multiple restart cycles with [diag] polling cycle finished reason=polling stall detected

4. Per-turn plugin re-evaluation Embedded run traces show every message triggers full plugin reload:

first run:  core-plugin-tools: 11965ms, system-prompt: 143488ms, total: 170551ms
second run: core-plugin-tools: 22732ms (grows!), system-prompt: 51513ms, total: 92050ms

system-prompt taking 143 seconds on first run — context assembly blocked by plugin re-evaluation.

Regression Timeline

  • v2026.4.26: stable — no issues with CPU, memory, or gateway
  • v2026.4.27: runtime-deps packaging bugs (node-llama-cpp missing, sqlite-vec missing) — fixed with manual copy workaround
  • v2026.4.29: fresh upgrade — regression to event loop blocking

Comparison to Existing Issues

  • Issue #75512 (per-turn plugin re-evaluation) matches our traces exactly, but our case involves local embeddings making it worse
  • Issue #75516 (stuck session CPU regression) reported 22s max — our evidence shows 9+ minute freeze is possible
  • Issue #74922 (ackReaction/TLS) — our Discord failures may share the same underlying cause

What might be unique to our setup

The combination of:

  1. WSL2 without GPU (node-llama-cpp falls back to no-GPU mode, CPU-saturated)
  2. Local memory embeddings always active
  3. 116 bundled plugins

May amplify the per-turn plugin re-evaluation issue beyond what other reporters are seeing.

Workaround

Downgrading to v2026.4.26 confirmed as working. OPENCLAW_DIRTY_DISCOVERY_CACHE=1 workaround not yet tested.

extent analysis

TL;DR

Downgrade to v2026.4.26 to immediately resolve the event loop blocking issue.

Guidance

  • Verify that the issue is indeed caused by the upgrade to v2026.4.29 by checking the diagnostic endpoint /readyz for event loop degradation.
  • Test the OPENCLAW_DIRTY_DISCOVERY_CACHE=1 workaround to see if it mitigates the issue without downgrading.
  • Investigate the per-turn plugin re-evaluation issue (Issue #75512) and its interaction with local memory embeddings, as this may be a key factor in the regression.
  • Consider reducing the number of bundled plugins (currently 116) to see if this alleviates the event loop blocking.

Example

No code snippet is provided as the issue is more related to configuration and versioning.

Notes

The combination of WSL2 without GPU, local memory embeddings, and a large number of bundled plugins may be exacerbating the issue. Further investigation into these factors is needed to find a long-term solution.

Recommendation

Apply the workaround by downgrading to v2026.4.26, as this has been confirmed to resolve the issue. This will allow for temporary stability while further investigation into the root cause and a permanent fix can be pursued.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [Bug] Event loop freeze (9+ min) + Discord heartbeat timeout + local embeddings regression [2 comments, 3 participants]