MagicMirror² v2.5.0 is available! For more information about this release, check out this topic.

Black screen after some time



  • Hey there,

    I have installed the mirror new two or three month ago. Since this time I become black screens after some time. The Mirror doesn´t crash, the screen just turn to black. My old Mirror (1 year old) with same modules but without any updates does not have this problem. So I think the reason could be an update. Does anyone else knows this problem and a solution. I´ve tried different things (os update, MM update) but it is becoming worser.

    here my pm2 log without black screen

    pi@raspberrypi:~ $  Use `pm2 logs mm [--lines 1000]` to display logs
    status            │ online                          │
    │ name              │ mm                              │
    │ restarts          │ 0                               │
    │ uptime            │ 14m                             │
    │ script path       │ /home/pi/mm.sh                  │
    │ script args       │ N/A                             │
    │ error log path    │ /home/pi/.pm2/logs/mm-error.log │
    │ out log path      │ /home/pi/.pm2/logs/mm-out.log   │
    │ pid path          │ /home/pi/.pm2/pids/mm-0.pid     │
    │ interpreter       │ bash                            │
    │ interpreter args  │ N/A                             │
    │ script id         │ 0                               │
    │ exec cwd          │ /home/pi                        │
    │ exec mode         │ fork_mode                       │
    │ node.js version   │ N/A                             │
    │ watch & reload    │ ✘                               │
    │ unstable restarts │ 0                               │
    │ created at        │ 2018-10-25T05:27:10.221Z        │
    └───────────────────┴─────────────────────────────────┘
     Add your own code metrics: http://bit.ly/code-metrics
     Use `pm2 logs mm [--lines 1000]` to display logs
     Use `pm2 monit` to monitor CPU and Memory usage mm
    

    Now I am wating for the next black screen, then I will post the logfile again.

    Greetings
    Hakupapa



  • Here is the log after black screen. Putty already works so I think the pi is not crashed:

    pi@raspberrypi:~ $ pm2 logs mm
    [TAILING] Tailing last 15 lines for [mm] process (change the value with --lines option)
    /home/pi/.pm2/logs/mm-out.log last 15 lines:
    0|mm       | Module helper loaded: newsfeed
    0|mm       | All module helpers loaded.
    0|mm       | Starting server on port 8080 ...
    0|mm       | Server started ...
    0|mm       | Connecting socket for: calendar
    0|mm       | Starting node helper for: calendar
    0|mm       | Connecting socket for: MMM-ImagesPhotos
    0|mm       | Starting node helper for: MMM-ImagesPhotos
    0|mm       | Connecting socket for: newsfeed
    0|mm       | Starting module: newsfeed
    0|mm       | Sockets connected & modules started ...
    0|mm       | Launching application.
    0|mm       | Create new news fetcher for url: http://www.n-tv.de/rss - Interval: 300000
    0|mm       | Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/htschetschorke%40gmail.com/private-0b52e66697c4e6bfeca31befce749cc2/basic.ics - Interval: 300000
    0|mm       | Create new news fetcher for url: http://www.tagesschau.de/xml/rss2 - Interval: 300000
    
    /home/pi/.pm2/logs/mm-error.log last 15 lines:
    0|mm       | [893:1023/053104.910263:FATAL:memory.cc(22)] Out of memory. size=79265792
    0|mm       | Invalid SOS parameters for sequential JPEG
    0|mm       | [865:1024/144331.033064:FATAL:memory.cc(22)] Out of memory. size=97656832
    0|mm       | [832:1024/171926.281460:FATAL:bus.cc(1152)] D-Bus connection was disconnected. Aborting.
    0|mm       | [815:1024/172851.280816:FATAL:bus.cc(1152)] D-Bus connection was disconnected. Aborting.
    0|mm       | Invalid SOS parameters for sequential JPEG
    0|mm       | Invalid SOS parameters for sequential JPEG
    0|mm       | [872:1024/191309.306465:FATAL:memory.cc(22)] Out of memory. size=109969408
    0|mm       | Invalid SOS parameters for sequential JPEG
    0|mm       | Invalid SOS parameters for sequential JPEG
    0|mm       | Invalid SOS parameters for sequential JPEG
    0|mm       | Invalid SOS parameters for sequential JPEG
    0|mm       | [865:1024/231803.240907:FATAL:memory.cc(22)] Out of memory. size=109969408
    0|mm       | Invalid SOS parameters for sequential JPEG
    0|mm       | [855:1025/081629.946605:FATAL:memory.cc(22)] Out of memory. size=89653248
    

    Maybe it has to do with MMM-Images Photos and problems with some jpg Files. Does anybody has an idea?



  • I´ve tried to change the fotos into the same format 1280x1024 and I´ve changed the ending *.jpeg to *.jpg. Now the mirror runs since three days without black screen. I hope the problem is solved.



  • @hakupapa

    I have been having this issue as well. I discussed this in another thread

    I have always had this issue as I am new to running a Magic Mirror. It looks like there may have been a memory leak introduced in version 2.4.0 which persisted to version 2.5.0 . My only solution has been to implement a cron job to reload magic mirror every 5 hours (suggested by @MadScientist ). I’ve considered downgrading to a pre-2.4.0 build (haven’t checked to see if it’s even available). For now I’ll deal with it via the reloads.


  • Module Developer

    @striiker said in Black screen after some time:

    I’ve considered downgrading to a pre-2.4.0 build (haven’t checked to see if it’s even available)

    All the releases

    https://github.com/MichMich/MagicMirror/releases