RangeError: Array buffer allocation failed on Linux/Docker (oxc-parser rawTransfer)
Author: magazianCreated Sep 20, 2026Updated Sep 25, 2026
LabelsRSS bug
Routes
/ahm/news/abxw
/ahm/exhibition/xztjFull routes
/ahm/news/abxw
/ahm/exhibition/xztjRelated documentation
https://docs.rsshub.app/routes/ahm
What is expected?
The route should successfully parse script data via evaluateScriptData and return a valid RSS XML feed. It did work without any issue in local macOS environments.
What is actually happening?
When running in Linux / Docker environments on NAS containers, requests consistently fail with RangeError: Array buffer allocation failed and return a 503 error. Restarting the container or NAS does not resolve the issue and there is no container memory limits.
Deployment information
Self-hosted
Deployment information (for self-hosted)
OS: Linux/Synology NAS, Node Version: v24.21.0, Docker version 24.0.2, build 610b8d0, Git Hash: f99e982c
Additional info
Coding Agent ananlysed the root cause as below. I'm not pretty sure about this, so submit a issue first for double check.
1. The issue originates from `oxc-parser` introduced in commit `4cf4946` (#23302):
`lib/utils/parse-js.ts` currently enables:
`experimentalRawTransfer: rawTransferSupported()`
2. In Node.js >= 22, `oxc-parser`'s `experimentalRawTransfer` feature attempts to pre-allocate an `ArrayBuffer` pool larger than 4 to 6 GiB for zero-copy AST transfer.
3. While this succeeds on macOS (where Darwin's virtual memory subsystem supports unbounded memory overcommit), on Linux environments running inside Docker containers (e.g., Synology DSM, restricted cgroups, or environments without large virtual memory commit limits), the kernel/V8 allocator refuses to allocate such a large contiguous buffer, immediately throwing:
`RangeError: Array buffer allocation failed`This is not a duplicated issue
- I have searched existing issues to ensure this bug has not already been reported
Source: DIYgod/RSSHub