-
Notifications
You must be signed in to change notification settings - Fork 8
Assitant module freezes after some use (Uncaught TypeError) #25
Comments
This may be related to #9... |
Not sure if related, but I found this in the error log in the updated version when frozen.
The code generating the log message is: .on('error', (error) => {
console.log('[ASSTNT] Conversation Error:', error);
record.stop()
this.sendSocketNotification('ERROR', 'CONVERSATION')
}) |
Another error that arrived today out-of-the-blue, while using Google.
I have no fcuking idea what this means! If this has anything to do with this module, then line 259 is here: conversation
.on('audio-data', (data) => {
//record.stop()
const now = new Date().getTime()
if (mode == 'ASSISTANT') {
this.sendSocketNotification('MODE', {mode:'ASSISTANT_SPEAKING'})
speaker.write(data); // <<=== ERROR LINE ===================
spokenResponseLength += data.length;
const audioTime = spokenResponseLength / (this.config.assistant.conversation.audio.sampleRateOut * 16 / 8) * 1000;
clearTimeout(speakerTimer);
speakerTimer = setTimeout(() => { speaker.end(); }, audioTime - Math.max(0, now - speakerOpenTime));
} else { |
The original error is coming from Line 133 in alert.js of the default hide_alert: function(sender) {
//Dismiss alert and remove from this.alerts
this.alerts[sender.name].dismiss(); // <<========= LINE 113 !
this.alerts[sender.name] = null;
//Remove overlay
var overlay = document.getElementById("overlay");
overlay.parentNode.removeChild(overlay);
}, I have filed an issue here. |
note:
EDIT: systemd seem to com from cron... EDIT2: This comment invalid. |
This was fixed in MM PR: MagicMirrorOrg/MagicMirror#1248 The other issues now seem unrelated to OP. (Open new issue for those if they re-occur.) |
PS. To fix this while MM hide_alert: function(sender) {
//Dismiss alert and remove from this.alerts
if (this.alerts[sender.name]) {
this.alerts[sender.name].dismiss();
this.alerts[sender.name] = null;
//Remove overlay
var overlay = document.getElementById("overlay");
overlay.parentNode.removeChild(overlay);
}
}, |
After having my assistant put to test, it suddenly froze while recording.
Uncaught TypeError: Cannot read property 'dismiss' of null
I'm not sure which
alert.js
this come from.Here is a screenshot:
This might be related to #12.
The text was updated successfully, but these errors were encountered: