natemoo-re / astro-icon

Inline and sprite-based SVGs in Astro made easy!
https://astroicon.dev
Other
990 stars 57 forks source link

FATAL ERROR: Reached heap limit Allocation failed #225

Open AngeloThys opened 2 weeks ago

AngeloThys commented 2 weeks ago

What version of astro-icon are you using?

v1.1.0

Astro Info

Astro                    v4.10.2
Node                     v18.20.1
System                   Linux (x64)
Package Manager          npm
Output                   static
Adapter                  none
Integrations             astro-icon
which: no xclip in [$PATH]

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

When loading a page that contains an icon, the following happens:

astro v4.10.2 ready in 284 ms

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

17:36:44 watching for file changes... 17:36:46 [astro-icon] Loaded icons from fluent-emoji, logos, material-symbols-light

<--- Last few GCs --->

[218782:0x2eba9320] 21734 ms: Scavenge 4058.3 (4128.5) -> 4055.5 (4129.5) MB, 18.35 / 0.00 ms (average mu = 0.317, current mu = 0.145) allocation failure; [218782:0x2eba9320] 21757 ms: Scavenge 4059.5 (4129.5) -> 4057.5 (4133.3) MB, 19.57 / 0.00 ms (average mu = 0.317, current mu = 0.145) allocation failure; [218782:0x2eba9320] 21940 ms: Scavenge 4062.9 (4133.3) -> 4060.4 (4151.3) MB, 180.0 7 / 0.00 ms (average mu = 0.317, current mu = 0.145) allocation failure;

<--- JS stacktrace --->

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

1: 0xcd8bd6 node::OOMErrorHandler(char const, v8::OOMDetails const&) [node] 2: 0x10aed20 v8::Utils::ReportOOMFailure(v8::internal::Isolate, char const, v8::OOM Details const&) [node] 3: 0x10af007 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate, char c onst, v8::OOMDetails const&) [node] 4: 0x12cdfe5 [node] 5: 0x12e4b08 [node] 6: 0x12bc00e v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8:: internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlig nment) [node] 7: 0x12bd2f4 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8: :internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAli gnment) [node] 8: 0x129afb5 v8::internal::Factory::NewFillerObject(int, v8::internal::AllocationAlig nment, v8::internal::AllocationType, v8::internal::AllocationOrigin) [node] 9: 0x16cb57c v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long, v8: :internal::Isolate*) [node] 10: 0x7c4923ca53f6 fish: Job 1, 'npm run dev' terminated by signal SIGABRT (Abort)

What's the expected result?

The page loading with the chosen icon.

Link to Minimal Reproducible Example

https://stackblitz.com/edit/withastro-astro-ufynmh?file=src%2Fpages%2Findex.astro,astro.config.mjs&title=Astro%20Starter%20Kit:%20Basics