My MagicMirror works fine for a few days and then the screen goes black. The errors in the log look like this:
<--- Last few GCs --->
[1:0x28003d0000] 209716297 ms: Mark-sweep (reduce) 611.5 (708.2) -> 611.4 (686.2) MB, 2337.4 / 4.3 ms (average mu = 0.625, current mu = 0.046) last resort GC in old space requested
[1:0x28003d0000] 209718766 ms: Mark-sweep (reduce) 611.4 (686.2) -> 611.3 (680.0) MB, 2469.7 / 4.9 ms (average mu = 0.444, current mu = 0.000) last resort GC in old space requested
<--- JS stacktrace --->
[1971:0624/001659.568718:ERROR:node_controller.cc(585)] Trying to re-add dropped peer DCF39E05685563B4.545691B8F0544120
[1973:0624/001659.568999:ERROR:node_controller.cc(585)] Trying to re-add dropped peer DCF39E05685563B4.545691B8F0544120
Here is the pm2 info:
┌───────────────────┬──────────────────────────────────────────┐
│ status │ online │
│ name │ MagicMirror │
│ namespace │ default │
│ version │ 2.19.0 │
│ restarts │ 3 │
│ uptime │ 36m │
│ script path │ /home/pi/MagicMirror/installers/mm.sh │
│ script args │ N/A │
│ error log path │ /home/pi/.pm2/logs/MagicMirror-error.log │
│ out log path │ /home/pi/.pm2/logs/MagicMirror-out.log │
│ pid path │ /home/pi/.pm2/pids/MagicMirror-0.pid │
│ interpreter │ bash │
│ interpreter args │ N/A │
│ script id │ 0 │
│ exec cwd │ /home/pi/MagicMirror │
│ exec mode │ fork_mode │
│ node.js version │ N/A │
│ node env │ N/A │
│ watch & reload │ ✔ │
│ unstable restarts │ 0 │
│ created at │ 2022-06-24T05:15:29.610Z │
└───────────────────┴──────────────────────────────────────────┘
Revision control metadata
┌──────────────────┬────────────────────────────────────────────────┐
│ revision control │ git │
│ remote url │ https://github.com/MichMich/MagicMirror.git │
│ repository root │ /home/pi/MagicMirror │
│ last update │ 2022-06-24T05:15:30.131Z │
│ revision │ a2d7cdcfb425c2a51715bbaf663c2feb267a9798 │
│ comment │ Merge pull request #2834 from MichMich/develop │
│ │ │
│ │ Release v2.1 │
│ branch │ master │
└──────────────────┴────────────────────────────────────────────────┘
Divergent env variables from local env
┌────────────────┬────────────────────────────────────────────────────┐
│ PWD │ /home/pi/MagicMirror │
│ SSH_CONNECTION │ 192.168.1.64 40866 192.168.1.14 22 │
│ SHLVL │ 2 │
│ XDG_SESSION_ID │ 4 │
│ SSH_CLIENT │ 192.168.1.64 40866 22 │
│ PATH │ /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin: │
└────────────────┴────────────────────────────────────────────────────┘