Skip to content

[pull] main from rmyndharis:main#3

Merged
pull[bot] merged 3 commits into
m7fz7:mainfrom
rmyndharis:main
Jul 7, 2026
Merged

[pull] main from rmyndharis:main#3
pull[bot] merged 3 commits into
m7fz7:mainfrom
rmyndharis:main

Conversation

@pull

@pull pull Bot commented Jul 7, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

maplerichie and others added 3 commits July 7, 2026 07:39
…652)

The bundled compose files shipped pids_limit: 512 since the #243
hardening pass, chosen as a fork-bomb guard without accounting for
Chromium's multi-process model. whatsapp-web.js runs a full Chromium
instance per session (browser + renderer + GPU + zygote + utilities)
and WhatsApp Web is itself process-heavy (service workers, iframes),
so ~4 concurrent sessions already approach 512 — the next session's
Chromium gets killed mid-spawn when a fork() returns EAGAIN, surfacing
in the API as `Failed to launch the browser process: Code: null`.

Parameterize the ceiling via OPENWA_PIDS_LIMIT (default 2048, fits
~8-10 sessions with startup-spike headroom) and document it. The limit
is a cgroup pids.max ceiling, not an allocation, so raising it is a
no-op for light containers — Baileys (no Chromium, single-process)
uses only a handful of PIDs regardless. The fork-bomb guard stays
finite; -1 (unlimited) is explicitly discouraged.

Also adds a troubleshooting entry distinguishing the three causes of
`Code: null` (PID exhaustion vs OOM-kill vs the XDG/crashpad crash
already fixed in #254), since the dbus/crashpad noise in the log is
non-fatal and the real cause isn't visible without docker stats /
dmesg.
@pull pull Bot locked and limited conversation to collaborators Jul 7, 2026
@pull pull Bot added the ⤵️ pull label Jul 7, 2026
@pull pull Bot merged commit 5b074ae into m7fz7:main Jul 7, 2026
4 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants