{"action":"opened","issue":{"url":"https://api.github.com/repos/Kitt-AI/snowboy/issues/395","repository_url":"https://api.github.com/repos/Kitt-AI/snowboy","labels_url":"https://api.github.com/repos/Kitt-AI/snowboy/issues/395/labels{/name}","comments_url":"https://api.github.com/repos/Kitt-AI/snowboy/issues/395/comments","events_url":"https://api.github.com/repos/Kitt-AI/snowboy/issues/395/events","html_url":"https://github.com/Kitt-AI/snowboy/issues/395","id":302039385,"number":395,"title":"ALSA errors & Thread Errors","user":{"login":"bzmar","id":9291280,"avatar_url":"https://avatars2.githubusercontent.com/u/9291280?v=4","gravatar_id":"","url":"https://api.github.com/users/bzmar","html_url":"https://github.com/bzmar","followers_url":"https://api.github.com/users/bzmar/followers","following_url":"https://api.github.com/users/bzmar/following{/other_user}","gists_url":"https://api.github.com/users/bzmar/gists{/gist_id}","starred_url":"https://api.github.com/users/bzmar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bzmar/subscriptions","organizations_url":"https://api.github.com/users/bzmar/orgs","repos_url":"https://api.github.com/users/bzmar/repos","events_url":"https://api.github.com/users/bzmar/events{/privacy}","received_events_url":"https://api.github.com/users/bzmar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-03T22:53:26Z","updated_at":"2018-03-03T22:53:26Z","closed_at":null,"author_association":"NONE","body":"Quick Question,\r\n\r\nI'm running the demo.py with a personal.pdml. I was able to remove some of the errors by commenting out some lines in alsa.conf in the /use/share/alsa. However, there are three different types of errors I am getting:\r\n\r\n**When it works on first run I get:**\r\nALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'\r\nALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory\r\nALSA lib conf.c:4996:(snd_config_expand) Args evaluate error: No such file or directory\r\nALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM bluealsa\r\nALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'\r\nALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory\r\nALSA lib conf.c:4996:(snd_config_expand) Args evaluate error: No such file or directory\r\nALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM bluealsa\r\nconnect(2) call to /tmp/jack-1000/default/jack_0 failed (err=No such file or directory)\r\nattempt to connect to server failed\r\nListening... Press Ctrl+C to exit\r\n\r\n**Then after first run it will crash with these errors:**\r\nALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.front.0:CARD=0'\r\nALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory\r\nALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory\r\nALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM front\r\nALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'\r\nALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory\r\nALSA lib conf.c:4996:(snd_config_expand) Args evaluate error: No such file or directory\r\nALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM bluealsa\r\nALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'\r\nALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory\r\nALSA lib conf.c:4996:(snd_config_expand) Args evaluate error: No such file or directory\r\nALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM bluealsa\r\nconnect(2) call to /tmp/jack-1000/default/jack_0 failed (err=No such file or directory)\r\nattempt to connect to server failed\r\nExpression 'paTimedOut' failed in 'src/os/unix/pa_unix_util.c', line: 387\r\nExpression 'PaUnixThread_New( &stream->thread, &CallbackThreadFunc, stream, 1., stream->rtSched )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2998\r\nExpression 'pthread_join( self->thread, &pret )' failed in 'src/os/unix/pa_unix_util.c', line: 441\r\n\r\n\r\n**After crashing I get these errors:**\r\nALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'\r\nALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory\r\nALSA lib conf.c:4996:(snd_config_expand) Args evaluate error: No such file or directory\r\nALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM bluealsa\r\nALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'\r\nALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory\r\nALSA lib conf.c:4996:(snd_config_expand) Args evaluate error: No such file or directory\r\nALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM bluealsa\r\nconnect(2) call to /tmp/jack-1000/default/jack_0 failed (err=No such file or directory)\r\nattempt to connect to server failed\r\nTraceback (most recent call last):\r\n  File \"demo.py\", line 27, in <module>\r\n    detector = snowboydecoder.HotwordDetector(model, sensitivity=0.5)\r\n  File \"/home/pi/rpi-arm-raspbian-8.0-1.1.1/snowboydecoder.py\", line 126, in __init__\r\n    stream_callback=audio_callback)\r\n  File \"/usr/lib/python2.7/dist-packages/pyaudio.py\", line 750, in open\r\n    stream = Stream(self, *args, **kwargs)\r\n  File \"/usr/lib/python2.7/dist-packages/pyaudio.py\", line 441, in __init__\r\n    self._stream = pa.open(**arguments)\r\nIOError: [Errno -9996] Invalid input device (no default output device)\r\n\r\nAnyone aware of fixes for the thread issue?\r\n"}}
{"actor":{"display_login":"bzmar"}}