Skip to content

JavaScript heap out of memory error on Raspberry Pi 3B+ #349

@mezakos

Description

@mezakos

I'm trying to run dashy on a Raspberry Pi 3B+ with docker. I'm using the lissy93/dashy:arm32v7 image. The container is not able to start up because during the yarn build process I get the following error:

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

<--- Last few GCs --->

[61:0x2d535f0]   169058 ms: Mark-sweep 228.3 (231.3) -> 228.1 (231.5) MB, 2481.7 / 0.2 ms  (average mu = 0.272, current mu = 0.227) allocation failure scavenge might not succeed
[61:0x2d535f0]   171221 ms: Mark-sweep 228.5 (231.5) -> 228.3 (231.5) MB, 1480.5 / 0.3 ms  (average mu = 0.289, current mu = 0.316) allocation failure scavenge might not succeed


<--- JS stacktrace --->

==== JS stack trace =========================================

    0: ExitFrame [pc: 0x11c3560]
    1: StubFrame [pc: 0x115c400]
Security context: 0x43240469 <JSObject>
    2: /* anonymous */(aka /* anonymous */) [0x33393c25] [/app/node_modules/webpack-sources/lib/applySourceMap.js:~58] [pc=0x2c0ba204](this=0x4b440279 <undefined>,0x373d4f9d <String[13]: parentNode===>,0x546e506d <Object map = 0x30a9c69d>)
    3: walk(aka SourceNode_walk) [0x2999cac1] [/app/node_modules/source-map/lib/source-node.js:~...

error Command failed with signal "SIGABRT".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR: "build-watch" exited with 1.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions