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.

    MMM-Scenes2

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    31 Posts 4 Posters 6.7k Views 4 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.
    • M Offline
      MMRIZE @ric
      last edited by

      @ric
      And, your log is just backend log, I need front-end log.
      You can see front-end log by;

      • installing MMM-LogExt
      • Or, dev-console of your MM screen, not terminal. (with npm run start:dev, you can see dev-console panel on your MM screen.)
      R 2 Replies Last reply Reply Quote 0
      • R Offline
        ric @MMRIZE
        last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • R Offline
          ric @MMRIZE
          last edited by ric

          @MMRIZE
          I have changed the animations. New: fadeIn/fadeOut
          I have installed MMM-LogExt.
          MagicMirror is running and I will keep an eye on it. As soon as it stops running correctly, I will post the logs.
          Thank you

          Current log entry

          pi@magicmirror:~/MagicMirror $ pm2 logs MagicMirror
          [TAILING] Tailing last 15 lines for [MagicMirror] process (change the value with --lines option)
          /home/pi/.pm2/logs/MagicMirror-error.log last 15 lines:
          0|MagicMir | [29109:1214/163910.531720:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
          0|MagicMir | [29109:1214/163910.534010:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
          0|MagicMir | [29109:1214/163910.535596:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
          0|MagicMir | [29109:1214/163910.536560:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
          0|MagicMir | [29109:1214/163910.537412:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
          0|MagicMir | [29109:1214/163910.539776:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
          0|MagicMir | [29109:1214/163910.540617:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
          0|MagicMir | [29109:1214/163910.541337:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
          0|MagicMir | [29109:1214/163910.542083:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
          0|MagicMir | [29109:1214/163910.542859:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
          0|MagicMir | [29109:1214/163910.543568:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
          0|MagicMir | [29109:1214/163910.544310:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
          0|MagicMir | [29109:1214/163912.238616:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
          0|MagicMir | [29109:1214/163912.240892:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
          0|MagicMir | [29109:1214/163923.075684:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!
          
          /home/pi/.pm2/logs/MagicMirror-out.log last 15 lines:
          ...
          0|MagicMirror  | [14.12.2023 16:56.57.386] [LOG]   [library.mjs:174:9] [SCENE] Scene transition starts: scene_2
          0|MagicMirror  | [14.12.2023 16:57.00.007] [LOG]   [library.mjs:178:9] [SCENE] Scene will live: scene_2 60000
          0|MagicMirror  | [14.12.2023 16:58.00.036] [LOG]   [library.mjs:174:9] [SCENE] Scene transition starts: scene_1
          0|MagicMirror  | [14.12.2023 16:58.02.697] [LOG]   [library.mjs:178:9] [SCENE] Scene will live: scene_1 60000
          0|MagicMirror  | [14.12.2023 16:59.02.696] [LOG]   [library.mjs:174:9] [SCENE] Scene transition starts: scene_2
          0|MagicMirror  | [14.12.2023 16:59.05.324] [LOG]   [library.mjs:178:9] [SCENE] Scene will live: scene_2 60000
          0|MagicMirror  | [14.12.2023 16:59.15.816] [LOG]   [weather.js:166:7] New weather information available.
          0|MagicMirror  | [14.12.2023 16:59.15.952] [LOG]   [weather.js:166:7] New weather information available.
          0|MagicMirror  | [14.12.2023 17:00.05.325] [LOG]   [library.mjs:174:9] [SCENE] Scene transition starts: scene_1
          0|MagicMirror  | [14.12.2023 17:00.07.959] [LOG]   [library.mjs:178:9] [SCENE] Scene will live: scene_1 60000
          0|MagicMirror  | [14.12.2023 17:01.07.968] [LOG]   [library.mjs:174:9] [SCENE] Scene transition starts: scene_2
          0|MagicMirror  | [14.12.2023 17:01.10.602] [LOG]   [library.mjs:178:9] [SCENE] Scene will live: scene_2 60000
          0|MagicMirror  | [14.12.2023 17:02.10.614] [LOG]   [library.mjs:174:9] [SCENE] Scene transition starts: scene_1
          0|MagicMirror  | [14.12.2023 17:02.13.263] [LOG]   [library.mjs:178:9] [SCENE] Scene will live: scene_1 60000
          

          Is MMM-LogExt working correctly or do I need to adjust something?

          M 1 Reply Last reply Reply Quote 0
          • M Offline
            MMRIZE @ric
            last edited by

            @ric
            Log says nothing suspicious. I suspect Chromium graphic memory leak issues due to last parts of error-log.
            In that case, I have nothing to help. Sorry.

            R 1 Reply Last reply Reply Quote 0
            • R Offline
              ric @MMRIZE
              last edited by

              @MMRIZE
              Thanks anyway.

              Would you say it’s the Pi version? Software/hardware version? Could this be fixed with a Chromium update in the future?

              R 1 Reply Last reply Reply Quote 0
              • R Offline
                ric @ric
                last edited by

                Very strange. I have created a third scene. Now it is already running for several hours.

                1 Reply Last reply Reply Quote 0
                • B Offline
                  Babene1 Project Sponsor
                  last edited by

                  I have the same problem, after about 1 hour there is no change of modules.
                  I also want a constant change of MMM-iframeReload and MMM-iframeReload2 module

                  MagicMirror Version 2.27, Rapsberry PI 4 – 4 GB
                  My Config:

                  /* MagicMirror² Config Sample
                   *
                   * By Michael Teeuw https://michaelteeuw.nl
                   * MIT Licensed.
                   *
                   * For more information on how you can configure this file
                   * see https://docs.magicmirror.builders/configuration/introduction.html
                   * and https://docs.magicmirror.builders/modules/configuration.html
                   *
                   * You can use environment variables using a `config.js.template` file instead of `config.js`
                   * which will be converted to `config.js` while starting. For more information
                   * see https://docs.magicmirror.builders/configuration/introduction.html#enviromnent-variables
                   */
                  let config = {
                  	address: "0.0.0.0",	// Address to listen on, can be:
                  							// - "localhost", "127.0.0.1", "::1" to listen on loopback interface
                  							// - another specific IPv4/6 to listen on a specific interface
                  							// - "0.0.0.0", "::" to listen on any interface
                  							// Default, when address config is left out or empty, is "localhost"
                  	port: 8080,
                  	basePath: "/",	// The URL path where MagicMirror² is hosted. If you are using a Reverse proxy
                  									// you must set the sub path here. basePath must end with a /
                  	ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1", "192.168.178.249", "192.168.178.49"], // Set [] to allow all IP addresses
                  									// or add a specific IPv4 of 192.168.1.5 :
                  									// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
                  									// or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
                  									// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
                  
                  	useHttps: false,			// Support HTTPS or not, default "false" will use HTTP
                  	httpsPrivateKey: "",	// HTTPS private key path, only require when useHttps is true
                  	httpsCertificate: "",	// HTTPS Certificate path, only require when useHttps is true
                  
                  	language: "de",
                  	locale: "de-DE",
                  	logLevel: ["INFO", "LOG", "WARN", "ERROR"], // Add "DEBUG" for even more logging
                  	timeFormat: 24,
                  	units: "metric",
                  	
                  	electronOptions: {
                  		webPreferences: {
                  		  webviewTag: true,
                  		},
                  	  },
                  
                  	modules: [
                  		{
                  			module: "alert",
                  		},
                  		/*{
                  			module: "clock",
                  			position: "top_left"
                  		},*/
                  		{
                  		// https://github.com/TheBogueRat/MMM-iFrameReload
                  		module: 'MMM-iFrameReload',
                  		position: 'top_left',	// This can be any of the regions.
                  		classes: "SEITE_ZWEI",
                  		//header: 'Rezept des Tages',
                  		config: {
                  			// See 'Configuration options' for more information.
                  				url: http://test/Anzeigetafeln/Anzeige1.html,
                  				width: "1900px", // Optional. Default: 100%
                  				height: "1080px", //Optional. Default: 100px
                  				refreshInterval: 100
                  			}
                  		},
                  		{
                  			// https://github.com/TheBogueRat/MMM-iFrameReload
                  			module: 'MMM-iFrameReload2',
                  			position: 'top_left',	// This can be any of the regions.
                  			classes: "Welcome SEITE_EINS",
                  			//header: 'Rezept des Tages',
                  			config: {
                  				// See 'Configuration options' for more information.
                  					url: http://test/Anzeigetafeln/Logo.html,
                  					width: "1900px", // Optional. Default: 100%
                  					height: "1080px", //Optional. Default: 100px
                  					refreshInterval: 3600
                  				}
                  			},
                  			{
                  				// https://github.com/MMRIZE/MMM-Scenes2
                  				module: "MMM-Scenes2",
                  				position: "bottom_bar",
                  				config: {
                  					life: 1000 * 10,
                  					activeIndicator: ' ',
                  					inactiveIndicator: ' ',
                  					scenario: [
                  						{ // First scene definition
                  							exit: ["SEITE_ZWEI"],
                  							enter: ["SEITE_EINS"],
                  							life: 1000 * 10,
                  						  },
                  						  { // Second scene definition
                  							exit: ["SEITE_EINS"],
                  							enter: ["SEITE_ZWEI"],
                  							life: 1000 * 45,
                  						  },
                  					],
                  				}
                  			},
                  		{
                  			// https://github.com/Jopyth/MMM-Remote-Control
                  			module: 'MMM-Remote-Control',
                  			// uncomment the following line to show the URL of the remote control on the mirror
                  			// position: 'bottom_left',
                  			// you can hide this module afterwards from the remote control itself
                  			config: {
                  				customCommand: {
                  					//monitorStatusCommand: 'rm -rf .config/Electron',
                  					monitorStatusCommand: '~pi/restartBrowsercache.sh'
                  				},  // Optional, See "Using Custom Commands" below
                  				showModuleApiMenu: false, // Optional, Enable the Module Controls menu
                  				secureEndpoints: true, // Optional, See API/README.md
                  				// uncomment any of the lines below if you're gonna use it
                  				customMenu: "custom_menu.json", // Optional, See "Custom Menu Items" below
                  				// apiKey: "", // Optional, See API/README.md for details
                  				// classes: {} // Optional, See "Custom Classes" below
                  			}
                  		},
                  	]
                  };
                  
                  /*************** DO NOT EDIT THE LINE BELOW ***************/
                  if (typeof module !== "undefined") { module.exports = config; }
                  
                  

                  I insert the line in my mm.sh:

                  export ELECTRON_DISABLE_GPU=1

                  pm2 Log:

                  [1965:0521/220109.925300:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: Datei oder Verzeichnis nicht gefunden (2)
                  [1965:0521/220109.925398:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: Datei oder Verzeichnis nicht gefunden (2)

                  uname -a
                  Linux raspberryanzeige1 6.1.0-rpi8-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.73-1+rpt1 (2024-01-25) aarch64 GNU/Linux

                  file /bin/bash
                  /bin/bash: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=198ac6b0cc01bf774c5746a36a6fd31dead9bda5, for GNU/Linux 3.7.0, stripped

                  Does anyone have any idea what I can do? Thanks

                  M 1 Reply Last reply Reply Quote 0
                  • M Offline
                    MMRIZE @Babene1
                    last edited by

                    @Babene1
                    I researched about that error message.
                    The error messages seemed not to be the module or logic issue but the GPU/System issue. (Usually in -nix machines about graphic drivers.)

                    However, I’m not sure the error message is related to your symptom actually. There is a chance these two things could be independent.

                    What I suggest for the test is;

                    • use simpler animation effects or no animation.
                    • give a longer life for the scene.
                    • Remove all other 3rd party modules, except default modules (clock, …)

                    If it helps, we can progress from it anyhow.
                    But if not; I think I rarely have things to do.

                    B 1 Reply Last reply Reply Quote 0
                    • B Offline
                      Babene1 Project Sponsor @MMRIZE
                      last edited by Babene1

                      @MMRIZE

                      Thank you for your answer, I agree with you, I also think that the error message has nothing to do with the problem.
                      Error message is written to the log after the start and the freezing of the module happens after about 1 hour.

                      I used the default animation, unfortunately I don’t know how to remove the animation completely.
                      Have also removed the MMM remote control module.
                      So there are only three modules left, MMM-Scenes2, MMM-iFrameReload and MMM-iFrameReload2

                      I switched off WLan-power Save and deactivated IPV6.

                      No improvement, no improvement.

                      Next tests will be longer times and I will use a different browser.

                      Other test scenarios ?

                      M 2 Replies Last reply Reply Quote 0
                      • M Offline
                        MMRIZE @Babene1
                        last edited by

                        @Babene1
                        To disable animation, you can set animation: null in defaultEnter definition or each scene role definition.

                        /* example for default behaviour */
                        defaultEnter: {
                          animation: null,
                          duration: 1000,
                          gap: 0,
                        },
                        
                        
                        /* example for each scene definition */
                        scenario: [
                          {
                            name: "scene1",
                            enter: {
                              role: "role1",
                              animation: null,
                              ...
                        

                        I’m suspecting Chrome’s memory leaks. These factors may cause memory leaks.

                        • improper handling timer
                        • CSS transition/Animation

                        I’ll modify some code to confirm to clear out garbage timer. Wait a little.

                        By the way, can you test the default clock module instead of MMM-iFrame Things? (To make things clearer)

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