You are not logged in.

#1 2020-01-30 10:20:16

Registered: 2012-01-28
Posts: 15

PaAlsaStreamComponent_BeginPolling: Assertion `ret == self->nfds' fail

When I try to run `soundmeter` (a python script: it always runs fine for some amount of time, but then, invariably, fails with the following error:

python: src/hostapi/alsa/pa_linux_alsa.c:3636: PaAlsaStreamComponent_BeginPolling: Assertion `ret == self->nfds' failed.
Aborted (core dumped)

My googling revealed this is a fairly common issue: … -dont-know … 68/details

And I think that the problem is that PortAudio/ALSA throws an assert error (which is actually "just" an xrun?), but bubbles up and crashes the application.

The last link, the portaudio ticket, seems to indicate it was fixed somewhere, but I don't really know ALSA all that well, so I don't think I can just fix the issue myself using the alternative pa_linux_alsa.c file that's on there; and in any case, it's a thread from 2018, and I doubt it would work on the latest version. I was also thinking that ArchLinux may have its own patched version of ALSA somewhere, or another solution to this issue.

What should I do? Thanks in advance!

edit: for the record:

$ pacman -Q|grep pulse
libpulse 13.0-3.0
pulseaudio 13.0-3.0

edit2: This really is a bug of PortAudio; even their examples trigger this error.

Last edited by Theon144 (2020-01-30 13:42:33)


Board footer

Powered by FluxBB