You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Browser control service hangs for 15s and leaves zombies on startup failure #8611
When the browser control service spawns Chromium, it enters a while loop waiting for the CDP port to become reachable. If Chromium exits immediately (e.g. due to port conflict, missing libraries, or profile lock), the loop continues for the full 15 seconds before throwing a timeout error.
Additionally, because the Gateway often runs as PID 1 in Docker containers, the dead Chromium process becomes a zombie (<defunct>) because the parent process does not explicitly reap it (or is busy waiting in the loop).
Symptoms
browser start hangs for 15 seconds then fails with "Can't reach the openclaw browser control service".
ps aux shows [chromium] <defunct> processes accumulating.
Root Cause
Logic: The startup loop in chrome.js checks isChromeReachable but does not check proc.exitCode or listen for the exit event. It waits blindly.
Infrastructure: Node.js as PID 1 does not handle zombie reaping of adopted children (orphans).
Proposed Fix
Modify chrome.js to race the wait loop against proc.on('exit'). If the process exits, reject immediately with the exit code.
Recommend tini (--init) in Docker documentation to handle zombie reaping at the system level.
Activity
sebslight commentedon Feb 4, 2026
Duplicate of #3941