A single frozen application blocks audio output on the entire system
- PipeWire version (
pipewire --version
): 0.3.79 - Distribution and distribution version (
PRETTY_NAME
from/etc/os-release
): Arch Linux - Desktop Environment: Xfce
- Kernel version (
uname -r
): 6.5.2-arch1-1
Description of Problem:
A single frozen application will cause all audio output to freeze.
How Reproducible:
OpenAL makes this very easy to reproduce and has a native PW backend in case it matters.
#include <stddef.h>
#include <assert.h>
#include <signal.h>
#include <AL/al.h>
#include <AL/alc.h>
int main()
{
ALCdevice *dev = alcOpenDevice(NULL);
assert(dev);
ALCcontext *ctx = alcCreateContext(dev, NULL);
assert(ctx);
ALCboolean ok = alcMakeContextCurrent(ctx);
assert(ok);
kill(0, SIGSTOP);
alcMakeContextCurrent(NULL);
alcDestroyContext(ctx);
alcCloseDevice(dev);
return 0;
}
compile with gcc test.c -o test $(pkg-config --libs openal)
Steps to Reproduce:
- Use a music player or anything else to output audio
- Run
./test
Actual Results:
- Notice that all audio output has frozen
Once test is resumed (or terminated) audio output instantly works again.
Expected Results:
- Nothing happens