MycroftAI / mycroft-core

Mycroft Core, the Mycroft Artificial Intelligence platform.
https://mycroft.ai
Apache License 2.0
6.51k stars 1.27k forks source link

List index out of range #2981

Open Arndorferd opened 3 years ago

Arndorferd commented 3 years ago

Describe the bug Error code and stops listen to further commands

To Reproduce Steps to reproduce the behavior: Ask it something, last was listen to mpr in record was supposed to be listen to npr. It froze and wouldnt listen to other commands Gave error code

Expected behavior Should handle the exception and tell me it doesnt understand

Log files 23:27:28.533 | ERROR | 738 | mycroft.client.speech.listener:transcribe:239 | list index out of range


  ^--- NEWEST ---^ 

**Environment (please complete the following information):**
 - Device type: Raspberry Pi 4
 - OS: Picroft
 - Mycroft-core version: 21.2.0

**Additional context**
Seems like its getting an exception because its not understanding and then it breaks rather than the exception being handled, and saying that it doesnt understand it throws this error
ChanceNCounter commented 3 years ago

Gonna need way more of the log file. Everything from the line that says "Traceback:" down.

Arndorferd commented 3 years ago

Not sure what log file this is just on mycroft-cli-client output, voice.log has a similar amount of data with just

2021-08-21 00:00:08.145 | ERROR | 703 | mycroft.client.speech.listener:transcribe:239 | list index out of range 2021-08-21 00:00:08.148 | ERROR | 703 | mycroft.client.speech.listener:transcribe:240 | Speech Recognition could not understand audio

and no errors surrounding

Arndorferd commented 3 years ago

there is no "Traceback:"

ChanceNCounter commented 3 years ago

How about skills.log?

Arndorferd commented 3 years ago

No errors in skills.log

forslund commented 3 years ago

That error occurs when the STT returns no response if I remember correctly. I.e Mycroft is invoked with "hey mycroft" but then nothing is said afterwards.

Not really an error but the case should be handled better

ChanceNCounter commented 3 years ago

Yeah, but then :skull:, which is different.

forslund commented 3 years ago

Ah yes definitely.

Arndorferd commented 3 years ago

Well as someone who does a lot of bug reporting for open source, false lead warnings and errors need to be handled so that its easier for people to report real issues.

JarbasAl commented 3 years ago

didnt @ken-mycroft mention fixing this issue some time back in chat?

krisgesling commented 3 years ago

Yeah it's on the list to fix up - fully agree that false warnings make things harder so even if it's not "failing" as such, we still want to squish it.