Alsa issue causing mycroft to freeze

Ok so I have recently installed mycroft on a raspberry pi running ubuntu mate. It registered just find on the new home.mycroft.com and everything was going smoothly. The microphone is from a USB webcam and the speakers are plugged into the audio port with a USB providing power. The issues arise when a skill is called that has two responses.

Ex: "I don’t know …’

Followed By: “Maybe you meant …”

The first phrase is read aloud exactly as it should be and then mycroft hangs on the second phrase. Based on the logs it looks like Alsa suddenly can’t find the sound card the second time.

ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition ‘cards.bcm2835.pcm.front.0:CARD=0’^M
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory^M
ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: No such file or directory^M
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM front^M
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear^M
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe^M
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side^M
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition ‘cards.bcm2835.pcm.surround51.0:CARD=0’^M
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory^M
ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: No such file or directory^M
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM surround21^M
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition ‘cards.bcm2835.pcm.surround51.0:CARD=0’^M
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory^M
ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: No such file or directory^M
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM surround21^M
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition ‘cards.bcm2835.pcm.surround40.0:CARD=0’^M
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory^M
ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: No such file or directory^M
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM surround40^M
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition ‘cards.bcm2835.pcm.surround51.0:CARD=0’^M
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory^M
ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: No such file or directory^M
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM surround41^M
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition ‘cards.bcm2835.pcm.surround51.0:CARD=0’^M
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory^M
ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: No such file or directory^M
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM surround50^M
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition ‘cards.bcm2835.pcm.surround51.0:CARD=0’^M
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory^M
ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: No such file or directory^M
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM surround51^M
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition ‘cards.bcm2835.pcm.surround71.0:CARD=0’^M
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory^M
ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: No such file or directory^M
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM surround71^M
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition ‘cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2’^M
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory^M
ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: No such file or directory^M
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition ‘cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2’^M
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory^M
ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: No such file or directory^M
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM iec958^M
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition ‘cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2’^M
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory^M
ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: No such file or directory^M
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM spdif^M
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition ‘cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2’^M
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory^M
ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: No such file or directory^M
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM spdif^M
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi^M
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi^M
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem^M
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem^M
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline^M
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline^M
Cannot connect to server socket err = No such file or directory^M
Cannot connect to server request channel^M
jack server is not running or cannot be started^M
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock^M
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock^M
2016-12-26 15:44:19,187 - mycroft.messagebus.client.ws - INFO - Connected^M
fatal: Not a git repository (or any of the parent directories): .git^M
2016-12-26 15:44:19,501 - mycroft.util.setup_base - DEBUG - No module named version^M
2016-12-26 15:44:19,501 - mycroft.util.setup_base - ERROR - Command ‘[‘git’, ‘rev-parse’, ‘–short’, ‘HEAD’]’ returned non-zero exit status 128^M
Traceback (most recent call last):^M
File “/home/jpatton/Mycroft/mycroft-core-master/mycroft/util/setup_base.py”, line 44, in get_version^M
[“git”, “rev-parse”, “–short”, “HEAD”]).strip()^M
File “/usr/lib/python2.7/subprocess.py”, line 574, in check_output^M
raise CalledProcessError(retcode, cmd, output=output)^M
CalledProcessError: Command ‘[‘git’, ‘rev-parse’, ‘–short’, ‘HEAD’]’ returned non-zero exit status 128^M

Interestingly if I play the temp.wav file in VLC a couple of times mycroft usually starts to function once again.

Anyone have any ideas?

Thanks,
John

I got the same error on a Raspberry Pi with the provided SD Card image

Are you still using raspberry pi?