Hypfer / ICantBelieveItsNotValetudo

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

Memmory pressure error #80

Closed BOFH90 closed 2 years ago

BOFH90 commented 2 years ago

Same issue as in #50 (but is closed). https://github.com/Hypfer/ICantBelieveItsNotValetudo/issues/50

INFO: Manufacturer: Roborock Model: V1 Valetudo Implementation: RoborockV1ValetudoRobot Release: 2022.01.0 Commit: 4055f65e50cf2c789df4f1810781f03d74405de4

ERROR:

[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<v8::Value> 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

Hypfer commented 2 years ago

Should be fixed with the switch to @napi-rs/canvas in 2022.05.0

Please try and open a new issue if the problem persists