• 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.

Electron screen becomes blank after a period of time

Scheduled Pinned Locked Moved Unsolved Troubleshooting
13 Posts 6 Posters 3.8k Views 6 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.
  • D Offline
    DDE12
    last edited by DDE12 May 30, 2023, 4:13 PM May 30, 2023, 4:12 PM

    I am running MM 2.23.0 on a Pi 2 Model B Rev 1.2 with Bullseye and after about 15-20 minutes, the electron screen becomes blank. Output in the terminal around the time that this happens is just normal calendar [info] and MMM-Gas [log] messages about gas prices. I use VNC to access the Pi and start the mirror. I can still access the mirror in a browser when the electron screen goes blank. I do get the following errors when starting MM:

    [12932:0530/114907.863519:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
    [12904:0530/114907.961672:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.

    Please let me know what further info I can provide to help troubleshoot. Thank you for taking a look at this.

    S 1 Reply Last reply May 30, 2023, 4:30 PM Reply Quote 0
    • S Offline
      sdetweil @DDE12
      last edited by May 30, 2023, 4:30 PM

      @DDE12 those are warnings we can’t suppress… nothing we can do… problem is not in MM code…

      when the mm screen goes black again , open the developers window

      ctrl-shift-i on the MM screen keyboard
      then select the console tab, and scroll up to any errors (usually red text )

      cannot do this remotely has to be on the screen where the problem occurred

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      D 1 Reply Last reply May 30, 2023, 6:28 PM Reply Quote 1
      • D Offline
        DDE12 @sdetweil
        last edited by May 30, 2023, 6:28 PM

        @sdetweil These are the only messages and probably not actually a problem:

        Your are using the deprecated config values ‘colored’. Please switch to ‘coloredSymbol’ & ‘coloredText’!
        start @ calendar.js:100

        [CX3] Module is not prepared yet, wait a while.
        getDom @ MMM-CalendarExt3Agenda.js:193

        [CX3] Module is not prepared yet, wait a while.
        getDom @ MMM-CalendarExt3.js:228

        If electron stops with Dev window closed, I cannot open it. If electron stops with Dev window open, there is a message “DevTools was disconnected from the page…”
        If this is not a clue to aid in the troubleshooting, please let me know what to try next to get you some more info. Thanks!

        S M 2 Replies Last reply May 30, 2023, 6:29 PM Reply Quote 0
        • S Offline
          sdetweil @DDE12
          last edited by May 30, 2023, 6:29 PM

          @DDE12 yes, if the right code crashes, then dev window will die

          sometime npm start dev will allow you to see the error before it dies…

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • M Offline
            MMRIZE @DDE12
            last edited by MMRIZE May 30, 2023, 6:45 PM May 30, 2023, 6:44 PM

            @DDE12

            Check whether some modules make unhandled exception error when it create DOM.

            [CX3] Module is not prepared yet, wait a while.
            getDom @ MMM-CalendarExt3Agenda.js:193
            
            [CX3] Module is not prepared yet, wait a while.
            getDom @ MMM-CalendarExt3.js:228
            

            This message might imply some other module fails to create DOM at its start. (I’ll fix the CX3* modules not so strict to other module’s failure soon.)

            By the way, It would be better;

            • Remove all modules from config
            • Then add one by one unless you meet the problem.
            D 1 Reply Last reply Jun 2, 2023, 1:49 AM Reply Quote 1
            • D Offline
              DDE12 @MMRIZE
              last edited by Jun 2, 2023, 1:49 AM

              @MMRIZE I updated MMCalendarExt3* and am not getting those messages. Thank you! I have done the troubleshooting you recommended and have discovered that it is MMM-Wallpaper when set to display NASA’s Astronomy Picture of the Day. The black screen does not occur when I set the wallpaper to Met Museum or Firetv. Should I start a new post on troubleshooting MMM-Wallpaper?

              S 1 Reply Last reply Jun 2, 2023, 1:55 AM Reply Quote 0
              • S Offline
                sdetweil @DDE12
                last edited by Jun 2, 2023, 1:55 AM

                @DDE12 yes, start a new topic, but it’s probably a picture format or size problem

                I don’t know if wallpaper has anyvdebugging/logging

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                K 1 Reply Last reply Jun 2, 2023, 5:31 PM Reply Quote 0
                • K Offline
                  karsten13 @sdetweil
                  last edited by Jun 2, 2023, 5:31 PM

                  @sdetweil

                  I suspect it’s a problem of the pi, not enough memory …

                  D 1 Reply Last reply Jun 19, 2023, 3:45 AM Reply Quote 0
                  • M Offline
                    miabaker
                    last edited by Jun 5, 2023, 8:41 AM

                    Hi, I have the same issue of electron screen becoming blank. I have tried some solutions but none worked. I have added a line of code in my main.js file that reloads the window every 10 minutes. This prevents the screen from going blank. Here is the code snippet:

                    // Create a new BrowserWindow instance
                    let win = new BrowserWindow(options);
                    
                    // Load the index.html file
                    win.loadFile('index.html');
                    
                    // Reload the window every 10 minutes
                    setInterval(() => {
                      win.reload();
                    }, 600000);
                    

                    I hope this helps you keep your magic mirror running.

                    Regards, Mia from CodeIT

                    S 1 Reply Last reply Jun 5, 2023, 12:31 PM Reply Quote 0
                    • S Offline
                      sdetweil @miabaker
                      last edited by Jun 5, 2023, 12:31 PM

                      @miabaker so, you should find the module that’s failing and fix that.

                      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
                      1 / 2
                      • First post
                        10/13
                        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