Bug 554568 - "Unable to create stream: Too large"
Summary: "Unable to create stream: Too large"
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: pulseaudio
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Lennart Poettering
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 538472 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-12 00:58 UTC by David Woodhouse
Modified: 2010-03-06 03:42 UTC (History)
6 users (show)

Fixed In Version: pulseaudio-0.9.21-5.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-02-23 23:21:18 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
output from 'pacmd ls' (27.99 KB, text/plain)
2010-01-12 02:17 UTC, David Woodhouse
no flags Details
Output of "pacmd list" (59.66 KB, text/plain)
2010-01-21 21:10 UTC, Joshua M. Thompson
no flags Details
Output of pacmd ls (58.85 KB, text/plain)
2010-01-30 16:06 UTC, Debarshi Ray
no flags Details
Output of pactl list (55.59 KB, text/plain)
2010-01-30 16:07 UTC, Debarshi Ray
no flags Details

Description David Woodhouse 2010-01-12 00:58:15 UTC
Sound doesn't work in flash player. If I run firefox from a terminal, I see:

ALSA lib pcm_pulse.c:724:(pulse_prepare) PulseAudio: Unable to create stream: Too large

Comment 1 Lennart Poettering 2010-01-12 02:09:45 UTC
"too large" is mostly a badly named error that indicates that some limit is reached regarding the number of streams that may be used concurrently. Most likely Flash might be leaking streams. Please run "pacmd ls" and attach the output here.

Comment 2 David Woodhouse 2010-01-12 02:17:25 UTC
[dwmw2@macbook ~]$ pacmd ls
No PulseAudio daemon running, or not running as session daemon.
[dwmw2@macbook ~]$ ps axf | grep pulse
22747 pts/5    S+     0:00      \_ grep pulse
27004 ?        S<sl   5:11 /usr/bin/pulseaudio --start --log-target=syslog
27062 ?        S      0:00  \_ /usr/libexec/pulse/gconf-helper
[dwmw2@macbook ~]$ play 99.ogg 
ALSA lib pcm_pulse.c:724:(pulse_prepare) PulseAudio: Unable to create stream: Too large

play formats: can't open output file `default': cannot set parameters
[dwmw2@macbook ~]$ killall pulseaudio
[dwmw2@macbook ~]$ play 99.ogg 

99.ogg:

  Encoding: Vorbis        
  Channels: 2 @ 16-bit   Track: 05
Samplerate: 44100Hz      Album: The Best Of Suzanne Vega - Tried And True
Replaygain: off         Artist: Suzanne Vega
  Duration: 00:03:14.00  Title: 99.9F°

In:0.62% 00:00:01.21 [00:03:12.79] Out:53.2k [ -====|====  ] Hd:0.0 Clip:0    ^C
Aborted.
[dwmw2@macbook ~]$ pacmd ls
Welcome to PulseAudio! Use "help" for usage information.
 ... will attach ...

Comment 3 David Woodhouse 2010-01-12 02:17:47 UTC
Created attachment 383154 [details]
output from 'pacmd ls'

Comment 4 David Woodhouse 2010-01-12 02:19:34 UTC
I had killed and restarted firefox -- shouldn't that have ensured that any flash player streams were also gone?

Comment 5 Lennart Poettering 2010-01-12 16:03:04 UTC
The interesting "pacmd ls" output is of course when PA is refusing further streams to be created. "pactl list" would be similarly interesting.

Is there any interesting output in syslog?

Comment 6 Lennart Poettering 2010-01-12 16:04:52 UTC
(In reply to comment #2)
> [dwmw2@macbook ~]$ pacmd ls
> No PulseAudio daemon running, or not running as session daemon.

If pacmd des not find the control socket that is necessary for its work it sends pa a SIGUSR1 which loads the module which provides that socket. It waits 200ms or so for that. if your PA is overloaded because too many streams are created in a loop those 200ms might not suffice, hence try to run pacmd ls a couple of times.

Comment 7 David Woodhouse 2010-01-12 17:13:31 UTC
Lots of these... 
Jan 12 02:14:38 macbook pulseaudio[27004]: sink-input.c: Failed to create sink input: too many inputs per sink.
Jan 12 02:14:38 macbook pulseaudio[27004]: sink-input.c: Failed to create sink input: too many inputs per sink.
Jan 12 02:14:38 macbook pulseaudio[27004]: sink-input.c: Failed to create sink input: too many inputs per sink.
Jan 12 02:14:38 macbook pulseaudio[27004]: sink-input.c: Failed to create sink input: too many inputs per sink.
Jan 12 02:14:40 macbook pulseaudio[27004]: sink-input.c: Failed to create sink input: too many inputs per sink.
Jan 12 02:14:59 macbook pulseaudio[27004]: sink-input.c: Failed to create sink input: too many inputs per sink.


I had run 'pacmd ls' a few times, and got the same result every time. I just showed you one.

I don't know why PA would be overloaded -- this system doesn't really _do_ anything with audio except for the occasional use of flash player (or xine), and when the cats hit the pause/play button mpd will sometimes start playing something.

Comment 8 Lennart Poettering 2010-01-12 20:11:20 UTC
Maybe some app plays an event sound?

PA seems to think that there are too many streams lingering. The question is, which ones are those. 

Does "pactl list" give any useful output when this problem occurs?

Comment 9 Joshua M. Thompson 2010-01-21 21:10:53 UTC
Created attachment 386011 [details]
Output of "pacmd list"

Output of "pacmd list" when my system is having the "Unable to create stream: Too large" error

Comment 10 Joshua M. Thompson 2010-01-21 21:14:59 UTC
I just attached an output of the problem in progress on my system. It appears that there are 32 stuck sink inputs for gnome-terminal's error bell. I'm not sure how this happens though because I can't actually seem to make it happen manually, even if I sit in a terminal window and hold down the backspace key to force nonstop error bells.

Comment 11 Debarshi Ray 2010-01-30 16:06:23 UTC
Created attachment 387749 [details]
Output of pacmd ls

Comment 12 Debarshi Ray 2010-01-30 16:07:07 UTC
Created attachment 387750 [details]
Output of pactl list

Comment 13 Debarshi Ray 2010-01-30 16:09:23 UTC
The above outputs of 'pacmd ls' and 'pactl list' are taken when both Totem and MPlayer suffer from this problem.

Comment 14 Lennart Poettering 2010-02-16 01:36:55 UTC
Hmm, this is weird. I really wonder how I could reproduce this on my system here... The bell sounds seem to e stuck in DRAINED state, which should be impossible...

Comment 15 Lennart Poettering 2010-02-23 02:33:17 UTC
This is now fixed upstream. Cached samples that were played by libcanberra did get queued up while an audio device was suspended but could not get unsuspended, thus taking up all slots sooner or later.

Will upload a new version soon.

Comment 16 Lennart Poettering 2010-02-23 02:35:53 UTC
*** Bug 538472 has been marked as a duplicate of this bug. ***

Comment 17 Fedora Update System 2010-02-23 23:12:41 UTC
pulseaudio-0.9.21-6.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/pulseaudio-0.9.21-6.fc13

Comment 18 Fedora Update System 2010-02-23 23:13:10 UTC
pulseaudio-0.9.21-5.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/pulseaudio-0.9.21-5.fc12

Comment 19 Fedora Update System 2010-03-05 03:40:54 UTC
pulseaudio-0.9.21-6.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 20 Fedora Update System 2010-03-06 03:41:39 UTC
pulseaudio-0.9.21-5.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.