I run JACK concurrently with Pulseaudio, with several custom audio sinks/sources which I control live using REAPER. It is an unconventional setup, and this is probably why there is a problem, but the problem still shouldn’t happen regardless.
My OBS configuration, when started, creates about 3-5 playback streams and starts recording about 5-7 sources (either through pulse or jack, same results either way).
About 1 in 4 times I start OBS, Pulseaudio crashes, which means all audio-using applications have to be restarted, including JACK and REAPER. It’s very annoying and time-wasting.
It happens much more reliably if I have bluetooth connected, and much less often if I haven’t slept the PC since booting. Regardless the recurrence is very inconsistent.
the Pulseaudio logs just say ‘too many open files’ a couple dozen times then it restarts from the socket/service. Nothing else in the logs relates to the crash but I’m happy to provide logs on request if anyone thinks any particular log would be helpful.
Seeing this error message, I tried increasing my open files ulimit. After testing, it seems to be irrelevant to the problem. Even though the number of open files far exceeded the ulimit at the time, increasing the limit to a stupid high number made no difference. Launching OBS added about 3-6k open files, where most programs open less, but not orders-of-magnitude less. When the bug occurred, my open files was around 17k.
I’m mostly asking here because I suspect there’s some simple limiter in pulseaudio I’m not aware of which is rarely relevant but which someone here might know about. Hopefully this problem is that simple to solve.
Thanks in advance.