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
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Lukas Fleischer (lfleischer)
David Runge (dvzrv)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

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
Comment by David Runge (dvzrv) - Friday, 04 September 2020, 21:23 GMT
@zannzetsu: Thanks for the report!

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!
Comment by David Runge (dvzrv) - Saturday, 10 October 2020, 09:50 GMT
@zannzetsu: portaudio has just been moved to github: https://github.com/portaudio/portaudio
Comment by David Runge (dvzrv) - Thursday, 08 April 2021, 10:21 GMT
@zannzetsu: Is this fixed with portaudio >= 1:19.7.0-1?
Comment by Aleksander (zannzetsu) - Thursday, 15 April 2021, 06:34 GMT
This is indeed fixed. :D

Loading...