vscode: "Allocation failed - JavaScript heap out of memory" for large dataset
Author: bkmeneguelloCreated Oct 11, 2019Updated Sep 17, 2026
Labelshelp wanted
Besides a lot of RAM available this error happens when I try to open a large CSV file (803MB).
Console shows:
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
1: 0x562d86afdd15 [/usr/share/code/code]
2: 0x562d86afde8a [/usr/share/code/code]
3: 0x562d837914f1 [/usr/share/code/code]
4: 0x562d8383e6f2 [/usr/share/code/code]
5: 0x562d83846d04 [/usr/share/code/code]
6: 0x562d83406f4c v8::internal::Factory::NewRawOneByteString(int, v8::internal::PretenureFlag) [/usr/share/code/code]
7: 0x562d83866c64 [/usr/share/code/code]
8: 0x562d837afe89 v8::String::Utf8Length(v8::Isolate*) const [/usr/share/code/code]
9: 0x562d86b283ee [/usr/share/code/code]
10: 0x562d83155781 [/usr/share/code/code]
11: 0x562d839ffd0e [/usr/share/code/code]Source: microsoft/SandDance