A clear and concise description of what the bug is.
Steps to reproduce the behavior, please provide code snippets or a repository:
`<--- JS stacktrace --->
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 00007FF7885D094F napi_wrap+124431
2: 00007FF788572696 v8::base::CPU::has_sse+34502
3: 00007FF788573356 v8::base::CPU::has_sse+37766
4: 00007FF788D76F4E v8::Isolate::ReportExternalAllocationLimitReached+94
5: 00007FF788D5EF91 v8::SharedArrayBuffer::Externalize+833
6: 00007FF788C2C85C v8::internal::Heap::EphemeronKeyWriteBarrierFromCode+1436
7: 00007FF788C37C00 v8::internal::Heap::ProtectUnprotectedMemoryChunks+1312
8: 00007FF788C34734 v8::internal::Heap::PageFlagsAreConsistent+3204
9: 00007FF788C29FC3 v8::internal::Heap::CollectGarbage+1283
10: 00007FF788C2C9AA v8::internal::Heap::EphemeronKeyWriteBarrierFromCode+1770
11: 00007FF788C23053 v8::base::CPU::has_vfp3+467
12: 00007FF78851E73C v8::internal::wasm::SignatureMap::Freeze+120892
13: 00007FF78851D6E0 v8::internal::wasm::SignatureMap::Freeze+116704
14: 00007FF788619AAB uv_async_send+331
15: 00007FF78861924C uv_loop_init+1212
16: 00007FF788619414 uv_run+244
17: 00007FF78853B892 EVP_CIPHER_CTX_buf_noconst+30946
18: 00007FF788599263 node::Start+275
19: 00007FF78845666C RC4_options+339308
20: 00007FF789255D58 v8::internal::SetupIsolateDelegate::SetupHeap+1301368
21: 00007FF94D627BD4 BaseThreadInitThunk+20
22: 00007FF94D9ACED1 RtlUserThreadStart+33
error Command failed with exit code 134.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.`
With 4gb for node options, any code change result in the same error.
I was able to run this example without the above error. I think this is likely an issue specific to your machine. I'd instead search on Stackoverflow for possible solutions or maybe ask there.
I run in two pc with same version of SO and node and gets the error.
OS build: 18362.474
It is likely related to this:
https://github.com/zeit/next.js/issues/7929
https://github.com/zeit/now/issues/3307
Are you perhaps requesting a resource that does not exist (i.e. something that would normally be a 404)? There seems to be a problem in the current version of now/next that in the scenario causes max CPU and memory leaks.
If you are using now
the easiest fix the time being is to create the deprecated static
directory.
Hi, are you still encountering this on the latest canary
of Next.js v9.1.4-canary.8
?
As mentioned above, I'm also not able to reproduce this on Windows 10 Pro (build 17763.864) or Mac OS X Mojave 10.14.6
I switch to manjaro Linux and not have the problem with same files, but I can confirm this issue is related to issues zeit 3307 .
Can close this.
Closing in favor of https://github.com/zeit/now/issues/3307 as mentioned above
I have the same issue, my reason is that there are too many routes, just reduce the route.
In my case, it was a pretty stupid mistake.
I had this layout component which sets the header and sidebar component and returns with its children in the main section.
I don't know what happened but I called the layout component inside the layout component resulting in a recursive layout call which hanged my laptop 3 times :p
(Just wanted to add that for beginners...)
I switch to manjaro Linux and not have the problem with same files, but I can confirm this issue is related to issues zeit 3307 .
Can close this.
I'm running manjaro Linux too, high five!
But seeing this issue
Most helpful comment
In my case, it was a pretty stupid mistake.
I had this layout component which sets the header and sidebar component and returns with its children in the main section.
I don't know what happened but I called the layout component inside the layout component resulting in a recursive layout call which hanged my laptop 3 times :p
(Just wanted to add that for beginners...)