Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

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 freswa (frederik) - Sunday, 30 August 2020, 23:36 GMT
Task Type Bug Report
Category Upstream Bugs
Status Assigned
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 0%
Votes 0
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

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

Loading...