openclaw - 💡(How to fix) Fix [Bug]: MiniMax fetch blocks Node.js event loop for ~135s → watchdog SIGTERM (regression in v4.27) [1 comments, 2 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#75269Fetched 2026-05-01 05:35:59
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
2
Timeline (top)
closed ×1commented ×1cross-referenced ×1

Root Cause

二重根因 (dual root cause):

  1. MiniMax VLM fetch 无 timeout → upstream #54142(已在 v4.29 修复)
  2. MiniMax provider 在主线程执行 CPU 密集同步操作 → upstream #75269(待修复)
  • eventLoopDelayMaxMs=135358.6 表明 MiniMax provider 在主线程阻塞了 135 秒

Fix Action

Workaround

暂用 v4.26,等待 upstream 确认 #75269 修复后再升级。

RAW_BUFFERClick to expand / collapse

Environment

  • OpenClaw version: v2026.4.27 (regression; v2026.4.26 unaffected)
  • OS: Ubuntu 24.04 LTS, Linux kernel 6.17
  • Node.js: default bundled
  • Primary model: minimax/MiniMax-M2.7
  • Deployment: systemd service, loopback-only, Telegram channel

Symptom

After upgrading from v4.26 → v4.27, the gateway enters a loop where:

  1. Telegram shows a typing indicator
  2. No response is ever delivered
  3. The watchdog detects a liveness failure and sends SIGTERM
  4. systemd restarts the gateway (Restart=always)
  5. Repeat indefinitely

Log Signature

eventLoopDelayMaxMs=135358.6ms (>30s threshold × 4)

Root Cause

二重根因 (dual root cause):

  1. MiniMax VLM fetch 无 timeout → upstream #54142(已在 v4.29 修复)
  2. MiniMax provider 在主线程执行 CPU 密集同步操作 → upstream #75269(待修复)
  • eventLoopDelayMaxMs=135358.6 表明 MiniMax provider 在主线程阻塞了 135 秒

Regression Note

  • v4.27 从未正式发布(因 Telegram typing 无响应退回 v4.26)
  • v4.29 的 #54142 修复了 fetch timeout,#75269 仍未修复主线程 CPU 阻塞
  • 相关 issue:#74728

Workaround

暂用 v4.26,等待 upstream 确认 #75269 修复后再升级。

extent analysis

TL;DR

The most likely fix involves addressing the synchronous operation in the MiniMax provider by moving it off the main thread and implementing a timeout for the fetch call.

Guidance

  • Identify and refactor the CPU-bound synchronous operation in the MiniMax provider to run on a worker thread or use an asynchronous approach to prevent blocking the event loop.
  • Implement AbortSignal.timeout() for the fetch call at src/agents/minimax-vlm.ts:81 to prevent indefinite waits when the MiniMax API is unresponsive.
  • Review related issues (#54142 and #74728) for additional context and potential fixes.
  • Consider testing with a smaller input or a mock API to isolate the issue and verify the fix.

Example

// Example of using AbortSignal.timeout() for the fetch call
const controller = new AbortController();
const signal = controller.signal;
const timeoutId = setTimeout(() => controller.abort(), 30000); // 30-second timeout

fetch('/v1/coding_plan/vlm', { signal })
  .then(response => {
    clearTimeout(timeoutId);
    // Process the response
  })
  .catch(error => {
    if (error.name === 'AbortError') {
      console.log('Fetch timed out');
    } else {
      console.error('Fetch error:', error);
    }
  });

Notes

The provided workaround of reverting to v2026.4.26 may not be a long-term solution, and addressing the root causes (Issue A and Issue B) is necessary for a stable fix.

Recommendation

Apply a workaround by implementing AbortSignal.timeout() for the fetch call and refactoring the synchronous operation in the MiniMax provider to run asynchronously, as this addresses both identified issues and prevents event loop blocking.

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