After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 625948 - pa_stream_writable_size() failed: Connection terminated
pa_stream_writable_size() failed: Connection terminated
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
0.10.24
Other Linux
: Normal major
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-08-03 15:04 UTC by eddie
Modified: 2011-04-29 07:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Debug log (reproduced problem, Totem displayed an error) (87.58 KB, application/x-gzip)
2010-08-04 10:44 UTC, Theodore Lee
Details
gzipped dbg.log (82.81 KB, application/x-gzip)
2010-08-04 15:14 UTC, eddie
Details
debug log with gst-launch pipeline (18.11 KB, application/x-gzip)
2010-08-16 04:12 UTC, Elliott Sales de Andrade
Details

Description eddie 2010-08-03 15:04:10 UTC
When playing a DVD totem displays a message:

"An error occured"

"pa_stream_writable_size() failed: Connection terminated"

And the DVD refuses to play.


As far as I can tell this happens with AC3 streams regardless of being stereo
(2-ch) or sourround (3.1/5.1) sound. The problem seems to
be in the a52dec driver, part of gstreamer-plugins-good.

A bug for this issue was raised at redhat bugzilla:
https://bugzilla.redhat.com/show_bug.cgi?id=566915

Please see that bug too for more details.

As a "metoo", I'm seeing this issue playing .mkv files in totem, all of which
play fine in vlc.

The totem error message coincides with the pulseaudio daemon crashing and being
restarted, which may indicate an issue on the pulse side as well -- no matter
what gstreamer plugins are doing wrong to trigger this, they shouldn't be able
to take out pulseaudio.
Comment 1 Tim-Philipp Müller 2010-08-04 08:54:05 UTC
If pulseaudio crashes, that's always a bug in pulseaudio. As you say, a client (here: GStreamer) shouldn't be able to take out pulseaudio.

In any case, could you provide the following information:

 - what version of pulseaudio are you using?

 - what's the output of  gst-inspect-0.10 pulsesink | grep Version ?

 - what's the output of gst-inspect-0.10 rsndvdbin | grep Version ?

 - what's the output of gst-inspect-0.10 a52dec | grep Version ?

 - could you run totem like this from a terminal:

     $ GST_DEBUG=pulse*:5,*audio*:5,a52*:5  totem  2>dbg.log

   and reproduce the crash/error, and then attach the gzipped
   dbg.log file to this bug report please? (If the file is too large,
   run  grep -v REFCOUNT dbg.log > clean-dbg.log
   and try with the gzipped clean-dbg.log instead.)
Comment 2 Theodore Lee 2010-08-04 10:43:53 UTC
I've also run into this bug while playing certain Ogg Vorbis audio files with Totem.

$ pulseaudio --version
pulseaudio 0.9.21
$ rpm -q pulseaudio
pulseaudio-0.9.21-6.fc13.i686

$ gst-inspect-0.10 pulsesink | grep Version
  Version:		0.10.24

$ gst-inspect-0.10 rsndvdbin | grep Version
  Version:		0.10.19

$ gst-inspect-0.10 a52dec | grep Version
  Version:		0.10.15

Oddly enough, when I tried to reproduce the crash for the debug output, Totem failed in two different ways. One time it ran for a couple of seconds (with no audio output) and then displayed an error, as described earlier. On another try it ran for considerably longer, then crashed.

I should also note that I have a similar problem playing the same files in Banshee, but not in VLC, which seems to point to gstreamer as the common factor.
Comment 3 Theodore Lee 2010-08-04 10:44:49 UTC
Created attachment 167103 [details]
Debug log (reproduced problem, Totem displayed an error)
Comment 4 Theodore Lee 2010-08-04 10:54:34 UTC
The second debug log (with the crash) was too large to attach and didn't seem to have any REFCOUNT entries in it, so I've uploaded it to MediaFire[1].

[1] http://www.mediafire.com/?j7jegbryj44fu2d
Comment 5 eddie 2010-08-04 15:14:28 UTC
Created attachment 167119 [details]
gzipped dbg.log

[eddie@p3000fedora ~]$ rpm -q pulseaudio
pulseaudio-0.9.21-6.fc13.i686
[eddie@p3000fedora ~]$ gst-inspect-0.10 pulsesink | grep Version
  Version:		0.10.24
[eddie@p3000fedora ~]$ gst-inspect-0.10 rsndvdbin | grep Version
  Version:		0.10.19
[eddie@p3000fedora ~]$ gst-inspect-0.10 a52dec | grep Version
  Version:		0.10.15
[eddie@p3000fedora ~]$
Comment 6 eddie 2010-08-04 17:50:39 UTC
I provided the requested information.
Comment 7 Elliott Sales de Andrade 2010-08-16 04:11:27 UTC
A much simpler test is to use a sample stream at a non-native sample rate.
My card supports 48kHz, so that can be done with this pipeline: `gst-launch audiotestsrc ! audio/x-raw-int,rate=44100 ! pulsesink`

I've attached the log with GST_DEBUG=pulse*:5,*audio*:5 set.

Versions:
$ rpm -q pulseaudio
pulseaudio-0.9.21-6.fc13.x86_64
$ gst-inspect-0.10 pulsesink | grep Version
  Version:		0.10.24
Comment 8 Elliott Sales de Andrade 2010-08-16 04:12:09 UTC
Created attachment 167926 [details]
debug log with gst-launch pipeline
Comment 9 Sitsofe Wheeler 2011-04-23 09:50:16 UTC
Previously I was able to use the following to cause problems on an EeePC 900:
wget -O 8_Channel_ID.wav http://iespuigcastellar.xeill.net/Members/rborrell/c2/unitat-didactica-3-els-periferics/na4-dispositius-de-reproduccio-grafica-i-de-so/8_channel_id.wav/download
gst-launch-0.10 filesrc location=8_Channel_ID.wav ! decodebin ! audioconvert ! audioresample ! pulsesink

(especially when speex-float-3 or above was the resample method)

However, I am not seeing these problems in the new distributions (e.g. Fedora 15, Ubuntu 11.04). I suspect the following patches have had a significant difference:

http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=1e2c1467ae042a3c6bb1a6bc0c07aeff13ec5edb
http://git.0pointer.de/?p=pulseaudio.git;a=commit;h=fe7b972487bfc85940d2d427096fd9189af3bd7a
http://git.0pointer.de/?p=pulseaudio.git;a=commit;h=74eb4d892137f6ba4d87b011e46118668187307b

The above patches were created by David Henningsson  after investigation into issues surrounding "Frequent PA crashes during playback - pa_stream_cork() failed: Connection terminated and pa_stream_writable_size(): Connection failed" - https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/644644 .

Are others still seeing the same problems in the soon to be released distros?
Comment 10 eddie 2011-04-26 15:01:21 UTC
I can't tell since i upgraded my system which has an on-board intel hd audio sound system and a core i5 processor now, sorry.
Comment 11 Elliott Sales de Andrade 2011-04-26 21:29:49 UTC
I can still see the problem in F14 with pulseaudio-0.9.21-7.fc14.x86_64 and pulsesink 0.10.26.

However, I did try out F15 Beta for a little bit and remember the audio being better "out of the box". But I did not do a specific test of it. I will try out F15 with a real test when I get a chance again soon.
Comment 12 Elliott Sales de Andrade 2011-04-28 20:36:22 UTC
OK, I tried on F15 now. My sample command above works just fine with the following:
$ rpm -q pulseaudio
pulseaudio-0.9.22-5.fc15.x86_64
$ gst-inspect pulsesink|grep Version
  Version:        0.10.27