• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

why does my MM on pi crash every night?

Scheduled Pinned Locked Moved Solved Troubleshooting
15 Posts 3 Posters 3.5k Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Away
    sdetweil
    last edited by Aug 31, 2019, 2:26 PM

    I have 4 MM running

    pi,
    nano
    odroid
    mac

    the pi crashes every night, the other three run great.

    I added MMM-Watchdog, and it restarts MM everynight multiple times
    i upped the timeout to 60 seconds, with 10 seconds front end update time
    still restarts…

    IF the UI thread has died, HOW can i figure out what is causing it?
    the PM2 log doesn’t give me that info

    on the pi, I display date/time, my custom water monitoring module, and background images from my local lan server… (all others are doing mostly the same, clock, pics, and one is showing water monitoring app too)
    all are on 2.8.0
    all have different versions of node and npm (system level differences)

    I haven’t been able to get the inspect mechanism to work
    https://electronjs.org/docs/tutorial/debugging-main-process

    any guidance welcomed

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    D 1 Reply Last reply Aug 31, 2019, 7:27 PM Reply Quote 0
    • S Away
      sdetweil
      last edited by Sep 15, 2019, 2:29 PM

      watchdog has a problem… removing… have not crashed since increase swap space…

      will close for now as I work on the watchdog socket problem

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • D Offline
        dazza120 @sdetweil
        last edited by Aug 31, 2019, 7:27 PM

        @sdetweil I believe some one said the swap file was not big enough and the pi was burning through it and when it was full it would crash so I think they upped it to 4Gb

        S 1 Reply Last reply Aug 31, 2019, 7:29 PM Reply Quote 0
        • S Away
          sdetweil @dazza120
          last edited by sdetweil Aug 31, 2019, 7:33 PM Aug 31, 2019, 7:29 PM

          @dazza120 but why does it only crash at night? same system runs great all day long
          upped swap to 1g, from 99meg (which was all used)

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          D 1 Reply Last reply Aug 31, 2019, 7:35 PM Reply Quote 0
          • D Offline
            dazza120 @sdetweil
            last edited by Aug 31, 2019, 7:35 PM

            @sdetweil I would imagine it’s full around that time mine use to crash every 12 hours without fail, I put it down to ram on the pi3B+ I got the pi 4 4Gb and it doesn’t crash anymore with the help of Watchdog too. Ram just gets eaten on the pi

            S 1 Reply Last reply Aug 31, 2019, 7:37 PM Reply Quote 0
            • S Away
              sdetweil @dazza120
              last edited by Aug 31, 2019, 7:37 PM

              @dazza120 thx… i added

              free -m
              

              to the mm.sh , so when pm2 restarts I can see memory usage in pm2 logs

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • D Offline
                dazza120
                last edited by Aug 31, 2019, 7:37 PM

                Link here https://forum.magicmirror.builders/topic/10940/issues-with-mm-freezing-and-rpi3-running-hot/10

                S 1 Reply Last reply Aug 31, 2019, 7:39 PM Reply Quote 1
                • S Away
                  sdetweil @dazza120
                  last edited by sdetweil Aug 31, 2019, 7:42 PM Aug 31, 2019, 7:39 PM

                  @dazza120 thx… had seen that… and it looks like the ui thread had died… (when debugging in the past)
                  both the other systems have swap at 1024 (odroid has 2meg ram) and 1978 (nano has 4gig ram)

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • S Away
                    sdetweil
                    last edited by Aug 31, 2019, 7:50 PM

                    just for info… both the main modules background images and my water monitor app, stop processing while hidden, and my mmm-sleepwake puts the mirror to sleep (by hiding all the modules)

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • S Away
                      sdetweil
                      last edited by Aug 31, 2019, 8:28 PM

                      just crashed again, watchdog killed it… not memory…

                      so I found the only path thru my water monitoring module with code that isn’t mine, and wrapped it in an exception handler to see if it is failing…

                      we shall see

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      S 1 Reply Last reply Sep 2, 2019, 8:13 PM Reply Quote 1
                      • S Away
                        sdetweil @sdetweil
                        last edited by Sep 2, 2019, 8:13 PM

                        @sdetweil so far, does not crash.

                        If I add Watchdog, it gets restarted.
                        I’ve made the timeouts really long. Still fails overnight

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Sam, technical setup by Karsten.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy