Pulseaudio - too many inputs per sink.
by rarog from LinuxQuestions.org on (#4ZQQT)
Hi,
I'm having another problem related with Pulseaudio and Firefox.
Slackware x64 current
Code:Linux5.4.20 #1 SMP Fri Feb 14 18:48:06 CST 2020Pulseaudio 13.0
Firefox 73.0.1 (64 bit)
During normal web browsing I'm capable of exceeding pulseaudio sink-inputs limit. Which causes Firefox to crash. Then I need to kill and restore Firefox session to be able to continue browsing. Sometimes I need to kill Pulseaudio as well.
After that all created sink inputs are dropped and I'm able to continue browsing.
Is there a way to manually or automatically clear unused sink-inputs?
On some pages with "infinity" content to scroll, Firefox creates audio inputs on every media content with sound even if I don't play it(unmute it). When I've scroll long enough I'm getting
Code:[pulseaudio] sink-input.c: Failed to create sink input: too many inputs per sink.in syslog.
I think there is sink-input limit of 255 per source in Pulseaudio and during everyday use I'm capable of exceeding it.
Raising that limit won't be a good idea, but clearing old, existing and unused sink-inputs may do the trick. Is there a way to do it?
Problem occurred in other browsers as well, but have different symptoms. For example Konquereor became unresponsive even before reaching inputs limit. But it had still create them and keep them.


I'm having another problem related with Pulseaudio and Firefox.
Slackware x64 current
Code:Linux5.4.20 #1 SMP Fri Feb 14 18:48:06 CST 2020Pulseaudio 13.0
Firefox 73.0.1 (64 bit)
During normal web browsing I'm capable of exceeding pulseaudio sink-inputs limit. Which causes Firefox to crash. Then I need to kill and restore Firefox session to be able to continue browsing. Sometimes I need to kill Pulseaudio as well.
After that all created sink inputs are dropped and I'm able to continue browsing.
Is there a way to manually or automatically clear unused sink-inputs?
On some pages with "infinity" content to scroll, Firefox creates audio inputs on every media content with sound even if I don't play it(unmute it). When I've scroll long enough I'm getting
Code:[pulseaudio] sink-input.c: Failed to create sink input: too many inputs per sink.in syslog.
I think there is sink-input limit of 255 per source in Pulseaudio and during everyday use I'm capable of exceeding it.
Raising that limit won't be a good idea, but clearing old, existing and unused sink-inputs may do the trick. Is there a way to do it?
Problem occurred in other browsers as well, but have different symptoms. For example Konquereor became unresponsive even before reaching inputs limit. But it had still create them and keep them.