Repository navigation
Closed
Labels
v8 engineIssues and PRs related to the V8 dependency.Issues and PRs related to the V8 dependency.
Description
- Version: 6.4.0
- Platform: Linux ubuntu 3.13.0-91-generic src: redo unaligned access workaround #138-Ubuntu SMP Fri Jun 24 17:00:34 UTC 2016 * x86_64 x86_64 x86_64 GNU/Linux
When I run a (fairly heavy) gulp build including babel, browserify, phantomjs, uglify etc. it fails in node 6.4.0, but not in 4.5.0, with the below.
<--- Last few GCs --->
137934 ms: Mark-sweep 921.7 (1202.0) -> 706.9 (1166.1) MB, 443.7 / 0 ms [allocation failure] [GC in old space requested].
138245 ms: Mark-sweep 706.9 (1166.1) -> 691.4 (1128.1) MB, 311.6 / 0 ms [allocation failure] [GC in old space requested].
138636 ms: Mark-sweep 691.4 (1128.1) -> 688.1 (1078.1) MB, 390.3 / 0 ms [last resort gc].
138916 ms: Mark-sweep 688.1 (1078.1) -> 688.0 (1059.1) MB, 280.2 / 0 ms [last resort gc].
<--- JS stacktrace --->
==== JS stack trace =========================================
Security context: 0x3e3b27c9e31 <JS Object>
1: SparseJoinWithSeparatorJS(aka SparseJoinWithSeparatorJS) [native array.js:~84] [pc=0xdefd17dfdf0] (this=0x3e3b2704189 <undefined>,w=0x1ec3efe5ba69 <JS Array[7010]>,L=7010,M=0x3e3b27b49e9 <JS Function ConvertToString (SharedFunctionInfo 0x3e3b274ef79)>,N=0x194739c58b59 <String[4]\: ,\n >)
2: Join(aka Join) [native array.js:143] [pc=0xdefd1894fb6] (this=0x3e3b2704189 <undefined>,w=0x1e...
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
1: node::Abort() [gulp]
2: 0xfb7bfc [gulp]
3: v8::Utils::ReportApiFailure(char const*, char const*) [gulp]
4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [gulp]
5: v8::internal::Factory::NewRawTwoByteString(int, v8::internal::PretenureFlag) [gulp]
6: v8::internal::Runtime_SparseJoinWithSeparator(int, v8::internal::Object**, v8::internal::Isolate*) [gulp]
7: 0xdefcd40961b
I have tried using both --max-old-space-size=8192 & -–nouse-idle-notification arguments but it has not made a difference.
Metadata
Metadata
Assignees
Labels
v8 engineIssues and PRs related to the V8 dependency.Issues and PRs related to the V8 dependency.
Activity
bnoordhuis commentedon Aug 18, 2016
Is there reason to believe this is an issue with node.js core and not gulp? The stack trace suggests it's simply trying to Array.prototype.join() an array that is too big.
bnoordhuis commentedon Aug 18, 2016
For completeness,
--max-old-space-size=8192does not affect the maximum length of a JS string (which is 256 MB),-–nouse-idle-notificationis a no-op.SamMorrowDrums commentedon Aug 18, 2016
Thanks, I'll have to dig into which array this is. Im interested to know
why it's working in one node version and not another though, seems a little
odd.
On Thu, 18 Aug 2016, 18:14 Ben Noordhuis, notifications@github.com wrote:
bnoordhuis commentedon Oct 7, 2016
I'll go ahead and close out this issue on the assumption that it's working now and probably wasn't a node.js core issue to begin with. Let me know if I should reopen.
nihp commentedon Apr 28, 2020
I am facing the same error archived files not worked in my real device
juanita95 commentedon Jan 15, 2021
Lograron resolverlo?
khalyomede commentedon Apr 10, 2021
I would guess this is a gulp-plugin issue, but not very sure. Here is console output before the error:
This is my
gulpfile.tsfile:The first few "listenings" do not cause this issue, I have to save my files like a dozens of time before seeing this error.
ricardoprato commentedon Jan 23, 2023
I am getting this error when running npm run dev.
My distro
AamenaSaiyed commentedon Jun 28, 2023
I have same issue in my react native app
Please help me to resolve this
`<--- Last few GCs --->
[15690:0x7fa908c00000] 1252298 ms: Mark-sweep 4037.7 (4142.2) -> 4034.9 (4140.8) MB, 3001.4 / 0.1 ms (average mu = 0.309, current mu = 0.006) allocation failure scavenge might not succeed
[15690:0x7fa908c00000] 1253777 ms: Mark-sweep 4040.8 (4143.3) -> 4039.7 (4145.5) MB, 1468.2 / 0.0 ms (average mu = 0.216, current mu = 0.007) allocation failure scavenge might not succeed
<--- JS stacktrace --->
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
1: 0x108a39665 node::Abort() (.cold.1) [/Users/imac/.nvm/versions/node/v16.20.0/bin/node]
2: 0x1077321c9 node::Abort() [/Users/imac/.nvm/versions/node/v16.20.0/bin/node]
3: 0x1077323ae node::OOMErrorHandler(char const*, bool) [/Users/imac/.nvm/versions/node/v16.20.0/bin/node]
4: 0x1078a71d0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/Users/imac/.nvm/versions/node/v16.20.0/bin/node]
5: 0x1078a7193 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/Users/imac/.nvm/versions/node/v16.20.0/bin/node]
6: 0x107a488e5 v8::internal::Heap::FatalProcessOutOfMemory(char const*) [/Users/imac/.nvm/versions/node/v16.20.0/bin/node]
7: 0x107a4726c v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/Users/imac/.nvm/versions/node/v16.20.0/bin/node]
8: 0x107a53b10 v8::internal::Heap::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/Users/imac/.nvm/versions/node/v16.20.0/bin/node]
9: 0x107a53b91 v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/Users/imac/.nvm/versions/node/v16.20.0/bin/node]
10: 0x107a1ac3e v8::internal::FactoryBasev8::internal::Factory::NewRawTwoByteString(int, v8::internal::AllocationType) [/Users/imac/.nvm/versions/node/v16.20.0/bin/node]
11: 0x107b5a89c v8::internal::JsonParser::MakeString(v8::internal::JsonString const&, v8::internal::Handlev8::internal::String) [/Users/imac/.nvm/versions/node/v16.20.0/bin/node]
12: 0x107b59130 v8::internal::JsonParser::ParseJsonValue() [/Users/imac/.nvm/versions/node/v16.20.0/bin/node]
13: 0x107b586e2 v8::internal::JsonParser::ParseJson() [/Users/imac/.nvm/versions/node/v16.20.0/bin/node]
14: 0x10792ff15 v8::internal::Builtin_JsonParse(int, unsigned long*, v8::internal::Isolate*) [/Users/imac/.nvm/versions/node/v16.20.0/bin/node]
15: 0x108181579 Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit [/Users/imac/.nvm/versions/node/v16.20.0/bin/node]
16: 0x10c7b113e
17: 0x10814387f Builtins_AsyncFunctionAwaitResolveClosure [/Users/imac/.nvm/versions/node/v16.20.0/bin/node]
error Command failed with signal "SIGABRT".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.`
JanaganSaravanan commentedon Jan 18, 2024
For the above error, this worked for me. NODE_OPTIONS="--max_old_space_size=4096" yarn start or NODE_OPTIONS="--max_old_space_size=4096" your_script.js.
niranjan404 commentedon Jan 20, 2024
I just installed https://www.npmjs.com/package/react-joyride and tried pushing to pipelines, getting this error. why?