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-AssistantMk2 (v3)

    Scheduled Pinned Locked Moved System
    135 Posts 27 Posters 70.1k Views 25 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.
    • ? Offline
      A Former User
      last edited by

      Error “mmap () failed: Cannot allocate memory” will be fixed from version 3.1.0
      we have coded a secondary code that does not use HTML5 audio.

      possibly, if you are not using bluetooth.
      it seems that pulseaudio is the source of the problem

      if you don’t use bluetooth try;

      sudo apt-get autoremove --purge pulseaudio
      

      possibly a restart of the RPI to finish the changes.
      and check the parameters with arecord -l, aplay -l
      this was reported by a user.
      I personally have no mmap error because I uninstall pulseaudio during the installation of raspbian

      OR wait release V3.1.0

      1 Reply Last reply Reply Quote 0
      • M Offline
        meusprojetoskali @Guest
        last edited by

        @Bugsounet
        Hello Friend! Please include pt-BR (Portuguese Brazil), we Brazilians are always overlooked in translations even though it is the largest country in Latin America with the largest population and major producers and consumers of technologies.

        ? 1 Reply Last reply Reply Quote 0
        • ? Offline
          A Former User @meusprojetoskali
          last edited by

          @meusprojetoskali said in MMM-AssistantMk2 (v3):

          Hello Friend! Please include pt-BR (Portuguese Brazil), we Brazilians are always overlooked in translations even though it is the largest country in Latin America with the largest population and major producers and consumers of technologies.

          Makes your contribution as PR for Portuguese Brazillian translation. We’ll accept to merge.

          M 1 Reply Last reply Reply Quote 0
          • M Offline
            meusprojetoskali @Guest
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • M Offline
              meusprojetoskali @Guest
              last edited by

              Excuse me, but in the Portuguese translation the answer was meaningless, can you explain it in other words?
              What is a RP contribution?

              ? 1 Reply Last reply Reply Quote 0
              • ? Offline
                A Former User @meusprojetoskali
                last edited by

                @meusprojetoskali
                This module needs two kinds of translations.

                1. Basic terms used by the module.
                  https://github.com/eouia/MMM-AssistantMk2/tree/master/translations
                  Error messages or some basic text would be used by the module itself. You can contribute by translating these files.
                  Send us translation direclty.
                  Or make a fork from the original github repository to your own repository. Add your work, then make Pull Request(PR) to the original repository. If the original author( - we) accept it, your working will be merged into the original repository.

                2. vocal patterns for locale on recipes.
                  Recipe also might needs some translations. For example, with-MMM-Youtube.js recipe (https://github.com/eouia/MMM-AssistantMk2/blob/master/recipes/with-MMM-Youtube.js) is written in English. So, stop video as a pattern of transcriptionHook is used. If you could provide with-MMM-Youtube.PT_BR.jswith translation of stop video, send us directly or make a PR as I’ve said above.

                1 Reply Last reply Reply Quote 0
                • ? Offline
                  A Former User
                  last edited by

                  MMM-AssistantMk2 v3.1.0-1 is out

                  The AMk2 team

                  M 1 Reply Last reply Reply Quote 0
                  • M Offline
                    meusprojetoskali @Guest
                    last edited by

                    @Bugsounet said in MMM-AssistantMk2 (v3):

                    MMM-AssistantMk2 v3.1.0-1 is out

                    The AMk2 team

                    git pull That’s enough?

                    1 Reply Last reply Reply Quote 0
                    • ? Offline
                      A Former User
                      last edited by

                      From V3.0.x to V3.1.x: npm install is needed
                      check wiki for new features configuration

                      1 Reply Last reply Reply Quote 0
                      • N Offline
                        nakedrabbit
                        last edited by

                        Thanks so much for the new version! I know you guys are working hard on this, I love the plugin, and I appreciate everything that went into making it.

                        Unfortunately I still have some more issues, and they seem memory related this time around as well. To recap: I’m on a Pi 3B with latest MM, but still on Raspbian Stretch.

                        I cleared out the old AssistantMk2 and pulled the new version from scratch. Though I used the autoinstaller, I still had to manually rebuild electron…? That’s OK, though, because it did work fine.

                        I used both recommended config options , namely
                        useHTML5: false,
                        playProgram: “mpg321”,

                        Everything seems OK, and my first test yesterday worked great. I asked a simple question, “What time is it?” and got the answer and all worked great. I left it on overnight, but today Hotword does not summon the plugin. I get these messages from PM2 log:

                        0|mm | [HOTWORD] Detector starts listening.
                        0|mm | [HOTWORD] Detected: SMARTMIRROR
                        0|mm | [HOTWORD] stops.
                        0|mm | [HOTWORD] After Recording is too short
                        0|mm | [HOTWORD] Final Result: { detected: true, hotword: ‘SMARTMIRROR’, file: null }

                        And the corresponding error messages:

                        0|mm | at Module._compile (internal/modules/cjs/loader.js:678:28)
                        0|mm | at Object.Module._extensions…js (internal/modules/cjs/loader.js:722:10)
                        0|mm | at Module.load (internal/modules/cjs/loader.js:620:32)
                        0|mm | at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
                        0|mm | at Function.Module._load (internal/modules/cjs/loader.js:551:3)
                        0|mm | at Module.require (internal/modules/cjs/loader.js:658:17)
                        0|mm | at require (internal/modules/cjs/helpers.js:20:18)
                        0|mm | mmap() failed: Cannot allocate memory
                        0|mm | Failed to create permanent mapping for memfd region with ID = 775865347
                        0|mm | Failed to regester memfd mempool. Reason: could not attach memfd SHM ID to pipe
                        0|mm | mmap() failed: Cannot allocate memory
                        0|mm | Failed to create permanent mapping for memfd region with ID = 3943571786
                        0|mm | mmap() failed: Cannot allocate memory
                        0|mm | Failed to create permanent mapping for memfd region with ID = 2623177707
                        0|mm | Ignoring received block reference with non-registered memfd ID = 2623177707

                        I gave you all 15 lines in case there’s something there.

                        So I stopped MM entirely, started again. Hotword brought up AssistantMk2, but only once, with identical error messages. Once the plugin told me it did not understand, it was unresponsive to my voice.

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