Hypfer / ICantBelieveItsNotValetudo

A Valetudo companion service which renders maps to pngs
Apache License 2.0
129 stars 80 forks source link

Memmory pressure error #50

Closed joskfg closed 3 years ago

joskfg commented 3 years ago

I'm getting this error when trying to generate the map

Connecting to MQTT broker...
Connected to MQTT broker.
Drawing map...
<--- Last few GCs --->
[261:0x75ff5780]    12801 ms: Mark-sweep (reduce) 6.3 (8.8) -> 6.1 (8.3) MB, 125.9 / 0.1 ms  (average mu = 0.747, current mu = 0.001) external memory pressure GC in old space requested
[261:0x75ff5780]    12887 ms: Mark-sweep (reduce) 6.1 (7.8) -> 6.1 (8.0) MB, 86.1 / 0.0 ms  (average mu = 0.603, current mu = 0.001) external memory pressure GC in old space requested
<--- JS stacktrace --->
FATAL ERROR: v8::ArrayBuffer::New Allocation failed - process out of memory
Hypfer commented 3 years ago

Is this still an issue?

BOFH90 commented 2 years ago

I got the same Problem: [2022-02-15T10:13:09.607Z] [INFO] Loading configuration file: /app/config.json [2022-02-15T10:13:09.654Z] [INFO] Connecting to MQTT broker... [2022-02-15T10:13:09.663Z] [INFO] Webserver running on port 3003 [2022-02-15T10:13:09.686Z] [INFO] Connected to MQTT broker. [2022-02-15T10:13:19.657Z] [INFO] Drawing map...

<--- Last few GCs --->

[19:0x5045a90] 10315 ms: Mark-sweep (reduce) 12.6 (16.0) -> 12.4 (15.8) MB, 20.3 / 0.0 ms (average mu = 0.993, current mu = 0.003) external memory pressure GC in old space requested [19:0x5045a90] 10334 ms: Mark-sweep (reduce) 12.4 (14.8) -> 12.3 (15.3) MB, 18.9 / 0.0 ms (average mu = 0.986, current mu = 0.002) external memory pressure GC in old space requested

<--- JS stacktrace --->

FATAL ERROR: v8::ArrayBuffer::New Allocation failed - process out of memory 1: 0xa24ed0 node::Abort() [node] 2: 0x966115 node::FatalError(char const, char const) [node] 3: 0xb9acde v8::Utils::ReportOOMFailure(v8::internal::Isolate, char const, bool) [node] 4: 0xb9b057 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate, char const, bool) [node] 5: 0xb9b13b [node] 6: 0xbb770d v8::ArrayBuffer::New(v8::Isolate, unsigned long) [node] 7: 0x7fdc904e94f5 Context2d::CreateImageData(Nan::FunctionCallbackInfo const&) [/app/node_modules/canvas/build/Release/canvas.node] 8: 0x7fdc904e1dc8 [/app/node_modules/canvas/build/Release/canvas.node] 9: 0xc06acb [node] 10: 0xc08076 [node] 11: 0xc086f6 v8::internal::Builtin_HandleApiCall(int, unsigned long, v8::internal::Isolate*) [node] 12: 0x1427179 [node] Aborted (core dumped) npm ERR! code ELIFECYCLE npm ERR! errno 134 npm ERR! i-cant-believe-its-not-valetudo@2021.6.0 start: node app.js npm ERR! Exit status 134