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.

    Black screen. Add WM_CHANGE_STATE to kAtomsToCache

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    8 Posts 2 Posters 604 Views 2 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.
    • V Offline
      veny
      last edited by

      Hi all! There is a problem: a black screen appears periodically. logs below
      pm2 logs mm -line 200
      home/pi/.pm2/logs/mm-error.log last 15 lines:
      0|mm | [30366:0930/183424.828440:ERROR:atom_cache.cc(229)] Add WM_CHANGE_STATE to kAtomsToCache
      0|mm | /home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
      0|mm | [30364:0930/183638.674117:ERROR:gles2_cmd_decoder_passthrough.cc(928)] ContextResult::kFatalFailure: fail_if_major_perf_caveat + swiftshader
      0|mm | [30364:0930/183638.698993:ERROR:gles2_cmd_decoder_passthrough.cc(928)] ContextResult::kFatalFailure: fail_if_major_perf_caveat + swiftshader
      0|mm |
      0|mm | <— Last few GCs —>
      0|mm |
      0|mm | [1:0x55158000] 96324017 ms: Mark-Compact 227.9 (232.7) -> 227.2 (232.9) MB, pooled: 0 MB, 1218.73 / 0.01 ms (average mu = 0.615, current mu = 0.192) allocation failure; scavenge might not succeed
      0|mm | [1:0x55158000] 96325811 ms: Mark-Compact 227.9 (232.9) -> 227.3 (233.2) MB, pooled: 0 MB, 1602.43 / 0.00 ms (average mu = 0.443, current mu = 0.107) allocation failure; GC in old space requested
      0|mm |
      0|mm |
      0|mm | <— JS stacktrace —>
      0|mm |
      0|mm | [30424:1001/212148.823866:ERROR:v8_initializer.cc(808)] V8 javascript OOM (Reached heap limit).
      0|mm | [30229:1001/213410.607340:ERROR:atom_cache.cc(229)] Add WM_CHANGE_STATE to kAtomsToCache

      Thanks in advance everyone!

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @veny
        last edited by

        @veny can you show the startup messages
        it has all the info we need

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        V 2 Replies Last reply Reply Quote 0
        • V Offline
          veny @sdetweil
          last edited by

          Did I understand you correctly?
          @sdetweil pm2 restart mm
          Use --update-env to update environment variables
          [PM2] Applying action restartProcessId on app [mm](ids: [ 0 ])
          [PM2] mm ✓
          ┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐
          │ id │ name │ mode │ ↺ │ status │ cpu │ memory │
          ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤
          │ 0 │ mm │ fork │ 156 │ online │ 0% │ 2.6mb │
          └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘
          pi@raspberrypi:~ $ pm2 show mm
          Describing process with id 0 - name mm
          ┌───────────────────┬─────────────────────────────────┐
          │ status │ online │
          │ name │ mm │
          │ namespace │ default │
          │ version │ N/A │
          │ restarts │ 156 │
          │ uptime │ 26s │
          │ 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 │
          │ node env │ N/A │
          │ watch & reload │ ✘ │
          │ unstable restarts │ 0 │
          │ created at │ 2024-10-01T18:56:53.096Z │
          └─

          1 Reply Last reply Reply Quote 0
          • V Offline
            veny @sdetweil
            last edited by

            @sdetweil
            pm2 logs mm
            [TAILING] Tailing last 15 lines for [mm] process (change the value with --lines option)
            /home/pi/.pm2/logs/mm-error.log last 15 lines:
            0|mm |
            0|mm | <— JS stacktrace —>
            0|mm |
            0|mm | [30424:1001/212148.823866:ERROR:v8_initializer.cc(808)] V8 javascript OOM (Reached heap limit).
            0|mm | [30229:1001/213410.607340:ERROR:atom_cache.cc(229)] Add WM_CHANGE_STATE to kAtomsToCache
            0|mm | /home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
            0|mm | [14551:1001/214649.132892:ERROR:gles2_cmd_decoder_passthrough.cc(928)] ContextResult::kFatalFailure: fail_if_major_perf_caveat + swiftshader
            0|mm | [14551:1001/214649.166117:ERROR:gles2_cmd_decoder_passthrough.cc(928)] ContextResult::kFatalFailure: fail_if_major_perf_caveat + swiftshader
            0|mm | [14415:1001/215313.946903:ERROR:atom_cache.cc(229)] Add WM_CHANGE_STATE to kAtomsToCache
            0|mm | [14551:1001/215414.311486:ERROR:gles2_cmd_decoder_passthrough.cc(928)] ContextResult::kFatalFailure: fail_if_major_perf_caveat + swiftshader
            0|mm | [14551:1001/215414.338625:ERROR:gles2_cmd_decoder_passthrough.cc(928)] ContextResult::kFatalFailure: fail_if_major_perf_caveat + swiftshader
            0|mm | /home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
            0|mm | [16356:1001/215713.542578:ERROR:atom_cache.cc(229)] Add WM_CHANGE_STATE to kAtomsToCache
            0|mm | [16491:1001/215716.216002:ERROR:gles2_cmd_decoder_passthrough.cc(928)] ContextResult::kFatalFailure: fail_if_major_perf_caveat + swiftshader
            0|mm | [16491:1001/215716.258075:ERROR:gles2_cmd_decoder_passthrough.cc(928)] ContextResult::kFatalFailure: fail_if_major_perf_caveat + swiftshader

            /home/pi/.pm2/logs/mm-out.log last 15 lines:
            0|mm | [2024-10-01 21:57:10.232] [LOG] Create new newsfetcher for url: https://www.vedomosti.ru/rss/news - Interval: 300000
            0|mm | [2024-10-01 21:57:10.835] [INFO] updatenotification: Updater Class Loaded!
            0|mm | [2024-10-01 21:57:10.878] [INFO] updatenotification: Checking PM2 using…
            0|mm | [2024-10-01 21:57:12.532] [INFO] Checking git for module: MMM-FlipClock
            0|mm | [2024-10-01 21:57:13.406] [INFO] Checking git for module: MMM-YrThen
            0|mm | [2024-10-01 21:57:15.040] [INFO] Checking git for module: MMM-yandex-route
            0|mm | [2024-10-01 21:57:15.452] [INFO] updatenotification: [PM2] You are not using pm2
            0|mm | [2024-10-01 21:57:15.479] [INFO] System information:
            0|mm | ### SYSTEM: manufacturer: Raspberry Pi Foundation; model: Raspberry Pi 3 Model B Plus Rev 1.3; raspberry: [object Object]; virtual: false
            0|mm | ### OS: platform: linux; distro: Raspbian GNU/Linux; release: 11; arch: arm; kernel: 5.15.32-v7+
            0|mm | ### VERSIONS: electron: 31.1.0; used node: 20.14.0; installed node: 20.9.0; npm: 10.1.0; pm2: 5.4.1
            0|mm | ### OTHER: timeZone: Europe/Moscow; ELECTRON_ENABLE_GPU: undefined
            0|mm | [2024-10-01 21:57:15.725] [INFO] Checking git for module: MMM-Multimonth
            0|mm | [2024-10-01 21:57:16.083] [INFO] Checking git for module: MagicMirror
            0|mm | [2024-10-01 21:57:17.354] [INFO] Newsfeed-Fetcher: Broadcasting 200 items.

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @veny
              last edited by

              @veny IMG_0362.png

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              V 1 Reply Last reply Reply Quote 0
              • V Offline
                veny @sdetweil
                last edited by

                @sdetweil
                Why might this message appear? You are not using pm2
                configured pm2 using these instruction
                https://docs.magicmirror.builders/configuration/autostart.html#using-pm2

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @veny
                  last edited by

                  @veny its ok not to have pm2.

                  just info.

                  i dont know the cause, first time seeing

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @sdetweil
                    last edited by

                    @veny the output is concerning the raspberry:[ object] stuff was removed in 2.29 (today release)
                    and the browser is before 31.1, so this is v2.28

                    is this a new a new install

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • 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