NixOS / nixos-homepage

Sources for nixos.org
https://nixos.org
285 stars 305 forks source link

Contributing: astro dev - out of memory #1487

Open hsjobeki opened 2 days ago

hsjobeki commented 2 days ago

Following the getting started instructions from the readme seemed obivous.

To run local development instance follow this steps to start a local server

    $ git clone git@github.com:NixOS/nixos-homepage.git
    $ cd nixos-homepage
    $ nix-shell
    [nix-shell]$ npm install
    [nix-shell]$ npm run dev

It seemed to work. Astro prints the local url and port, where the site should be available:

 astro  v4.11.0 ready in 512 ms

┃ Local    http://localhost:4321/
┃ Network  use --host to expose

Visiting the site; after ~2 minutes of nothing rednering in the browser. My bash console prints this error.

13:15:16 [astro-icon] Loaded icons from mdi, simple-icons
13:15:42 watching for file changes...
13:15:43 [200] /community 17357ms

<--- Last few GCs --->

[487742:0x1f364b70]    69848 ms: Scavenge 1892.1 (1998.2) -> 1878.5 (1998.2) MB, 4.04 / 0.01 ms  (average mu = 0.702, current mu = 0.688) allocation failure; 
[487742:0x1f364b70]    69887 ms: Scavenge 1893.1 (1998.2) -> 1878.9 (1998.5) MB, 4.20 / 0.00 ms  (average mu = 0.702, current mu = 0.688) allocation failure; 
[487742:0x1f364b70]    72213 ms: Mark-Compact 2122.4 (2226.8) -> 2056.7 (2214.8) MB, 1315.42 / 0.18 ms  (average mu = 0.683, current mu = 0.671) allocation failure; scavenge might not succeed

<--- JS stacktrace --->

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----

 1: 0xaae84b node::OOMErrorHandler(char const*, v8::OOMDetails const&) [node]
 2: 0xe332f0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [node]
 3: 0xe336c4 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [node]
 4: 0x1052407  [node]
 5: 0x106a579 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
 6: 0x1044257 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
 7: 0x1044e94 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
 8: 0x10240f4 v8::internal::Factory::AllocateRaw(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [node]
 9: 0x1016a13 v8::internal::FactoryBase<v8::internal::Factory>::NewRawOneByteString(int, v8::internal::AllocationType) [node]
10: 0x117f6e7 v8::internal::JsonParser<unsigned short>::MakeString(v8::internal::JsonString const&, v8::internal::Handle<v8::internal::String>) [node]
11: 0x11854d0  [node]
12: 0x11878df v8::internal::JsonParser<unsigned short>::ParseJson(v8::internal::Handle<v8::internal::Object>) [node]
13: 0xec782b v8::internal::Builtin_JsonParse(int, unsigned long*, v8::internal::Isolate*) [node]
14: 0x189fdf6  [node]
thilobillerbeck commented 1 day ago

This is odd, never experienced this before. Could you specify which system you are running this on?