RangeError: Array buffer allocation failed
- Dominant language
- JavaScript
- Stars
- 419
- Forks
- 55
- PR merge metrics
- No merged PRs in 30d
Description
rejected promise not handled within 1 second: RangeError: Array buffer allocation failed
extensionHostProcess.js:1059
stack trace: RangeError: Array buffer allocation failed
at new ArrayBuffer ()
at new Uint8Array ()
at new FastBuffer (internal/buffer.js:940:1)
at Function.alloc (buffer.js:350:10)
at new Buffer (buffer.js:263:19)
at Stream.writeByte (/buildarea/ashi/dev/git/gitlab_20201109/devcode/node_modules/seek-bzip/lib/index.js:479:23)
at Bunzip._read_bunzip (/buildarea/ashi/dev/git/gitlab_20201109/devcode/node_modules/seek-bzip/lib/index.js:435:25)
at Function.decode (/buildarea/ashi/dev/git/gitlab_20201109/devcode/node_modules/seek-bzip/lib/index.js:513:10)
at /buildarea/ashi/dev/git/gitlab_20201109/devcode/node_modules/decompress-tarbz2/index.js:18:35
at /buildarea/ashi/dev/git/gitlab_20201109/devcode/node_modules/decompress/index.js:19:43
at Array.map ()
at runPlugins (/buildarea/ashi/dev/git/gitlab_20201109/devcode/node_modules/decompress/index.js:19:34)
at extractFile (/buildarea/ashi/dev/git/gitlab_20201109/devcode/node_modules/decompress/index.js:54:46)
at /buildarea/ashi/dev/git/gitlab_20201109/devcode/node_modules/decompress/index.js:150:26
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the reported stack trace in seek-bzip/lib/index.js, then follow the call through decompress-tarbz2/index.js and decompress/index.js. Reproduce extraction of the archive that triggers the allocation failure and identify the input or code path responsible; done means the extraction no longer raises the reported RangeError and the behavior is covered by a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nodejs
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100