-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pyaudio causes "snd_bcm2835..Interrupted..waiting for lock" #931
Comments
I can confirm this sequence is not happy. I see this in dmesg log:
|
Fix here: bb6b4b6 |
Okay, firmware updated. Please run |
Okay! You are a star!! I can confirm that after the rpi-update, concurrent instances of pyaudio and speaker-test can be opened, run and closed correctly. So I am very happy! However I still get
Thanks for your very quick action! |
The good news is those messages in log can be safely ignored. I've changed the severity of those messages locally and CTRL-C of speaker-test is now quiet. I'll include that in next firmware update. |
kernel: alsa: Make interrupted close paths quieter See: raspberrypi/linux#931 kernel: bcm2835-mmc: Add range of debug options for slowing things down kernel: bcm2835-mmc: Default to disabling MMC_QUIRK_BLK_NO_CMD23 kernel: bcm2708-dmaengine: Add debug option for setting wait states See: #397 firmware: arm_loader: Changes to support bcm2835_sdhost driver
kernel: alsa: Make interrupted close paths quieter See: raspberrypi/linux#931 kernel: bcm2835-mmc: Add range of debug options for slowing things down kernel: bcm2835-mmc: Default to disabling MMC_QUIRK_BLK_NO_CMD23 kernel: bcm2708-dmaengine: Add debug option for setting wait states See: raspberrypi/firmware#397 firmware: arm_loader: Changes to support bcm2835_sdhost driver
Latest rpi-update firmware should remove the complaints in dmesg when killing processes using alsa. Can you test? |
Yes, I can confirm that I don't see those messages when killing speaker-test. And the pyaudio works fine at the same time as speaker-test. I would say that this issue is SOLVED! Many thanks for your help! |
kernel: alsa: Make interrupted close paths quieter See: raspberrypi/linux#931 kernel: bcm2835-mmc: Add range of debug options for slowing things down kernel: bcm2835-mmc: Default to disabling MMC_QUIRK_BLK_NO_CMD23 kernel: bcm2708-dmaengine: Add debug option for setting wait states See: raspberrypi#397 firmware: arm_loader: Changes to support bcm2835_sdhost driver
Initially posted here. Raised here at Dom's request.
I have just upgraded my server to a nice new B2 :) and pyaudio started freezing when something else uses the sound system.
It is (relatively) easy to replicate the issue. The symptoms are exactly the same in the following 3 cases:
The B2 has a USB keyboard, hdmi monitor and Broadcom USB Wi-Fi adapter with 2 USB ports (0a5c:bd1e).
What I did:
Flash SDcard with 2015-02-16-raspbian-wheezy.img.
Expand the ext4 filesystem to 5GBytes using gparted on my linux box.
Mount the ext4 filesystem in linux and add my Wi-Fi network to /etc/wpa_supplicant/wpa_supplicant.conf.
Put the SDcard in the B2, boot it and ssh into it.
Check the hdmi speakers work with
then kill speaker-test with CTRL-C
Install pyaudio with
Check that pyaudio is working by running
After the normal ALSA lib warnings, this gives a list of the sound devices found.
So far this is normal behaviour. Now for the error:
Launch the speaker-test again as above and leave it running. Open a second ssh terminal and in that run the python code above while the speaker-test is still running in the first terminal. Python hangs immediately and needs a few CTRL-Cs before it comes back fully to bash. Go back to the speaker-test which is still running. Kill it with CTRL-C and relaunch it. It fails. In /var/log/kern.log you see a few of these
It seems that the sound system is now locked up until the module is removed and reloaded
after which it is the same as freshly booted.
As ever many thanks for everything!!!!!!
The text was updated successfully, but these errors were encountered: