MagicMirror² v2.12.0 is available! For more information about this release, check out this topic.

HotWords Module - Exception when saying "Magic Mirror"



  • Error message appears only when saying the key words to activate Google Assistant
    Error Message:

    Whoops! There was an uncaught exception...
    { Error: spawn ENOMEM
        at ChildProcess.spawn (internal/child_process.js:357:11)
        at spawn (child_process.js:540:9)
        at LPCM16.start (/home/pi/MagicMirror/modules/MMM-Hotword/components/lpcm16.js:101:15)
        at Class.startListening (/home/pi/MagicMirror/modules/MMM-Hotword/node_helper.js:217:14)
        at Class.activate (/home/pi/MagicMirror/modules/MMM-Hotword/node_helper.js:175:10)
        at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-Hotword/node_helper.js:72:16)
        at Socket. (/home/pi/MagicMirror/modules/node_modules/node_helper/index.js:113:11)
        at Socket.emit (events.js:182:13)
        at /home/pi/MagicMirror/node_modules/socket.io/lib/socket.js:528:12
        at process._tickCallback (internal/process/next_tick.js:61:11) errno: 'ENOMEM', code: 'ENOMEM', syscall: 'spawn' }
    

    I am running MagicMirror2 on a Raspberry Pi 3B+


  • Module Developer

    @blee1997
    Error means Memory shortage. If there is no memory issue from other modules, add afterRecordLimit:0 to your config for Hotword. (See the docs for configuration)



  • @Sean I did a clean install of MM again, added AssistantMk2 and Hotwords. Then added the line to the Hotwords config and the error still occurs.


Log in to reply