FS#67759 - [portaudio] Crashes when used with pyaudio due to a failed assertion
Attached to Project:
Arch Linux
Opened by Aleksander (zannzetsu) - Sunday, 30 August 2020, 09:06 GMT
Last edited by David Runge (dvzrv) - Thursday, 15 April 2021, 08:28 GMT
Opened by Aleksander (zannzetsu) - Sunday, 30 August 2020, 09:06 GMT
Last edited by David Runge (dvzrv) - Thursday, 15 April 2021, 08:28 GMT
|
Details
Description:
When using portaudio through pyaudio python bindings portaudio will frequently fail due to a failed assertion: "PaAlsaStreamComponent_BeginPolling: Assertion `ret == self->nfds' failed." This is not an uncommon issue. It was reported on the Archlinux boards https://bbs.archlinux.org/viewtopic.php?id=252515 and Stackoverflow https://stackoverflow.com/questions/59006083/how-to-install-portaudio-on-pi-properly. In the comments of the mentioned Stackoverflow post someone links to a patch that Debian pulls to solve this issue. I would love this to be fixed upstream but in the meantime the patch would help a lot. https://sources.debian.org/patches/portaudio19/19.6.0-1.1/944509-crash.patch/ Additional info: * package version: Python 3.8.5-1, pyaudio 0.2.11 (installed via pip for the local user), portaudio 1:19.6.0-7 * link to upstream bug report, if any: https://app.assembla.com/spaces/portaudio/tickets/realtime_list?ticket=271 (it's 3 years old) Steps to reproduce: Run the example script. For me it crashes within the first 15-20 seconds. |
This task depends upon
Closed by David Runge (dvzrv)
Thursday, 15 April 2021, 08:28 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed with portaudio >= 1:19.7.0-1
Thursday, 15 April 2021, 08:28 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed with portaudio >= 1:19.7.0-1
I don't believe there will be another portaudio release anytime soon (if ever). Upstream is pretty stalled and now locked into that weird assembla.com garden :>
I will look into applying the fix. Thanks for all the links! Much appreciated!