"Failed to connect stream: Invalid argument"

Bug #191027 reported by Ricardo Jorge Maçãs
384
This bug affects 21 people
Affects Status Importance Assigned to Milestone
pulseaudio (Ubuntu)
Fix Released
High
bond
Declined for Intrepid by Steve Langasek
Hardy
Invalid
High
Unassigned
totem (Ubuntu)
Invalid
High
Ubuntu Desktop Bugs
Declined for Intrepid by Steve Langasek
Hardy
Invalid
High
Ubuntu Desktop Bugs

Bug Description

Binary package hint: totem

I am unable to play any type of content in Totem,
and, the opening Melodie (when the computers starts) sounds awfully...
I'm using the latest alpha development version of Hardy...
Update1: I'm also having trouble within Rhythmbox, so I did an Hardware report and then I uploaded it within the Hardware collection tool in Ubuntu, because I think there is some problem in ubuntu and the system isn't using my sound card correctly.
Update2: The same error happens in the Sound control panel : System -> Preferences -> Sound

ProblemType: Bug
Architecture: amd64
Date: Mon Feb 11 18:03:45 2008
DistroRelease: Ubuntu 8.04 and 9.04
ExecutablePath: /usr/bin/totem-gstreamer
NonfreeKernelModules: nvidia
Package: totem-gstreamer 2.21.92-0ubuntu2
PackageArchitecture: amd64
ProcCwd: /home/ricardo
ProcEnviron:
 LANGUAGE=pt_PT:pt:pt_BR:en_GB:en
 PATH=/home/ricardo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=pt_PT.UTF-8
 SHELL=/bin/bash
SourcePackage: totem
Uname: Linux ricardo-laptop 2.6.24-7-generic #1 SMP Thu Feb 7 00:56:31 UTC 2008 x86_64 GNU/Linux

Tags: apport-bug
Revision history for this message
Ricardo Jorge Maçãs (ricmacas-familia) wrote :
description: updated
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thanks for your report, May you please run totem from the command line as: GST_DEBUG_NO_COLOR=1 GST_DEBUG=3 totem --debug &>totem.txt and attach that log to the report? thanks in advance.

Changed in totem:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Ricardo Jorge Maçãs (ricmacas-familia) wrote :

totem --debug &>totem.txt

Revision history for this message
Ricardo Jorge Maçãs (ricmacas-familia) wrote :

GST_DEBUG_NO_COLOR=1 GST_DEBUG=3 totem --debug &>totem.txt

Revision history for this message
Ricardo Jorge Maçãs (ricmacas-familia) wrote :

Sent 2 reports :
first one is for "totem --debug &>totem.txt"
second is for "GST_DEBUG_NO_COLOR=1 GST_DEBUG=3 totem --debug &>totem.txt"

Thank you in advance

Revision history for this message
Ricardo Jorge Maçãs (ricmacas-familia) wrote :
Download full text (3.9 KiB)

This is the error in the :

-First file:
"** Message: Error: Failed to connect stream: Invalid argument
pulsesink.c(411): gst_pulsesink_prepare (): /play/visbin/abin/audiosinkbin/audio-sink/bin6/autoaudiosink1/autoaudiosink1-actual-sink-pulse"

-Second file:
"0:00:13.597582229 20869 0x6635d0 INFO GST_REFCOUNTING gstelement.c:2762:gst_element_finalize:<fakesink> finalize parent
0:00:13.613154509 20869 0xef6790 INFO audioconvert audioconvert.c:455:audio_convert_prepare_context: use int mixing
0:00:13.613210036 20869 0xef6790 INFO audioconvert audioconvert.c:461:audio_convert_prepare_context: unitsizes: 8 -> 8
0:00:13.613223166 20869 0xef6790 INFO audioconvert audioconvert.c:471:audio_convert_prepare_context: in default 1, mix passthrough 1, out default 1
0:00:13.615043054 20869 0xef6790 WARN pulse pulsesink.c:411:gst_pulsesink_prepare:<autoaudiosink1-actual-sink-pulse> error: Failed to connect stream: Invalid argument
0:00:13.615132317 20869 0xef6790 INFO GST_ERROR_SYSTEM gstelement.c:1659:gst_element_message_full:<autoaudiosink1-actual-sink-pulse> posting message: Failed to connect stream: Invalid argument
0:00:13.615204537 20869 0xef6790 INFO GST_ERROR_SYSTEM gstelement.c:1682:gst_element_message_full:<autoaudiosink1-actual-sink-pulse> posted error message: Failed to connect stream: Invalid argument
0:00:13.620331807 20869 0x6635d0 ERROR totem /build/buildd/totem-2.21.92/src/backend/bacon-video-widget-gst-0.10.c:324:bvw_error_msg: message = Failed to connect stream: Invalid argument
0:00:13.620379023 20869 0x6635d0 ERROR totem /build/buildd/totem-2.21.92/src/backend/bacon-video-widget-gst-0.10.c:326:bvw_error_msg: domain = 2521 (gst-resource-error-quark)
0:00:13.620392363 20869 0x6635d0 ERROR totem /build/buildd/totem-2.21.92/src/backend/bacon-video-widget-gst-0.10.c:327:bvw_error_msg: code = 1
0:00:13.620403189 20869 0x6635d0 ERROR totem /build/buildd/totem-2.21.92/src/backend/bacon-video-widget-gst-0.10.c:328:bvw_error_msg: debug = pulsesink.c(411): gst_pulsesink_prepare (): /play/visbin/abin/audiosinkbin/audio-sink/bin6/autoaudiosink1/autoaudiosink1-actual-sink-pulse
0:00:13.620414364 20869 0x6635d0 ERROR totem /build/buildd/totem-2.21.92/src/backend/bacon-video-widget-gst-0.10.c:329:bvw_error_msg: source = <autoaudiosink1-actual-sink-pulse>
0:00:13.620430010 20869 0x6635d0 ERROR totem /build/buildd/totem-2.21.92/src/backend/bacon-video-widget-gst-0.10.c:330:bvw_error_msg: uri = file:///media/disk/Users/Propietario/Shared/Lucky%20Twice-%20Lucky.mp3
** Message: Error: Failed to connect stream: Invalid argument
pulsesink.c(411): gst_pulsesink_prepare (): /play/visbin/abin/audiosinkbin/audio-sink/bin6/autoaudiosink1/autoaudiosink1-actual-sink-pulse

0:00:13.622322327 20869 0xef6a90 INFO basesrc gstbasesrc.c:2114:gst_base_src_loop:<source> pausing after gst_pad_push() = not-negotiated
0:00:13.622395525 20869 0xef6a90 WARN basesrc gstbasesrc.c:2165:gst_base_src_loop:<source> error: Erro interno no fluxo de dados.
0:00:13.622411101 20869 0xef6a90 WARN ...

Read more...

Revision history for this message
Ricardo Jorge Maçãs (ricmacas-familia) wrote :

Already did

Changed in totem:
status: Incomplete → New
Revision history for this message
Ricardo Jorge Maçãs (ricmacas-familia) wrote :

I think this is more likely an hardware error
So I did an Hardware Database check and sent it to Ubuntu Hdw Database

Submission Id:

2d833f2c2a417ff5657ccd7ad1233694

description: updated
description: updated
description: updated
description: updated
description: updated
description: updated
Revision history for this message
Ricardo Jorge Maçãs (ricmacas-familia) wrote :

User.log in the system records reports some problems with "PulseAudio" or something like that

Revision history for this message
Ricardo Jorge Maçãs (ricmacas-familia) wrote :

Managed to play with Totem going to the Sound ( System -> Preferences -> Sound ) and changing the system sound to ALSA.
But it sounds AWFULLY, sounds really bad....

Revision history for this message
Ricardo Jorge Maçãs (ricmacas-familia) wrote :

Managed to play with Totem changing the system sound to Conexant ANALOG - very bad quality
I tried also Conexant Digital - But I was not able to hear anything

Revision history for this message
linovski (avelinorego) wrote :

Same issue here.
Linux linovski-laptop 2.6.24-8-generic #1 SMP Thu Feb 14 20:40:45 UTC 2008 i686 GNU/Linux

Revision history for this message
Bernard Drapeau (bernard-drapeau) wrote :

The same on my box.
Linux silex 2.6.24-11-generic #1 SMP Fri Feb 29 22:08:31 UTC 2008 i686 GNU/Linux

I changed the sound preferences to ALSA under System/Preferences/Sound.
it works.
The hardware is not configured properly. Autodetection doesn't work.

Revision history for this message
Derek (bugs-m8y) wrote :

Ran into this one too. Switching to ALSA did work.

Revision history for this message
Derek (bugs-m8y) wrote :

sound-properties-Message: Error running pipeline 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! gconfaudiosink': Failed to connect stream: Invalid argument [pulsesink.c(411): gst_pulsesink_prepare (): /pipeline0/gconfaudiosink0/bin0/autoaudiosink0/autoaudiosink0-actual-sink-pulse]

Sorry. Should give a bit more detail.
Also running Hardy Heron, behaviour occurred just recently.

Revision history for this message
Derek (bugs-m8y) wrote :

Some attachments from an attempt to debug with crimsun in #ubuntu+1

This one is output of some commands run at his request.

Revision history for this message
Derek (bugs-m8y) wrote :

And this one is the result of pulseaudio -vv

Revision history for this message
Francisco Isgleas (isgleas) wrote :

It may be a hw detection issue. I had the same problem when using Hardy Alpha 5, but not anymore with the recent updates of totem-gstreamer.

Please, give details on your hardware accordingly to https://wiki.ubuntu.com/DebuggingSoundProblems

I managed to solve this by adding:

options snd-hda-intel model=auto

To /etc/modprobe.d/alsa-base, as my hardware was detected as:

00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)

Changed in totem:
status: New → Incomplete
Revision history for this message
Marcel (marcel-launchpad) wrote :

I have the same problem in Hardy Beta. I can't play any avi or mpeg movie (it has worked before).
In /var/log/messages I get this:
Mar 30 17:01:43 ubuntu pulseaudio[5805]: sink-input.c: Failed to create sink input: too many inputs per sink.

Kernel: Linux ubuntu 2.6.24-12-generic #1 SMP Wed Mar 12 23:01:54 UTC 2008 i686 GNU/Linux

Changed in totem:
status: Incomplete → New
Revision history for this message
Jean-François MOY (cha0tix) wrote :

Same problem for me, I had to change for ALSA to make it work. If I want to use PulseAudio, I have the same message :
Failed to connect stream: Invalid argument

Revision history for this message
Bryce Harrington (bryce) wrote :

I'm getting this as well on a dell inspiron 1420. Video playback worked properly a month or two ago, so it's been updates since then that broke it.

I suspect the commenters on this bug are seeing at least two separate bugs. One where shifting to a different sound system makes it work (although poorly), and another where the sound hardware is not getting detected properly. The issue I'm seeing falls into this latter category.

In this case, the issue does not seem to be in totem but in something lower down - amongst the snd kernel modules I'm guessing. Perhaps something needs to be more properly configured with alsa?

Changed in totem:
importance: Low → High
milestone: none → ubuntu-8.04
status: New → Confirmed
Revision history for this message
Ricardo Jorge Maçãs (ricmacas-familia) wrote :

Is everyone here using the x64 version? Because it only happened to me initially when I was using the x64 version.
Try with the x32 version, this may be an x64-only bug.
In the latest alphas and betas, I've been using only the x32 version because It solves this bug with me.
Try to do the same to verify this theory.

Revision history for this message
Broomer68 (jbezemer) wrote :

I got here due to a duplicate while running x32, but now sound is running smooth afaik

Revision history for this message
Yattletrot (yattletrot-deactivatedaccount-deactivatedaccount) wrote :

Hi everyone

I hope this helps, but updates are very important. When I downloaded and installed Hardy Beta, PulseAudio didn't work on my laptop, with audio issues and volume control issues. These have all been fixed in the weeks following. So, can I suggest that you install all updates (incl the kernel ones, which I think is now 2.6.24-16) and try it all again?

Hope this helps :-)

Hamish

Revision history for this message
Maimon Mons (mmcmonster) wrote :

My sound was working fine in Hardy with all daily update _until_ 2-3 days ago, when I ran into this problem.

(Sorry :-( )

Revision history for this message
Steve Langasek (vorlon) wrote :

From the description, there is nothing specific to totem in this bug; it appears to be a general problem with sound playback through pulseaudio.

Luke, would you be able to take a look at this to triage it further?

Maimon,

This bug by now appears to include several different symptoms, not all of which are necessarily related. Can you please clarify what the problem is that you're seeing with current hardy?

Changed in pulseaudio:
milestone: none → ubuntu-8.04
Changed in totem:
status: Confirmed → Invalid
Changed in pulseaudio:
importance: Undecided → High
Revision history for this message
William Pitcock (nenolod) wrote : Re: [Bug 191027] Re: "Failed to connect stream: Invalid argument"
  • unnamed Edit (189 bytes, application/pgp-signature; name=signature.asc)

Hi,

On Wed, 2008-04-16 at 03:30 +0000, Steve Langasek wrote:
> >From the description, there is nothing specific to totem in this bug; it
> appears to be a general problem with sound playback through pulseaudio.
>
> Luke, would you be able to take a look at this to triage it further?

I'm obviously not TheMuso, but since I keep an eye on Audio related
issues in Debian and Ubuntu, I'll try to triage this...

Reporter: Can you attach the output out strace paplay some-wav-file
please?

I believe I have seen something similar to this issue, but have been
unable to reproduce it on neither my Debian lenny desktop nor my
Ubuntu-running laptop (it only happened to me once).

Invalid argument indicates that it is trying to a dead socket; I have
seen this behaviour before. An strace will help to determine if this is
the issue.

Thanks!

Revision history for this message
Luke Yelavich (themuso) wrote :

Could everybody who is having issues please do the following:
1. Read https://wiki.ubuntu.com/DebuggingSoundProblems under the collecting sound info section. There is a script you can download that will get all necessary information about your sound hardware.
2. Please try and play audio through pusleaudio, then alsa, and state whether there is a difference in the sound, whether it be quality, whether it breaks up, etc.
3. Unless you have done so already, please run pulseaudio -vv from the command-line, and attach the output to the bug? This way I can see whether there is any difference in the detection of your sound hardware to others.

Thanks.

Revision history for this message
Daniel T Chen (crimsun) wrote :

Definitely PulseAudio and/or ALSA, not Totem.

I'll add to Luke's suggestions for easier debugging:

1) The specific two items of import from alsa-info.sh output are a) `lspci -nv|grep -A1 040[13]', and b) the AC'97 or HDA codec spew. If you have firewire or usb audio, things are less trivial.
2) There are essentially two scenarios being tested: a) default Ubuntu Hardy configuration (using PulseAudio as the default GStreamer audio sink), b) modified Ubuntu Hardy configuration (using ALSA as the default GSt audio sink).

For 2a), you will need to use a PulseAudio client, e.g., `paplay /usr/share/sounds/*up.wav'.
For 2b), you may try `pasuspender -- aplay /usr/share/sounds/*up.wav'.

3) To use `pulseaudio -vv', you will first need to `pkill pulseaudio' from within a GNOME session.

(I'm not subscribed, but I'll follow this page.)

Revision history for this message
Alvin Gao (picardpwnskirk) wrote :

Bug confirmed on Hardy RC.

alvin@alvin-laptop:~$ pulseaudio -vv
I: main.c: Called SUID root and real-time/high-priority scheduling was requested in the configuration. However, we lack the necessary priviliges:
I: main.c: We are not in group 'pulse-rt' and PolicyKit refuse to grant us priviliges. Dropping SUID again.
I: main.c: For enabling real-time scheduling please acquire the appropriate PolicyKit priviliges, or become a member of 'pulse-rt', or increase the RLIMIT_NICE/RLIMIT_RTPRIO resource limits for this user.
I: main.c: Note that real-time/high-priority scheduling is NOT normally required. If you experience crackling or other sound anomalies, consider one or more of the above solutions.
I: main.c: High-priority scheduling enabled in configuration but now allowed by policy. Disabling forcibly.
I: pid.c: Daemon already running.
I: main.c: pa_pid_file_create() failed.
========
alvin@alvin-laptop:~$ cat /proc/asound/cards
 0 [Intel ]: HDA-Intel - HDA Intel
                      HDA Intel at 0xfe020000 irq 21
========
Package: linux-ubuntu-modules-2.6.24-16-generic
Status: install ok installed
Priority: optional
Section: base
Installed-Size: 15416
Maintainer: Ubuntu Kernel Team <email address hidden>
Architecture: i386
Source: linux-ubuntu-modules-2.6.24
Version: 2.6.24-16.22
Provides: ndiswrapper-modules-1.9
Depends: linux-image-2.6.24-16-generic
Pre-Depends: dpkg (>= 1.10.24)
Description: Ubuntu supplied Linux modules for version 2.6.24 on x86/x86_64
 This package contains modules supplied by Ubuntu for Linux kernel 2.6.24 on
 x86/x86_64.
 .
 You likely do not want to install this package directly. Instead, install
 the linux-generic meta-package, which will ensure that upgrades work
 correctly, and that supporting packages are also installed.
alvin@alvin-laptop:~$

That should be it....

Revision history for this message
Jason Greene (jason-the-greenes) wrote :

I am having this same issue... what I noticed is that I boot with the vmlinuz-2.6.24-16-386 kernel I get the error. If I boot with vmlinuz-2.6.24-15-386 I don't get the error.

Revision history for this message
Thomas Juen (thomas-juen) wrote :

I had the same issue and I found out that my audio device (and my eth0 too) works great when acpi is enabled (it's enabled by default, but i had to change it for another reason). I hope this Information is useful for you.

Revision history for this message
Steve Langasek (vorlon) wrote :

Alvin, please run 'pkill pulseaudio' before 'pulseaudio -vv' and send this output, as requested by Daniel.

Ricardo, can you please also provide the debugging information requested by Luke and Daniel?

Changed in pulseaudio:
milestone: ubuntu-8.04 → none
Revision history for this message
AndyAirey (aairey) wrote :

Hi everyone,

Daniel, I tried your steps

1a)
$ lspci -nv|grep -A1 040[13]
00:1b.0 0403: 8086:293e (rev 02)
 Subsystem: 1043:829f
1b) don't know what you mean :$

2a) did not work
2b) did work!!

my outputs are in the attachment (including the pulseaudio -vv command)

Many thanks!

Revision history for this message
Seth (seth-yates) wrote :

Having same issues. Upgraded from 7.10 to 8.04 LTS. Autodetect was selected. No sounds would play. Changed to ALSA and sounds play. If using any sound device other than ALSA, get the following error:

audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! gconfaudiosink profile=music: Failed to connect stream: Invalid argument

Output from ./alsa-info.sh is available at http://pastebin.ca/1000208

lspci-vvnn.log attached.

uname -a

Linux uber-desktop 2.6.24-16-generic #1 SMP Thu Apr 10 13:23:42 UTC 2008 i686 GNU/Linux

dpkg -s linux-ubuntu-modules-$(uname -r)

Package: linux-ubuntu-modules-2.6.24-16-generic
Status: install ok installed
Priority: optional
Section: base
Installed-Size: 15420
Maintainer: Ubuntu Kernel Team <email address hidden>
Architecture: i386
Source: linux-ubuntu-modules-2.6.24
Version: 2.6.24-16.23
Provides: ndiswrapper-modules-1.9
Depends: linux-image-2.6.24-16-generic
Pre-Depends: dpkg (>= 1.10.24)
Description: Ubuntu supplied Linux modules for version 2.6.24 on x86/x86_64
 This package contains modules supplied by Ubuntu for Linux kernel 2.6.24 on
 x86/x86_64.
 .
 You likely do not want to install this package directly. Instead, install
 the linux-generic meta-package, which will ensure that upgrades work
 correctly, and that supporting packages are also installed.

Revision history for this message
Pastor (sinel1980) wrote :

I have the same problem. Have Ubuntu Hardy. PulseAudio in System->Preferences->Sound returns: "Failed to connect stream: Invalid argument" (autodetection also returns this problem). I must use Alsa - it works good.
(Have SB AWE64 on ISA). pulseaudio -vv output attached.

Revision history for this message
Victor Zamanian (victorz) wrote :

Confirming this bug and that switching to ALSA works.

Revision history for this message
Ross Peoples (deejross) wrote :

I have this bug as well, however, switching to ALSA does not work for me. I get the test sound and all of the system sounds play, even when PulseAudio is selected. But the second I use Rhythmbox or Totem I get the error.

Revision history for this message
Ross Peoples (deejross) wrote :

CORRECTION: I actually got it to work with PulseAudio! Instead of switching to ALSA, I actually just did "killall pulseaudio" and the sound started to work! I'm not sure if that works for everyone though.

Revision history for this message
Breno Leitão (breno-leitao) wrote :

Here also, I just killed PulseAudio and everything went fine.
So, this seems that we just have a workaround until now, right?

PS: If you' re using pidgin and kill pulseaudio, gaim will hog 100% of your CPU, and will crash.

Revision history for this message
avpap (avpap) wrote :

Same here confirmed. killing pulseaudio solves the problem

Revision history for this message
Greeblesnort (greeblesnort) wrote :

another confirmation that killing pulseaudio allows sound again

8.04 workstation upgraded from 7.10 (and previously upgraded from 7.04)

Revision history for this message
Greeblesnort (greeblesnort) wrote :

apologies for following up on my own post, but one more note...

I run a radio thru the line in on this box and that was functioning the entire time. Dunno if that's relevant or not, but thought it noteworthy.

Revision history for this message
Philippe Petitcolin (phiphil) wrote :

I'm experiencing the problem to. I think killing pulseaudio just force Gnome to switch to ALSA.... :\

The sound is working fine before logging in (but at this time pulseaudio is not running yet, so I guess this sound is played with ALSA, correct ?).
After logging in in Gnome, trying to play a sound file from a terminal doesn't work either :

toto@Hardy:~$ paplay Audio.wav
Stream errror: Invalid argument

Trying to figure out what's going wrong I grab those messages in my /var/log/syslog logfile :

May 2 21:15:15 Hardy pulseaudio[6494]: alsa-util.c: Device hw:0 doesn't support 2 channels, changed to 10.
May 2 21:15:15 Hardy pulseaudio[6494]: alsa-util.c: Device hw:0 doesn't support sample format s16le, changed to s32le.
May 2 21:15:15 Hardy pulseaudio[6494]: alsa-util.c: Cannot find fallback mixer control "PCM".
May 2 21:15:15 Hardy pulseaudio[6494]: module-alsa-sink.c: Failed to create sink object
May 2 21:15:15 Hardy pulseaudio[6494]: module.c: Failed to load module "module-alsa-sink" (argument: "device_id=0 sink_name=alsa_output.pci_1412_1712_sound_card_0_alsa_playback_0"): initialization failed.
May 2 21:15:15 Hardy pulseaudio[6494]: alsa-util.c: Device hw:0 doesn't support 2 channels, changed to 12.
May 2 21:15:15 Hardy pulseaudio[6494]: alsa-util.c: Device hw:0 doesn't support sample format s16le, changed to s32le.
May 2 21:15:15 Hardy pulseaudio[6494]: alsa-util.c: Cannot find fallback mixer control "Mic".
May 2 21:15:15 Hardy pulseaudio[6494]: module-alsa-source.c: Failed to create source object
May 2 21:15:15 Hardy pulseaudio[6494]: module.c: Failed to load module "module-alsa-source" (argument: "device_id=0 source_name=alsa_input.pci_1412_1712_sound_card_0_alsa_capture_0"): initialization failed.

Revision history for this message
iLluFe (illufe) wrote :

Yes, changing the sound playback to alsa under "SOUND" will work!

Revision history for this message
Nicolas Piguet (npiguet) wrote :

Hello, For me in the sound playback preferences only OSS works properly, all the others fail (including auto-detect). However, once I killed pulseaudio (with "killall pulseaudio"), both auto-detect and OSS work (the others still don't work).

here's some output from my /var/log/syslog

lordofthepigs@lotp-fsa:~$ cat /var/log/syslog | grep audio
May 4 12:16:19 lotp-fsa audio[5569]: Bluetooth Audio daemon
May 4 12:16:19 lotp-fsa audio[5569]: Unix socket created: 5
May 4 12:16:19 lotp-fsa audio[5569]: audio.conf: Key file does not have key 'Enable'
May 4 12:16:19 lotp-fsa audio[5569]: audio.conf: Key file does not have key 'Disable'
May 4 12:16:19 lotp-fsa audio[5569]: add_service_record: got record id 0x10000
May 4 12:16:19 lotp-fsa audio[5569]: audio.conf: Key file does not have key 'Disable'
May 4 12:16:19 lotp-fsa audio[5569]: audio.conf: Key file does not have group 'A2DP'
May 4 12:16:19 lotp-fsa audio[5569]: SEP 0x806d748 registered: type:0 codec:0 seid:1
May 4 12:16:19 lotp-fsa audio[5569]: add_service_record: got record id 0x10001
May 4 12:16:19 lotp-fsa audio[5569]: add_service_record: got record id 0x10002
May 4 12:16:19 lotp-fsa audio[5569]: add_service_record: got record id 0x10003
May 4 12:16:19 lotp-fsa audio[5569]: Registered manager path:/org/bluez/audio
May 4 16:01:26 lotp-fsa audio[5725]: Bluetooth Audio daemon
May 4 16:01:26 lotp-fsa audio[5725]: Unix socket created: 5
May 4 16:01:26 lotp-fsa audio[5725]: audio.conf: Key file does not have key 'Enable'
May 4 16:01:26 lotp-fsa audio[5725]: audio.conf: Key file does not have key 'Disable'
May 4 16:01:26 lotp-fsa audio[5725]: add_service_record: got record id 0x10000
May 4 16:01:26 lotp-fsa audio[5725]: audio.conf: Key file does not have key 'Disable'
May 4 16:01:26 lotp-fsa audio[5725]: audio.conf: Key file does not have group 'A2DP'
May 4 16:01:26 lotp-fsa audio[5725]: SEP 0x806d748 registered: type:0 codec:0 seid:1
May 4 16:01:26 lotp-fsa audio[5725]: add_service_record: got record id 0x10001
May 4 16:01:26 lotp-fsa audio[5725]: add_service_record: got record id 0x10002
May 4 16:01:26 lotp-fsa audio[5725]: add_service_record: got record id 0x10003
May 4 16:01:26 lotp-fsa audio[5725]: Registered manager path:/org/bluez/audio
May 4 16:01:48 lotp-fsa pulseaudio[6116]: alsa-util.c: Error opening PCM device hw:0: No such file or directory
May 4 16:01:48 lotp-fsa pulseaudio[6116]: module.c: Failed to load module "module-alsa-sink" (argument: "device_id=0 sink_name=alsa_output.pci_8086_284b_sound_card_0_alsa_playback_0"): initialization failed.
May 4 16:01:48 lotp-fsa pulseaudio[6116]: alsa-util.c: Error opening PCM device hw:0: No such file or directory
May 4 16:01:48 lotp-fsa pulseaudio[6116]: module.c: Failed to load module "module-alsa-source" (argument: "device_id=0 source_name=alsa_input.pci_8086_284b_sound_card_0_alsa_capture_0"): initialization failed.

Revision history for this message
Nicolas Piguet (npiguet) wrote :

I got alsa to work by deleting .asoundrc and .asoundrc.asoundconf from my home directory

Revision history for this message
David C (da-cas) wrote :

I'm having similar problems with Hardy Heron.
Gutsy Gibbon was ok for sound, but I get nothing having upgraded.
Appears to be a failure to recognise my on-board sound device.

I've packaged together output of files recommended by DebuggingSoundDevices page.

Revision history for this message
Philippe Petitcolin (phiphil) wrote :

Hi all,

For those having the same symptoms than I have : "module-alsa-sink.c: Failed to create sink object" I found a solution to make pulseaudio working.

The problem was caused by a bad detection of my "exotic" sound card (Terratec DMX 6Fire).

I modified the /etc/pulse/default.pa file to manually configure my sound card and pulseaudio is now working fine.

There's a bug already tracked in launchpad describing the solution (specially for "exotic" sound cards) : https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/204809

Hope this could help...

Revision history for this message
David C (da-cas) wrote :

For my system, the problem has been cured by the recent update to the kernel: I am now running
Linux ubuntu 2.6.24-17-rt #1 SMP PREEMPT RT Thu May 1 16:23:33 UTC 2008 i686 GNU/Linux
and the sound device (VIA 8237) is now correctly recognised and both ALSA and pulseAudio servers generate sound.

Revision history for this message
Breno Leitão (breno-leitao) wrote :

Strangely enough, the machine I don't see this problem was updated to kernel 2.6.24-17 and the one I hit this issue (using snd-hda-intel), doesn't get 2.6.24-17, just stopped at 2.6.24-16.

Revision history for this message
Ricardo Jorge Maçãs (ricmacas-familia) wrote :

Sorry about my inactivity, but I was not able to comment in the past weeks.
For what I see, maybe the issue has been corrected in a Linux kernel update.
Probably, I will download the x64 ubuntu version and test everything with the latest updates.
If the problem occurs, I will notify you.
I thank all of you for trying to help in this issue.
And I'm sure Ubuntu also thanks everyone for trying to make ubuntu better.
Cheers,
Ricardo
P.S.: I will check this bug using the latest updates.

Revision history for this message
Pete Deremer (sportman1280-deactivatedaccount) wrote :

I am still having issues with this. Have the lastest kernel, 2.6.24-17

Revision history for this message
frizzle21 (frederik-nnaji) wrote :

Pulseaudio is trippin here too!
once i switch to alsa, Totem will play. strange as it is...

vlc and some others already play with ease, only totem is having problems...

looks like pulseaudio doesnt like the multiouts on my delta44, seems like it prefers consumer audio interfaces with surround and stuff...

Changed in pulseaudio:
milestone: none → ubuntu-8.04.1
Revision history for this message
Pete Deremer (sportman1280-deactivatedaccount) wrote :

mplayer does it too. But it will play the video with some work. Totem just flat out errors out.

Revision history for this message
Paul Bartell (paul-bartell) wrote :

This bug is quite persistant on my core2duo laptop (or at least a similar bug) it even messed up lindvd.

Revision history for this message
Breno Leitão (breno-leitao) wrote :

I think we should raise the severity of this bug. Ricardo Jorge?

Revision history for this message
Pete Deremer (sportman1280-deactivatedaccount) wrote :

I second that...

Revision history for this message
fragro (frank-grossmann) wrote :

Same here! (Intel HDA ICH6)

Revision history for this message
fragro (frank-grossmann) wrote :

some days ago there was an kernel update! Can it be something with snd-hda-intel???

Revision history for this message
fragro (frank-grossmann) wrote :

Sheduled for 2008-07-01 (8.04.1)? Is an joke or not?! Whats about an Hotfix Package? LT_S(upport!?)_ ...Pulseaudio is a essential part of the Soundsystem and many low level users don't know how to switch to ALSA! When you want to provide Pulseaudio as Feature you have to keep it running. Otherwise people went to other distris / OSes! (Bug #1, you know?!)

Sorry for my direct words, i hope you know how it is meant! (constructive ;) )

Revision history for this message
Ross Peoples (deejross) wrote :

Actually, two months is pretty speedy for them. There are bugs that are several years old they have yet to fix.

Revision history for this message
Ross Peoples (deejross) wrote :

Besides, I think they only release security fixes and other show stopper fixes until their next maintenance release (8.04.1). Since there is a workaround and audio really isn't a huge concern anyways (for servers), they don't see this as a show stopper.

Changed in pulseaudio:
status: New → Confirmed
status: New → Confirmed
Changed in totem:
status: Invalid → Confirmed
status: Invalid → Confirmed
Revision history for this message
Ricardo Jorge Maçãs (ricmacas-familia) wrote :

Please everyone report if your using the amd64 version.
That's the version that gave me problems innitialy.
Now I'm using ubuntu i386 and I don't experience any problems.

Revision history for this message
Pete Deremer (sportman1280-deactivatedaccount) wrote :

I am using the i386 version. Still got issues.

Revision history for this message
Pete Deremer (sportman1280-deactivatedaccount) wrote :

Just to note. This issue also effects the firefox plugin.

Revision history for this message
ubby (kostas-sytske) wrote :

When I quit Pulse audio some sounds work so I think the main problem is the implantation of Pulse audio within Ubuntu 8.04.

Revision history for this message
fragro (frank-grossmann) wrote :

I've Downgraded to Gutsy. (Because there are too many Bugs in Hardy) This bug affects Gutsy too!

Revision history for this message
Ross Peoples (deejross) wrote :

It's funny you say that frago. All those bugs that make Hardy the buggiest release yet are all Gnome bugs. I switched to KDE about a month ago and haven't had a problem. No PulseAudio screwing up audio, no gvfs screwing up the networking connections, no crashing of Nautilus every 20 minutes.

And I used to be a Gnome advocate and have used it for years. Now I'm telling everyone to stay away from it. The new KDE 4 is WAY more stable than Gnome (and faster, too).

Revision history for this message
Sebastien Bacher (seb128) wrote :

> And I used to be a Gnome advocate and have used it for years. Now I'm telling everyone to stay away from it

go troll somewhere else, nautilus is not crashing every 20 minutes for anybody else and if that's the case you should open bugs so the issues are fixed rather than adding useless comments there

Revision history for this message
Ross Peoples (deejross) wrote :

I was not trolling and I'm surprised by your reaction, Sebastien. I was merely suggesting an alternative until Gnome gets fixed. And I have filed bugs for all the problems I'm having. Reading blogs on the subject, there are several people having problems with Nautilus crashing. Some of those people are suggesting it had something to do with the scheduler, while others think it's the new gvfs.

Revision history for this message
Sebastien Bacher (seb128) wrote :

your comments have nothing to do with this bug, are not useful and not accurate, the GNOME in hardy is not buggier than previous versions, there is some known pulseaudio (which is not a GNOME component) and gvfs samba issues but not a lot of crashers and no performances issues. those people who get nautilus crashes should open bugs rather than complaining on blogs, anyway let's stop there the out topic discussion

Revision history for this message
fragro (frank-grossmann) wrote :

[offtopic] I must say Gnome was every times quite good and stable... in development versions too!

The only issues i have with hardy is this Bug and this Bug: https://bugs.launchpad.net/ubuntu/+source/gnome-print/+bug/223776, which is why i've downgraded.

The only i wish is that bugs are fixed faster, but this guys here are only humans (beings ;) ) too![/offtopic]

Revision history for this message
Greeblesnort (greeblesnort) wrote :

Some additional information:
Fresh reboot of the box = audio works (with pulseaudio running); tested with Amarok, rythmbox
Open firefox and browse to flash enabled site (specifically used this one: http://www.break.com/index/dry-ice-vs-cinder-block.html) , audio starts failing (actually hard locks Amarok, requires kill to bring it down)

greeblesnort@sm001817:~$ ps aux | grep pulse
1000 9043 0.5 0.1 30640 5900 ? Sl 10:41 0:05 /usr/bin/pulseaudio --log-target=syslog
1000 9046 0.0 0.0 5776 2248 ? S 10:42 0:00 /usr/lib/pulseaudio/pulse/gconf-helper
1000 9737 0.0 0.0 3008 780 pts/0 S+ 10:57 0:00 grep pulse
greeblesnort@sm001817:~$ kill 9043
greeblesnort@sm001817:~$ ps aux | grep pulse
1000 9740 0.0 0.0 3004 764 pts/0 R+ 10:57 0:00 grep pulse

All audio then functions as expected. I'm a sysadmin, and not a programmer, but if any additional information would be of assistance, please let me know. So far, I can reproduce this at will (tested 3 times).

Revision history for this message
Luke Yelavich (themuso) wrote :

Could everybody experiencing this bug please try the package of libasound2, and if you use libasound2-plugins, the package of libasound2-plugins from intrepid, and reply stating whether the issue goes away when using these newer packages?

i386:
http://archive.ubuntu.com/ubuntu/pool/main/a/alsa-lib/libasound2_1.0.16-2ubuntu1_i386.deb
http://archive.ubuntu.com/ubuntu/pool/main/a/alsa-plugins/libasound2-plugins_1.0.16-1ubuntu1_i386.deb

amd64:
http://archive.ubuntu.com/ubuntu/pool/main/a/alsa-lib/libasound2_1.0.16-2ubuntu1_amd64.deb
http://archive.ubuntu.com/ubuntu/pool/main/a/alsa-plugins/libasound2-plugins_1.0.16-1ubuntu1_amd64.deb

Thanks in advance.

Revision history for this message
Pete Deremer (sportman1280-deactivatedaccount) wrote :

This fixed my issue. tried playing 4 different videos. All worked great. Is there a way to get this backported into hardy?

Revision history for this message
AndyAirey (aairey) wrote :

it works but I now have broken packages :/

Revision history for this message
Pete Deremer (sportman1280-deactivatedaccount) wrote :

You shouldnt have broken packages... I dont....

Revision history for this message
AndyAirey (aairey) wrote :

It's because it's newer than the one in the software repository.

Whill this version of libasound come in the repository soon or is it only meant for Interpid?

Revision history for this message
Greeblesnort (greeblesnort) wrote :

The new libasound2 package makes it better, but doesn't actually fix the issue. Amarok doesn't actually freak out after playing flash in the browser, but it doesn't work anymore either. Closing the browser doesn't help, but restarting amarok does (still requires a kill). Did not have to kill pulseaudio to get everything back.

Revision history for this message
Luke Yelavich (themuso) wrote :

Yes, there is a couple of ways this can be gotten into hardy. Firstly getting alsa-plugins and alsa-lib into hardy-backports, but that doesn't help resolve the vast majority of possible similar cases to this one that may be out there now, and in the future.

The second involves finding the specific fixes in alsa-lib 1.0.16 and backporting them to the version in hardy, which is 1.0.15. I'd gladly do this, however all the sound hardware I have tested so far works fine. I.e, I don't get an invalid argument message similar to what has been reported in the bug.

Revision history for this message
Thiago Vieira (social-thiago) wrote :

I installed the libasound2, and didn`t work for me. I still can`t see any video on totem and listen musica on rythmbox.

Revision history for this message
Steve Langasek (vorlon) wrote :

Thiago,

Which version of libasound2 did you install, exactly? Did you happen to upgrade libasound2-plugins at the same time? (May not be used on your system, but having the two packages out of sync might cause issues)

Revision history for this message
Steve Langasek (vorlon) wrote :

FWIW, there is an updated libasound2 package available now in hardy-proposed; it needs a significant amount of regression testing before it can be pushed as an update to stable, but even before that we need help from people who have been seeing this bug to test whether it even fixes the issues. If you're experiencing this problem, please try the libasound2 package from hardy-proposed and let us know the results here.

Revision history for this message
Chad McConnell (chadmmc) wrote :
  • unnamed Edit (1.2 KiB, text/html; charset=ISO-8859-1)

libasound2 package version '1.0.15-3ubuntu4' was installed with no plugins
installed ... will try installing the plugins.
  Installed the plugins and it did not error out. That seems to have fixed
it. (the sound is kind of blurred though)

On Fri, Jun 13, 2008 at 3:46 PM, Steve Langasek <
<email address hidden>> wrote:

> Thiago,
>
> Which version of libasound2 did you install, exactly? Did you happen to
> upgrade libasound2-plugins at the same time? (May not be used on your
> system, but having the two packages out of sync might cause issues)
>
> --
> "Failed to connect stream: Invalid argument"
> https://bugs.launchpad.net/bugs/191027
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
Using Kubuntu 7.10 Linux

Revision history for this message
Chad McConnell (chadmmc) wrote :
  • unnamed Edit (1.4 KiB, text/html; charset=ISO-8859-1)

ok, I am enabling the 'hardy proposed' repositories and will do an update.

the new libasound2 packages are now version 1.0.16-0ubuntu0.1. Note: Their
seems to be no update for the plugins package itself.

On Fri, Jun 13, 2008 at 3:51 PM, Steve Langasek <
<email address hidden>> wrote:

> FWIW, there is an updated libasound2 package available now in hardy-
> proposed; it needs a significant amount of regression testing before it
> can be pushed as an update to stable, but even before that we need help
> from people who have been seeing this bug to test whether it even fixes
> the issues. If you're experiencing this problem, please try the
> libasound2 package from hardy-proposed and let us know the results here.
>
> --
> "Failed to connect stream: Invalid argument"
> https://bugs.launchpad.net/bugs/191027
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
Using Kubuntu 7.10 Linux

Revision history for this message
Alroger Filho (alroger-cafe-ti) wrote :

Hey, I'm using Ubuntu Hardy 8.04, always updated.
Pulse broke down a week or so ago here. Don't know if it was because of any updates, but today, after an update and only after sudo rm -rf /tmp/* and a reboot, it all came back alive. Pulse back online.
See if it helps you guys.

Revision history for this message
Bill (hudacek) wrote :

Thinkpad T60p, 2007-AD1 here, same thing.

I have a sound for when gdm login window is complete, and a sound for wrong password, but no "gnome system sounds" after login (e.g., no system startup sound).

*Other* sounds work fine. I can play sound files from the command line.

However, gnome-sound-properties does nothing; here's output of pulseaudio command:

/home/user > pulseaudio
W: pid.c: Stale PID file, overwriting.
E: alsa-util.c: Error opening PCM device hw:0: Device or resource busy
E: module.c: Failed to load module "module-alsa-sink" (argument: "device_id=0 sink_name=alsa_output.pci_8086_27d8_sound_card_0_alsa_playback_0"): initialization failed.
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL front:0

(Note that I can't find a module-alsa-sink file on my system. Not sure if that's an alias, but if not, would be nice if actual file name given......)

Portion of lspci -vv:

*00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
         Subsystem: Lenovo ThinkPad T60/R60 series
         Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B-
         Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR-
         Latency: 0, Cache Line Size: 64 bytes
         Interrupt: pin B routed to IRQ 21
         Region 0: Memory at ee400000 (64-bit, non-prefetchable) [size=16K]
         Capabilities: <access denied>

Hope this helps you to nail this one down.

Revision history for this message
Alroger Filho (alroger-cafe-ti) wrote :

[Update]
Right now, my solution is to killall pulseaudio right after I login, and run pulseaudio again.

Observe that Bill is probably using aplay, play or sox to play sound files in the comment above. That will work, since regular ALSA is always working. esdplay or paplay actually play the sound file through PulseAudio.

So I added the following script to my Session startup programs:

#!/bin/bash
# fix por PulseAudio auto-start broken

sleep 15
killall pulseaudio
sleep 5
pulseaudio&
sleep 5
paplay /usr/lib/openoffice/share/gallery/sounds/space.wav

Revision history for this message
muadnem (brownj23-deactivatedaccount) wrote :

Just did a fresh install of i386 Hardy 8.04 + all updates.

Experiencing the same error even on a totally fresh reboot. The login screen drum sound plays, but trying to play anything in Totem gives me the "Failed to connect stream: Invalid argument" error. Rhythmbox refuses to play anything but doesn't give an error.

I'm using an M-Audio Audiophile 96/24 pci sound card.

killall pulseaudio fixes the problem.

However, unlike the previous poster, if I run pulseaudio again manually the error resumes.

Running pulseaudio manually gives the following output (init errors are present):

ALSA lib conf.c:3952:(snd_config_expand) Unknown parameters 0
ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM surround71:0
W: alsa-util.c: Device hw:0 doesn't support 2 channels, changed to 10.
W: alsa-util.c: Device hw:0 doesn't support sample format s16le, changed to s32le.
W: alsa-util.c: Cannot find fallback mixer control "PCM".
E: module-alsa-sink.c: Failed to create sink object
E: module.c: Failed to load module "module-alsa-sink" (argument: "device_id=0 sink_name=alsa_output.pci_1412_1712_sound_card_0_alsa_playback_0"): initialization failed.
ALSA lib conf.c:3952:(snd_config_expand) Unknown parameters 0
ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM surround71:0
W: alsa-util.c: Device hw:0 doesn't support 2 channels, changed to 12.
W: alsa-util.c: Device hw:0 doesn't support sample format s16le, changed to s32le.
W: alsa-util.c: Cannot find fallback mixer control "Mic".
E: module-alsa-source.c: Failed to create source object
E: module.c: Failed to load module "module-alsa-source" (argument: "device_id=0 source_name=alsa_input.pci_1412_1712_sound_card_0_alsa_capture_0"): initialization failed.

Seems like everyone is having a slightly different variation of this problem.

Revision history for this message
Luke Yelavich (themuso) wrote :

As pre previous comments in this bug, using alsa-lib 1.0.16 did fix this issue for some people. So, I'm going to move through the alsa-lib repository, and attempt to find the revision in the library that fixes this issue for as many people as possible. To test, plesae follow the following instructions carefully:

1. Go to http://www.themuso.id.au/ubuntu/alsa and download the set of libasound2 packages for your architecture, amd64 or i386. Install them by hand, using dpkg. Doing it this way means that you can downgrade from either the hardy-proposed, or intrepid alsa library packages.
2. If running PulseAudio or any other audio applications excluding the mixer applet, please restart them. The easiest way to restart pulseaudio is from a terminal with the following commands:

$ pulseaudio -k
$ pulseaudio -D --log-target=syslog

3. Attempt to play audio as you have tried to previously in this bug.
4. Reply to this bug stating whether the package has fixed, or not fixed the issue for you.

Once I get enough responces, I will publish another package depending on the outcome of the first lot of package testing. This way, we should be able to track down the individual code change that fixes the problem, and get it published in hardy-updates.

Thanks in advance for your time in helping track this down.

Luke

Revision history for this message
Tom Zimmermann (artist56) wrote :

went to: http://www.themuso.id.au/ubuntu/alsa and found out that some of the links are mixed up... clicking on 32 architecture link brings up the 64 and vice versa...
plus some dependencies did not work neither.. still no sound. Updated today and since then no sound. Yesterday it still was working fine. DSid a clean install from a Magazine DVD

Revision history for this message
ubby (kostas-sytske) wrote :

When I check the system monitor (http://img258.imageshack.us/img258/9655/schermafdruk1nz3.png) for shutting down Puls audio I see that the ID is -11 5772.
Maybe this is one of the causes.

Revision history for this message
Waluyo Adi Siswanto (was-wlk) wrote :

I have also the same problem.
Before I updated the system, following the notification update, the totem never have any problem. Now Totem just stop working, but I don't know which update made this problem.
I tried to re install (from synaptic package manager), but the same.. it won't run.

How can I fix it ??? This discussion has been going months...

Revision history for this message
Waluyo Adi Siswanto (was-wlk) wrote :

I think I can SOLVE the problem (in my system Ubuntu 8.04 Muslim Edition). I just found that the setting of sound (System - Preference - Sound), all settings are in "auto detect".
I changed to ALSA, and press "Test" ...it works.., I tries OSS..also it works

Probably, after updating process (I always update all new updates), somehow..someway..it automatically change to "autodetect", and unfortunately the "autodetect" cannot recognize the sound hardware/software ( I'm not sure).

So I am just suggesting anyone having this problem, just change from"autodetect" to ALSA or OSS, for the time being. I feel very happy since the Totem back to normal and running as usual.

Revision history for this message
Tom Zimmermann (artist56) wrote :

tried it but still no sound. :-(

adis schrieb:
> I think I can SOLVE the problem (in my system Ubuntu 8.04 Muslim Edition). I just found that the setting of sound (System - Preference - Sound), all settings are in "auto detect".
> I changed to ALSA, and press "Test" ...it works.., I tries OSS..also it works
>
> Probably, after updating process (I always update all new updates),
> somehow..someway..it automatically change to "autodetect", and
> unfortunately the "autodetect" cannot recognize the sound
> hardware/software ( I'm not sure).
>
> So I am just suggesting anyone having this problem, just change
> from"autodetect" to ALSA or OSS, for the time being. I feel very happy
> since the Totem back to normal and running as usual.
>
>

--

join sendspace and give and get points:
http://www.sendspace.com/invite/15lmzx

This is a Private email & is thus covered by Title 18, Part 1,
Chapter 47, Sec. 1030 U.S.C .. Section 107, any copyrighted
work in this message is distributed under fair use without profit
or payment to those who have expressed a prior interest in
receiving the included information for non-profit research &
educational or criticism purposes only.
++++++++++++++++++++++++++++++++++++++
Video, Picture and/or Audio content of this post originated from
the Internet and is assumed to be public domain.

once you stop learning, you stop living !
my homepage: http://gayartist.chapso.de
or http://pozitive.npage.de/

Revision history for this message
Luke Yelavich (themuso) wrote :

Ok, perhaps I wasn't clear enough with my instructions in my last comment.

1. Go to http://www.themuso.id.au/ubuntu/alsa and download the packages that are relevant to your architecture. So if you are running amd64, you would download libasound2 and libasound2-plugins for amd64 (if you use libasound2-plugins). If you also use ia32-libs/32-bit applications, you also want to download lib32asound2 for amd64. For i386, you only want libasound2 and libasound2-plugins, lib64asound2 as far as I am aware has no real use by users on i386.
2. Install these packages from the command line, using "sudo dpkg -i packagename.deb" where packagename is the filename of the deb package you just downloaded.
3. Log out and back into your desktop, making sure pulseaudio is enabled, and set as the output in the gnome sound properties.
4. Test whether playback of audio works in your preferred gstreamer application, rhythmbox, totem, etc.
5. Please reply to this bug stating whether it did, or did not work for you.

Once I have feedback from a few people, I can then make another set of packages with more fixes from 1.0,16, and we will repeat the above steps, until we can identify the fix that is needed for this bug.

Plesae feel free to reply if you have any questions.

Revision history for this message
KenSentMe (jeroen-vandenieuwenhof) wrote :

I installed your packages and switched to Pulse audio in the audio settings. This is what happened:

Startup sounds work, also Totem plays an audio file. When i quit Totem, start Firefox and play some video with audio, i can't play any song with Totem. However, when i quit FF and run another gstreamer app like Rhythmbox and play a song, both Totem and Rhythmbox start playing. When i then start Firefox to play a Youtube video, the video sound doesnt play.

Hope this helps.

Revision history for this message
KenSentMe (jeroen-vandenieuwenhof) wrote :
Revision history for this message
frizzle21 (frederik-nnaji) wrote :

like i said... pulse won't multistream audio from different applications
simultaneously.
but alsa will.

i don't know the inside of pulseaudio, but i believe the problem described
by KenSentMe, which i also
experience here, lies not in alsa but in pulseaudio.

unfortunately, i believe, this bug here has more to do with totem and alsa
than with pulse, therefore we should
consider opening a new bug report for this.

greetings
from berlin

On Fri, Jul 4, 2008 at 2:12 PM, KenSentMe <email address hidden> wrote:

> I installed your packages and switched to Pulse audio in the audio
> settings. This is what happened:
>
> Startup sounds work, also Totem plays an audio file. When i quit Totem,
> start Firefox and play some video with audio, i can't play any song with
> Totem. However, when i quit FF and run another gstreamer app like
> Rhythmbox and play a song, both Totem and Rhythmbox start playing. When
> i then start Firefox to play a Youtube video, the video sound doesnt
> play.
>
> Hope this helps.
>
> --
> "Failed to connect stream: Invalid argument"
> https://bugs.launchpad.net/bugs/191027
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in "pulseaudio" source package in Ubuntu: Confirmed
> Status in "totem" source package in Ubuntu: Confirmed
> Status in pulseaudio in Ubuntu Hardy: Confirmed
> Status in totem in Ubuntu Hardy: Confirmed
>
> Bug description:
> Binary package hint: totem
>
> I am unable to play any type of content in Totem,
> and, the opening Melodie (when the computers starts) sounds awfully...
> I'm using the latest alpha development version of Hardy...
> Update1: I'm also having trouble within Rhythmbox, so I did an Hardware
> report and then I uploaded it within the Hardware collection tool in Ubuntu,
> because I think there is some problem in ubuntu and the system isn't using
> my sound card correctly.
> Update2: The same error happens in the Sound control panel : System ->
> Preferences -> Sound
>
> ProblemType: Bug
> Architecture: amd64
> Date: Mon Feb 11 18:03:45 2008
> DistroRelease: Ubuntu 8.04
> ExecutablePath: /usr/bin/totem-gstreamer
> NonfreeKernelModules: nvidia
> Package: totem-gstreamer 2.21.92-0ubuntu2
> PackageArchitecture: amd64
> ProcCwd: /home/ricardo
> ProcEnviron:
> LANGUAGE=pt_PT:pt:pt_BR:en_GB:en
>
> PATH=/home/ricardo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
> LANG=pt_PT.UTF-8
> SHELL=/bin/bash
> SourcePackage: totem
> Uname: Linux ricardo-laptop 2.6.24-7-generic #1 SMP Thu Feb 7 00:56:31 UTC
> 2008 x86_64 GNU/Linux
>

Revision history for this message
Fabián Rodríguez (magicfab) wrote :

I had a friend report the same problem while trying to watch videos she got by email. She had just applied today's updates, her last round of updates was 1-2 days ago.

We went through the suggested change to "Sound Playback" to ALSA, rebooted, that didn't work. Set everything back to "Autodetect" again, rebooted, sound was back.

Perhaps some PulseAudio-related updates would need to ask for restarting the system for fixes to come into effect.

Revision history for this message
Dmytro Korzhevin (korg) wrote :

I have this problem on my Ubuntu 8.04.1 when trying to play avi file. VLC playing this file without problems.

Linux korg-desktop 2.6.24-18-generic #1 SMP Wed May 28 20:27:26 UTC 2008 i686 GNU/Linux

Totem version 2.22.1

Steve Langasek (vorlon)
Changed in pulseaudio:
milestone: ubuntu-8.04.1 → ubuntu-8.04.2
Revision history for this message
frizzle21 (frederik-nnaji) wrote :

I am full of hope that the ibex will not have to bear most of these
difficulties anymore

On 05/08/2008, Steve Langasek <email address hidden> wrote:
> ** Changed in: pulseaudio (Ubuntu Hardy)
> Target: ubuntu-8.04.1 => ubuntu-8.04.2
>
> --
> "Failed to connect stream: Invalid argument"
> https://bugs.launchpad.net/bugs/191027
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in "pulseaudio" source package in Ubuntu: Confirmed
> Status in "totem" source package in Ubuntu: Confirmed
> Status in pulseaudio in Ubuntu Hardy: Confirmed
> Status in totem in Ubuntu Hardy: Confirmed
>
> Bug description:
> Binary package hint: totem
>
> I am unable to play any type of content in Totem,
> and, the opening Melodie (when the computers starts) sounds awfully...
> I'm using the latest alpha development version of Hardy...
> Update1: I'm also having trouble within Rhythmbox, so I did an Hardware
> report and then I uploaded it within the Hardware collection tool in Ubuntu,
> because I think there is some problem in ubuntu and the system isn't using
> my sound card correctly.
> Update2: The same error happens in the Sound control panel : System ->
> Preferences -> Sound
>
> ProblemType: Bug
> Architecture: amd64
> Date: Mon Feb 11 18:03:45 2008
> DistroRelease: Ubuntu 8.04
> ExecutablePath: /usr/bin/totem-gstreamer
> NonfreeKernelModules: nvidia
> Package: totem-gstreamer 2.21.92-0ubuntu2
> PackageArchitecture: amd64
> ProcCwd: /home/ricardo
> ProcEnviron:
> LANGUAGE=pt_PT:pt:pt_BR:en_GB:en
> PATH=/home/ricardo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
> LANG=pt_PT.UTF-8
> SHELL=/bin/bash
> SourcePackage: totem
> Uname: Linux ricardo-laptop 2.6.24-7-generic #1 SMP Thu Feb 7 00:56:31 UTC
> 2008 x86_64 GNU/Linux
>

Revision history for this message
aner1018 (alfredo1018) wrote :

I have a similar problem with mi ubuntu 8.04.1 (upgraded, not installed from disk).
When i mount my ntfs drives, sometimes (i have not identified what is the trigger) it happens that i am unable to play any kind of media, on any media player. if it is audio it just dont play, and if it is video, is freezes in its first frame. My solution to this is to restar the whole OS.
Does it have anything to do with the solutions you have posted?

Revision history for this message
Walter Mattues (walter-mattues) wrote :

Hallo

I don't think so! The problem I have is when I start my pc, the sound
settings doesn't work. Meanwhile I have a little solution: I put my PC
in Pause or Hibernate and when I activate my machine the sound settings
are working then.
I suppose that there is a service not starting with the power on
command.
Greetings and perhaps I could help you?

Walter Mattues

Op woensdag 13-08-2008 om 02:49 uur [tijdzone +0000], schreef aner1018:

> I have a similar problem with mi ubuntu 8.04.1 (upgraded, not installed from disk).
> When i mount my ntfs drives, sometimes (i have not identified what is the trigger) it happens that i am unable to play any kind of media, on any media player. if it is audio it just dont play, and if it is video, is freezes in its first frame. My solution to this is to restar the whole OS.
> Does it have anything to do with the solutions you have posted?
>

Revision history for this message
Faust (faust94) wrote :

Thanks a lot guys !!!! You helped me very very much !! Thanks a lot!!!

Revision history for this message
J Posey (jpo) wrote :

I associated my audio problems with Totem, because that's where they first appeared, after an update. However, I have no sound at all when I boot using the current defaults.

In Sound Preferences Panel, testing sound playback for Sound Events and for Music and Movies fails no matter what option is selected:

Autodetect:
"audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! gconfaudiosink: Failed to connect stream: Invalid argument"

ALSA:
"audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! gconfaudiosink: Could not open audio device for playback."

ESD:
no result---"testing pipeline" keeps testing indefinitely, unresponsive to "OK", Window will not close, had to force quit.

OSS:
"audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! gconfaudiosink: Could not open audio device for playback."

PulseAudio Sound Server:
"audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! gconfaudiosink: Failed to connect stream: Invalid argument"

The reason? Someone (not me, I presume as part of a recent update) has changed my system so that it boots kernel 2.6.24.19-server. When I boot with 2.6.24.19-generic all the problems disappear, except that volume control refuses to control volume--- I can mute, but not adjust---it's all or nothing.

Revision history for this message
heribert (clheder) wrote :

I am not abel to hear sound

Revision history for this message
Ryan Budney (delooper) wrote :

I just started getting the same problem. I'm running Ubuntu 8.04.1 with all the updates. Last update was yesterday but the problems started today. The "switching to ALSA trick" seems to be working so far. I've only been running 8.04.1 for a couple weeks now and had one other problem -- an unexplained system crash earlier today. The crash happened when I was out so I'm not sure exactly what caused it but it seems to be sound related as the computer was playing the same "warning" sound every 2 or 3 seconds.

Revision history for this message
bernd (bkremerb) wrote :

can play DVDs in Totem

Revision history for this message
benje (benhaim-jerome) wrote :

hello,
 uninstall all pulseaudio related packages and reinstall it (or reinstall simply ubuntu-desktop) resolve problem for me under hardy
list of package:
gstreamer0.10-pulseaudio
pulseaudio
pulseaudio-esound-compat
pulseaudio-module-gconf
pulseaudio-module-hal
pulseaudio-module-x11
pulseaudio-utils

Revision history for this message
benje (benhaim-jerome) wrote :

eratta : it was just becuse it was not start after reinstall :/
sorry

Revision history for this message
ubby (kostas-sytske) wrote :

I hope the problem will be solved in Intrepid Ibex.

Revision history for this message
dreamstogo (hilary-bh-wright) wrote :

This bug exists also in Intrepid after today's updates. I was playing content just fine this morning, did an update and now no sound. When I use totem it shows the error. I have tried the ALSA suggestion and the pulseaudio suggetion in sound setting and it does not work.

Revision history for this message
dreamstogo (hilary-bh-wright) wrote :

I found a comment in another post (http://ubuntuforums.org/showthread.php?t=927784) that this affects any app using gstreamer and that VLC is not affected.

I can confirm this. I tried television, video, music with totem no luck; with vlc it works.

Also the choppyness of the music in vlc has been solved (I think this was a pulseaudio problem)

Revision history for this message
dreamstogo (hilary-bh-wright) wrote :

Sorry, LC works for music and avis but not for television; here I get video and about 1 second sound and then no sound, video contiues playing - no error either.

Revision history for this message
J Posey (jpo) wrote :

dreamstogo wrote:
> This bug exists also in Intrepid after today's updates. I was playing
> content just fine this morning, did an update and now no sound. When I
> use totem it shows the error. I have tried the ALSA suggestion and the
> pulseaudio suggetion in sound setting and it does not work.
>
>
Check your grub menu and see if by default you're now loading a server
instead of a desktop kernel. This happened to me in a prior update and
resulted in the subject error in Totem.

Revision history for this message
Alroger Filho (alroger-cafe-ti) wrote :

title Ubuntu intrepid (development branch), kernel 2.6.27-4-generic

Can't believe it... same here.
Intrepid Ibex i386... after todays updates pulseaudio broke again.... just like it did in Hardy after some update.
I had to enable my little script again.... after every login I need to kill pulseaudio, and run it as my own user.

#!/bin/bash
# fix por PulseAudio auto-start broken

sleep 8
killall -9 pulseaudio
sleep 5
pulseaudio&
sleep 5
paplay /usr/lib/openoffice/share/gallery/sounds/space.wav

Revision history for this message
Jim Kirkpatrick (jim-kirkpatrick) wrote :

I have the same problem under Intrepid as the other recent posters - today's update broke stuff.

uname -a:
>>> Linux wideboy 2.6.27-4-generic #1 SMP Wed Sep 24 01:30:51 UTC 2008 i686 GNU/Linux

paplay /usr/lib/openoffice/share/gallery/sounds/space.wav:
>>> Stream errror: Invalid argument

I'm not running a server version (J Posey), and can confirm that the little script posted by Alroger Filho above does fix sound across the whole system and various apps.

Revision history for this message
Marcos Sánchez (arkanus) wrote :

In intrepid i solved the problem by purging:
gstreamer0.10-pulseaudio
pulseaudio
pulseaudio-esound-compat
pulseaudio-module-gconf
pulseaudio-module-hal
pulseaudio-module-x11
pulseaudio-utils
and then reinstalling ubuntu-desktop, after that i had to return the values in the sound configuration to automatic, ran a couple of tests and now i can play audio normally

Revision history for this message
Luke Yelavich (themuso) wrote :

Please try the package for your architecture located here: http://www.themuso.id.au/ubuntu/alsa-plugins

Please also state what sound card you are using, and what version of PulseAudio you are running.

Thanks.

Revision history for this message
Luke Yelavich (themuso) wrote :

Can you please test the package for your architecture found here: http://www.themuso.id.au/ubuntu/alsa-plugins.

The problem is nothing to do with the kernel, but the pulseaudio plugin for alsa. Other people have experienced similar symptoms, and I believe I have tracked it down. If you could please test this package and report back, that would be much appreciated.

Thanks.

Revision history for this message
jeyam (jeyam-apk) wrote :

hello   Luke Yelavich

i have try to install it has shown some error  for the file libasound2-plugins_1.0.17-0ubuntu4~test1_i386 dependancy is not satisfiable
 libasound2
R.JEYARAMAN
(POWER ELECTRONICS & DRIVES)
CE+T India
CHENNAI

--- On Fri, 26/9/08, Luke Yelavich <email address hidden> wrote:
From: Luke Yelavich <email address hidden>
Subject: Re: [Bug 191027] Re: "Failed to connect stream: Invalid argument"
To: <email address hidden>
Date: Friday, 26 September, 2008, 9:33 AM

Can you please test the package for your architecture found here:
http://www.themuso.id.au/ubuntu/alsa-plugins.

The problem is nothing to do with the kernel, but the pulseaudio plugin
for alsa. Other people have experienced similar symptoms, and I believe
I have tracked it down. If you could please test this package and report
back, that would be much appreciated.

Thanks.

--
"Failed to connect stream: Invalid argument"
https://bugs.launchpad.net/bugs/191027
You received this bug notification because you are a direct subscriber
of the bug.

Status in “pulseaudio” source package in Ubuntu: Confirmed
Status in “totem” source package in Ubuntu: Confirmed
Status in pulseaudio in Ubuntu Hardy: Confirmed
Status in totem in Ubuntu Hardy: Confirmed

Bug description:
Binary package hint: totem

I am unable to play any type of content in Totem,
and, the opening Melodie (when the computers starts) sounds awfully...
I'm using the latest alpha development version of Hardy...
Update1: I'm also having trouble within Rhythmbox, so I did an Hardware
report and then I uploaded it within the Hardware collection tool in Ubuntu,
because I think there is some problem in ubuntu and the system isn't using
my sound card correctly.
Update2: The same error happens in the Sound control panel : System ->
Preferences -> Sound

ProblemType: Bug
Architecture: amd64
Date: Mon Feb 11 18:03:45 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/bin/totem-gstreamer
NonfreeKernelModules: nvidia
Package: totem-gstreamer 2.21.92-0ubuntu2
PackageArchitecture: amd64
ProcCwd: /home/ricardo
ProcEnviron:
 LANGUAGE=pt_PT:pt:pt_BR:en_GB:en

PATH=/home/ricardo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=pt_PT.UTF-8
 SHELL=/bin/bash
SourcePackage: totem
Uname: Linux ricardo-laptop 2.6.24-7-generic #1 SMP Thu Feb 7 00:56:31 UTC 2008
x86_64 GNU/Linux

      Connect with friends all over the world. Get Yahoo! India Messenger at http://in.messenger.yahoo.com/?wm=n/

Revision history for this message
dreamstogo (hilary-bh-wright) wrote :

I checked my GRUB settings as J Posey suggested. I think I am using a normal desktop kernel. I have this in the Grub menu.lst first entry,

title Ubuntu intrepid (development branch), kernel 2.6.27-2-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.27-2-generic root=UUID=0b8d72d2-ea05-42a4-96a6-46c815e139e9 ro quiet splash
initrd /boot/initrd.img-2.6.27-2-generic
quiet

Revision history for this message
dreamstogo (hilary-bh-wright) wrote :

Hello Luke,

I installed your test version; I did not get the missing dependencies as reported by Jeyam, however It did not solve the problem.

Pulseaudio version = 0.9.10-2ubuntu6
Sound card = Nvidia Nforce2

How can I help further?

Revision history for this message
dreamstogo (hilary-bh-wright) wrote :

arkanus suggested this,

>
>In intrepid i solved the problem by purging:
>gstreamer0.10-pulseaudio
>pulseaudio
>pulseaudio-esound-compat
>pulseaudio-module-gconf
>pulseaudio-module-hal
>pulseaudio-module-x11
>pulseaudio-utils
>and then reinstalling ubuntu-desktop, after that i had to return the values in the sound configuration to automatic, ran a >couple of tests and now i can play audio normally

I tried the same: it didn't work for me.

Revision history for this message
Bill (hudacek) wrote :
Download full text (22.6 KiB)

I tried your package (ibasound2-plugins_1.0.17-0ubuntu4~test1_i386.deb) on my t60p 2007-ad1 - clean install, no results, even after reboot.

However, there was some info in syslog - here it is, sans timestamps & the PID. Hope this helps. Let me know what else I might do to help & thanks for working on this!

main.c: 1 sink(s) available.
main.c: index: 0
main.c: ^Iname: <alsa_output.pci_8086_27d8_sound_card_0_alsa_playback_0>
main.c: ^Idriver: <modules/module-alsa-sink.c>
main.c: ^Iflags: HW_VOLUME_CTRL LATENCY HARDWARE
main.c: ^Istate: SUSPENDED
main.c: ^Ivolume: <0: 92% 1: 92%>
main.c: ^Imute: <0>
main.c: ^Ilatency: <0 usec>
main.c: ^Imonitor source: <0>
main.c: 1 sink(s) available.
main.c: ^Isample spec: <s16le 2ch 44100Hz>
main.c: ^Ichannel map: <front-left,front-right>
main.c: ^Iused by: <0>
main.c: ^Ilinked by: <0>
main.c: ^Imodule: <0>
main.c: ^Idescription: <ALSA PCM on front:0 (AD198x Analog) via DMA>
main.c: 2 source(s) available.
main.c: index: 0
main.c: ^Iname: <alsa_output.pci_8086_27d8_sound_card_0_alsa_playback_0.monitor>
main.c: ^Idriver: <modules/module-alsa-sink.c>
main.c: ^Iflags:
main.c: index: 0
main.c: ^Iname: <alsa_output.pci_8086_27d8_sound_card_0_alsa_playback_0>
main.c: ^Idriver: <modules/module-alsa-sink.c>
main.c: ^Iflags: HW_VOLUME_CTRL LATENCY HARDWARE
main.c: ^Istate: SUSPENDED
main.c: ^Ivolume: <0: 92% 1: 92%>
main.c: ^Imute: <0>
main.c: ^Ilatency: <0 usec>
main.c: ^Imonitor source: <0>
main.c: ^Isample spec: <s16le 2ch 44100Hz>
main.c: ^Ichannel map: <front-left,front-right>
main.c: ^Iused by: <0>
main.c: ^Ilinked by: <0>
main.c: ^Imodule: <0>
main.c: ^Idescription: <ALSA PCM on front:0 (AD198x Analog) via DMA>
main.c: 2 source(s) available.
main.c: index: 0
main.c: ^Iname: <alsa_output.pci_8086_27d8_sound_card_0_alsa_playback_0.monitor>
main.c: ^Idriver: <modules/module-alsa-sink.c>
main.c: ^Iflags:
main.c: ^Istate: SUSPENDED
main.c: ^Ivolume: <0: 100% 1: 100%>
main.c: ^Istate: SUSPENDED
main.c: ^Ivolume: <0: 100% 1: 100%>
main.c: ^Imute: <0>
main.c: ^Ilatency: <0 usec>
main.c: ^Isample spec: <s16le 2ch 44100Hz>
main.c: ^Ichannel map: <front-left,front-right>
main.c: ^Iused by: <0>
main.c: ^Ilinked by: <0>
main.c: ^Imonitor_of: <0>
main.c: ^Imodule: <0>
main.c: ^Idescription: <Monitor Source of ALSA PCM on front:0 (AD198x Analog) via DMA>
main.c: ^Imute: <0>
main.c: ^Ilatency: <0 usec>
main.c: ^Isample spec: <s16le 2ch 44100Hz>
main.c: ^Ichannel map: <front-left,front-right>
main.c: ^Iused by: <0>
main.c: ^Ilinked by: <0>
main.c: ^Imonitor_of: <0>
main.c: ^Imodule: <0>
main.c: ^Idescription: <Monitor Source of ALSA PCM on front:0 (AD198x Analog) via DMA>
main.c: index: 1
main.c: ^Iname: <alsa_input.pci_8086_27d8_sound_card_0_alsa_capture_0>
main.c: index: 1
main.c: ^Iname: <alsa_input.pci_8086_27d8_sound_card_0_alsa_capture_0>
main.c: ^Idriver: <modules/module-alsa-source.c>
main.c: ^Iflags: HW_VOLUME_CTRL LATENCY HARDWARE
main.c: ^Istate: SUSPENDED
main.c: ^Ivolume: <0: 0% 1: 0%>
main.c: ^Imute: <0>
main.c: ^Ilatency: <0 usec>
main.c: ^Isample spec: <s16le 2ch 44100Hz>
main.c: ^Ichannel map: <front-left,front-right>
main.c: ^Iused by: <0>
main.c: ^Idriver: <modules/modul...

Revision history for this message
brotherJohn (jens-ritter-gmail) wrote :

arkanus suggested this,
>
>In intrepid i solved the problem by purging:
>gstreamer0.10-pulseaudio
>pulseaudio
>pulseaudio-esound-compat
>pulseaudio-module-gconf
>pulseaudio-module-hal
>pulseaudio-module-x11
>pulseaudio-utils
>and then reinstalling ubuntu-desktop, after that i had to return the values in the sound configuration to automatic, ran a >couple of tests and now i can play audio normally

this worked for me

Revision history for this message
Luke Yelavich (themuso) wrote :

For those who have tried the test package I linked to and found it didn't work, this package is for intrepid only. It cannot be installed on hardy due to the version of libasound2 that is required.

For those of you who have tried the test package and found that things still don't work, please try the following:

1. SHut down/kill pulseaudio. This can be done either by running "killall pulseaudio" or "pulseaudio -k", the latter probably being more full-proof.
2. Delete all .pulse related files from your home directory, "cd ; rm -r .pulse*" should do the trick.
3. YOu can either log out and back in, reboot, or restart pulseaudio with "pulseaudio -D --log-target=syslog"

Then try playing audio as you have previously and let me know the results.

Thanks.

Revision history for this message
Robert Hrovat (robi-hipnos) wrote :

Luke, it helped. Thanks!

Revision history for this message
Kirtis Bakalarczyk (kirtis-bakalarczyk) wrote :

I had this problem in an up-to-date intrepid as of 2-Oct-2008. I didn't need to install any packages, but Luke's instructions for killing and restarting pulseaudio worked.

Revision history for this message
Lanz (superlanz88-deactivatedaccount) wrote :

Same problem here.

Luke's instructions works. Thanks

Revision history for this message
marcosdsanchez (marcosdsanchez) wrote :

Thanks Luke.

I can play media now.

Hope this gets solved as an update.

Revision history for this message
Glucklich (glucklich) wrote :

My audio always worked fine. Whether on Hardy or on the installation of Intrepid. But today, 4/10/08 at 19:17, I installed the new updates and I could not reproduce any kind of media files, on any media player, getting the message showed on the description of this topic. Here goes the detailed list of actualizations I made and the source of this problem.

Commit Log for Sat Oct 4 19:17:36 2008

Actualizados os seguintes pacotes:
cpp-4.3 (4.3.2-1ubuntu8) to 4.3.2-1ubuntu9
gcc-4.3 (4.3.2-1ubuntu8) to 4.3.2-1ubuntu9
gcc-4.3-base (4.3.2-1ubuntu8) to 4.3.2-1ubuntu9
libgcc1 (1:4.3.2-1ubuntu8) to 1:4.3.2-1ubuntu9
libgomp1 (4.3.2-1ubuntu8) to 4.3.2-1ubuntu9
libstdc++6 (4.3.2-1ubuntu8) to 4.3.2-1ubuntu9
xserver-xorg-video-ati (1:6.9.0+git20080826.a3cc1d7a-2ubuntu3) to 1:6.9.0+git20081003.f9826a56-0ubuntu2
xserver-xorg-video-radeon (1:6.9.0+git20080826.a3cc1d7a-2ubuntu3) to 1:6.9.0+git20081003.f9826a56-0ubuntu2

Revision history for this message
david (david-d) wrote :

hello all,

I've got the same "Failed to connect stream: Invalid argument" problem with rhythmbox and totem.
With the Intrepid beta. Changing the System Audio settings to oss (!) works.
Attached there is the output of GST_DEBUG_NO_COLOR=1 GST_DEBUG=3 totem --debug &>totem.txt

Revision history for this message
Łukasz Jernaś (deejay1) wrote :

Luke's hack works for me - I wonder what's the cause of it?

Revision history for this message
Ralf Nieuwenhuijsen (ralf-nieuwenhuijsen) wrote :

Same bug for me on Intrepid Beta live cd.

Changing OSS is not a hack; it's using something completely else.

Revision history for this message
Łukasz Jernaś (deejay1) wrote :

On Sun, Oct 5, 2008 at 8:56 PM, Ralf Nieuwenhuijsen
<email address hidden> wrote:
> Same bug for me on Intrepid Beta live cd.
>
> Changing OSS is not a hack; it's using something completely else.

Well, I meant deleting the .pulse directory and cookie...

Revision history for this message
TobiasDomhan (tdomhan) wrote :

got the problem on Intrepid beta, too.
changing to OSS works, with autodetect and alsa I get the above stated errors.
the stuff luke describes doesn't work.

Revision history for this message
Juan Hernández (juanhm) wrote :

Same problem hear after upgrading to Intrepid: I can hear the login sound but, after that, Totem is unable to play any movie or sound and I get the "Failed to connect stream" error when I press the test button in the sound preferences panel.

If I change my sound preferences to alsa or oss the sound tests are OK and if I kill pulseaudio from a console and start it again with "pulseaudio &" everything start to work, but when I restart the problem appears again.

So, as a summary, I can hear the login sound and I get the sound working again if I kill and restart pulseaudio manually.

Some technical details:

$ lspci
...
00:0a.0 Multimedia audio controller: Ensoniq 5880 AudioPCI (rev 02)
...

$ dpkg -l libasound*
+++-=========================-=========================-==================================================================
ii libasound2 1.0.17a-0ubuntu3 ALSA library
ii libasound2-plugins 1.0.17-0ubuntu4 ALSA library additional plugins

Thanks for working on this. Can i help further?

Revision history for this message
dx9s (dx9s) wrote :

I was having same problem with the developer branch of intrepid...

1) tried the reinstalling of ubuntu-desktop ... no-go...
2) restarting the pulseaudio server works (and an .xinitrc makes it more painless-of-a-workaround)
3) skip'ed installing the update alsa packages (so can't comment on that)

I was trying to figure out HOW the initial pulseaudio server got started when logging into the X session... it's still not clear, perhaps somebody can clarify this.

BUT (and I forgot how I came to trying this)

I typed:
% asoundconf set-pulseaudio

and this apparently creates an .asoundrc file which includes .asoundrc.asoundconf that points anything NOT default to pulse (is how I read it, could be wrong)

and rebooted and it came up working now (the initial pulseaudio server now works)

Funny thing is now the silly drum pattern during the gdm login screen doesn't make a sound NOR the startup sound file when starting GNOME in an X session. THIS is weird, because when it was working it would previously only do this upon the first session after starting gdm and any logout->login (w/o restart gdm) would cause the GNOME startup sound to NOT play (wierd I know)...

but NOW there is NO sounds inside gdm nor startup sound (an indication of something else not working)... but pulseaudio server seems healthy now.

I think it's a bit of a racing condition (or perhaps a chicken-or-the-egg) and one was pointing at the other and-or visa-versa.

Hope this helps narrow down the searching of the bug.... For now.. I know how to switch it around and get pulseaudio either NOT working (pure alsa), restarting the pulseaudio server (via .xinitrc) and not HAVING to restart pulseaudio server.

--Doug

Revision history for this message
dx9s (dx9s) wrote :

update: fixed the drum sounds in gdm ... seems like it is influenced by a bad .asoundrc/.aroundrc.asoundconf (which points to pulse ... and no pulse server when gdm is at the login screen) ...

removed the .asoundrc / .asoundrc.asoundconf from root's home dir

remove the .asoundrc / .asoundrc.asoundconf from the normal user account... still no startup sound.. but looks like totem still defaults to using pulse correctly ..

P.S. I suggest 'sudo apt-get install paman' and run paman to double check the pulse audio clients and "SEE" totem (and who-ever) connected to the pulseaudio server natively.

so that said... any alsa aware application will go direct without 'asoundconf set-pulse' (the files that creates)... running that creates the files and (in theory) any alsa application will be re-directed to pulse (without knowning it).

I hope this helps others out!

--Doug

Revision history for this message
Leon (leonbo) wrote :

when I did: sudo /etc/init.d/pulseaudio stop
and then: sudo pulseaudio, it worked!

Revision history for this message
dx9s (dx9s) wrote :

Leon .. are you suggesting there should be a "system" pulseaudio server (running as root / system wide kind of thing?)

I'll ask the question another way (to any developers)... what is the start-up process for pulseaudio ? when should it start (I saw the /etc/init.d/ and /etc/rc?.d/ for pulseaudio) .... perhaps there should be one and there is NOT..

Upon a fresh boot... I've switched to console and 'ps auxww | grep pulse' and there is no server when sitting at the gdm login screen ... so the gdm sound generated there must be ALSA ...

And my attempt to figure out how the pulseaudio server starts (under the normal user account) when an X session starts (via gdm) ... I gave up on finding it hoping somebody here would tell me where.

To me, this problem feels like a conflict between developers on the exact start-up process and something gets hung (perhaps a racing condition, or something not started in correct order).

All I know is there are several solutions that I know of... and none of them are perfect unless I hear something from a developer that clarifies the start-up process and can provide a set of instructions to verify things are configure correctly and/or starting up correctly.

--Doug

Revision history for this message
Leon (leonbo) wrote :

Sorry, dx9s. I did:

sudo /etc/init.d/pulseaudio stop
killall /usr/bin/pulseaudio
pulseaudio (no sudo)

and it worked. Killing all pulseaudio instanced and then doing "sudo pulseaudio" did nothing.

When I startup gnome, I noticed that /usr/bin/pulseaudio is being run. I looked into the session thing, but I can't find it there. Where's determined where /usr/bin/pulseaudio is started as the logged in user?

Revision history for this message
Alroger Filho (alroger-cafe-ti) wrote :

Observing all the comments, something poped up in my mind.
Might it not be GDM that is preventing Pulse to startup correctly?
See, if there is no pulseaudio running and GDM tries to make its startup sounds (1 before login, 1 after) it will probably use ALSA, and if it locks up alsa while pulse is starting, pulse will not be able to really start, because it could not get a hole of the sound system.
Does that make sense to you guys?
I don't what libasound2 or anything like that might help, cause pulseaudio is working. It just doesn't startup correctly.
And as far as I read, it should be started as the user, not root.

Revision history for this message
dx9s (dx9s) wrote :

Leon...

that's the same as what others are doing... restarting the pulseaudio server in your user space... that also works for me... as a workaround.

but in my case, I found removing the .asoundrc* (or 'asoundconf set-pulseaudio') to create ones pointing to pulseaudio server in a special way -- solved having to re-start that server (services).. I can now log in w/o having to restart pulseaudio (killall pulseaudio; pulseaudio)... aka using the ORIGINAL pulseaudio server that starts moments after logging into gdm.

I also got the volume levels adjusted and stored... so now the gdm sound (the drum) plays, the login sound starts (both via ALSA I am guessing) and totem (and any other pulse audio app) works via pulseaudio (either directly or via an alsa->pulse redirect).

--Doug

Revision history for this message
Juan Hernández (juanhm) wrote :

dx9s...

I don´t really understand very well what is the reason, but issuing "asoundconf -set-pulse" at a console also works for me. Now I can hear the drums and the login sound in gdm, and once inside the gnome session everything seems ok (totem, sound settings in the panel, etc.)

I guess that the files created with the command you suggested in some way prepare Alsa applications to use pulseaudio as the default sink. So the gdm sounds now go through alsa (which then uses pulseaudio) while other applications like Totem go directly through pulse, but all of this works fine at the same time.

Thanks for your suggestion, which I think that could be the base for a fix if someone can explain the logic behind.

Revision history for this message
Sebastien Bacher (seb128) wrote :

the bug is not a totem one

Changed in totem:
milestone: ubuntu-8.04 → none
status: Confirmed → Invalid
milestone: ubuntu-8.04 → none
status: Confirmed → Invalid
Revision history for this message
J Posey (jpo) wrote :

True, except that Totem might be smarter to say in effect "I can't find
an audio outlet for the sound, but you can watch the video anyway if you
want"

Sebastien Bacher wrote:
> the bug is not a totem one
>
> ** Changed in: totem (Ubuntu)
> Status: Confirmed => Invalid
> Target: ubuntu-8.04 => None
>
> ** Changed in: totem (Ubuntu Hardy)
> Status: Confirmed => Invalid
> Target: ubuntu-8.04 => None
>
>

Revision history for this message
Łukasz Jernaś (deejay1) wrote :

Works for me now in Intrepid after todays update

Revision history for this message
Ralf Nieuwenhuijsen (ralf-nieuwenhuijsen) wrote :

Apport is now telling me gnome-login-sound has crashed; eventhough I heard
it play without problems. When apport is turned off, this message will go
away I presume, but it makes me feel funny.

Isn't there a better way than to configure things so that a race-condition
is _unlikely_?
Perhaps there is a solution that makes a race condition theoretically
impossible? Like launching pulseaudio after the login-sound .. or having
pulse-audio launch the login-sound ..

I know upstart doesn't do user-space; but it surely sounds like what we
really need is some event-based scheduling system here.

2008/10/10 Łukasz Jernaś <email address hidden>

> Works for me now in Intrepid after todays update
>
> --
> "Failed to connect stream: Invalid argument"
> https://bugs.launchpad.net/bugs/191027
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Luke Yelavich (themuso) wrote :

This bug was originally reported against hardy. For those of you who experienced problems in intrepid, if your problem is not resolved already, please either reply to another bug that is closer to your situation, or file a new bug if you feel that no other bug covers your issue. Any issues that intrepid users experienced should now be resolved in the upload of pulseaudio 0.9.10-2ubuntu8, as discussed in bug 274124.

Revision history for this message
Alroger Filho (alroger-cafe-ti) wrote :

Well, the problem persists in Hardy and the latest Intrepid Beta updates brought back the problem.
Exact same problema. I just have to kill pulseaudio e start it as my own user for it to work.

Changed in pulseaudio:
assignee: nobody → yacoobsyifa06
Revision history for this message
frizzle21 (frederik-nnaji) wrote :

sound works for new users now.. through pulse. yet it is stammering and
staggering, even the ubuntu logon sound.
anyone know of a tool to set my user settings and startup scripts to
default, just like in a newly created user account?

On Sun, Nov 16, 2008 at 9:01 PM, yacoobsyifa06 <email address hidden>wrote:

> ** Changed in: pulseaudio (Ubuntu Hardy)
> Assignee: (unassigned) => yacoobsyifa06 (yacoobsyifa06)
>
> --
> "Failed to connect stream: Invalid argument"
> https://bugs.launchpad.net/bugs/191027
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in "pulseaudio" source package in Ubuntu: Confirmed
> Status in "totem" source package in Ubuntu: Invalid
> Status in pulseaudio in Ubuntu Hardy: Confirmed
> Status in totem in Ubuntu Hardy: Invalid
>
> Bug description:
> Binary package hint: totem
>
> I am unable to play any type of content in Totem,
> and, the opening Melodie (when the computers starts) sounds awfully...
> I'm using the latest alpha development version of Hardy...
> Update1: I'm also having trouble within Rhythmbox, so I did an Hardware
> report and then I uploaded it within the Hardware collection tool in Ubuntu,
> because I think there is some problem in ubuntu and the system isn't using
> my sound card correctly.
> Update2: The same error happens in the Sound control panel : System ->
> Preferences -> Sound
>
> ProblemType: Bug
> Architecture: amd64
> Date: Mon Feb 11 18:03:45 2008
> DistroRelease: Ubuntu 8.04
> ExecutablePath: /usr/bin/totem-gstreamer
> NonfreeKernelModules: nvidia
> Package: totem-gstreamer 2.21.92-0ubuntu2
> PackageArchitecture: amd64
> ProcCwd: /home/ricardo
> ProcEnviron:
> LANGUAGE=pt_PT:pt:pt_BR:en_GB:en
>
> PATH=/home/ricardo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
> LANG=pt_PT.UTF-8
> SHELL=/bin/bash
> SourcePackage: totem
> Uname: Linux ricardo-laptop 2.6.24-7-generic #1 SMP Thu Feb 7 00:56:31 UTC
> 2008 x86_64 GNU/Linux
>

Steve Langasek (vorlon)
Changed in pulseaudio:
assignee: yacoobsyifa06 → nobody
milestone: ubuntu-8.04.2 → ubuntu-8.04.3
Daniel T Chen (crimsun)
Changed in pulseaudio:
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pulseaudio - 0.9.14-0ubuntu6

---------------
pulseaudio (0.9.14-0ubuntu6) jaunty; urgency=low

  * 0004_disable_autospawn.patch: Disable this patch. Doing so
    allows the daemon to spawn if not already running, which
    works around LP: #191027, #204272
  * 0012_clarify_driver_error_redirect_to_alsa_devs.patch:
    - Only log POLL* being set if tsched is used so that syslog
      isn't filled with innocuous messages when we set tsched=0
      (see 0030 below) (LP: #323712),
    - Hint 'linux' source package instead of 'alsa-driver' for
      Launchpad bug reports,
    - The debug-specific portion is only applicable to 0.9.14;
      0.9.15 enables a rate limiting module by default to work
      around this (and other) issues
  * 0029_fix_suspend_on_idle_null_race.patch: Handle sink case,
    too
  * 0030_set_tsched0.patch: Work around a shedload of (driver)
    bugs by falling back to interrupt-based buffer semantics
    (LP: #190754, #292880, #295519, #298494, #301755, #302964,
     LP: #319118, #323976, #324103, #326205, #326864)
  * Backport fixes from git HEAD:
    - 0031_fix_6chan_map.patch,
    - 0032_reinit_proplist.patch,
    - 0033_fix_pa-gcc-packedmalloc.patch,
    - 0034_bt_fixes.patch
  * Make invoking the stop target in the initscript not fail an
    upgrade (LP: #317921)
  * Previous upload (0.9.14-0ubuntu3) fixed LP: #321357
  * 01PulseAudio: use sudo -H to ensure that $HOME is, in fact,
    the user's when invoking pacmd for suspend/resume

 -- Daniel T Chen <email address hidden> Sun, 15 Feb 2009 02:35:26 -0500

Changed in pulseaudio:
status: Fix Committed → Fix Released
Revision history for this message
P C Sudhakaran (pc-sudhan) wrote :

sound was working...but after the installation of mp3 codecs(G stream) ...it worked for 2-3 days..there is a message..'no volume control g streamer plugin and/or devices found'

tracey (tracey-barry)
Changed in totem:
status: Invalid → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

don't reopen a closed task without explanation

Changed in totem:
status: Confirmed → Invalid
Revision history for this message
Adrian Godoy (adrigodoy) wrote :

How can I upgrade to the newest package by using Synaptic on Ubuntu 8.10?

Revision history for this message
Lefteris (lefterists) wrote :

It seems like the bug reopened.

Revision history for this message
manzur (sl-solaris) wrote :

this is happening in jaunty jackalope as well

Revision history for this message
manzur (sl-solaris) wrote :

this is happening in jaunty jackalope too

description: updated
Revision history for this message
Sebastien Bacher (seb128) wrote :

the jaunty issue could be a different one better to open a new bug

Changed in pulseaudio (Ubuntu Hardy):
assignee: nobody → supri-intisukses
Revision history for this message
MarkS (skriv7) wrote :

 I probably should have stuck with windows or a Mac, because I'm just not following this. I think this is the stream that I started when I noticed the movie player wasn't playing any sort of content. I'm hoping it is just a setting I have to adjust. I'm not terribly proficient yet with downloading or more accurately, installing, new programs in Ubuntu.
Thanks,
Decidedly not geeky enough for Linux

-----Original Message-----
From: supriyadi <email address hidden>
To: <email address hidden>
Sent: Fri, 24 Apr 2009 7:47 pm
Subject: [Bug 191027] Re: "Failed to connect stream: Invalid argument"

** Changed in: pulseaudio (Ubuntu Hardy)
     Assignee: (unassigned) => supriyadi (supri-intisukses)

--
"Failed to connect stream: Invalid argument"
https://bugs.launchpad.net/bugs/191027
You received this bug notification because you are a direct subscriber
of the bug.

Status in “pulseaudio” source package in Ubuntu: Fix Released
Status in “totem” source package in Ubuntu: Invalid
Status in pulseaudio in Ubuntu Hardy: Confirmed
Status in totem in Ubuntu Hardy: Invalid

Bug description:
Binary package hint: totem

I am unable to play any type of content in Totem,
and, the opening Melodie (when the computers starts) sounds awfully...
I'm using the latest alpha development version of Hardy...
Update1: I'm also having trouble within Rhythmbox, so I did an Hardware report
and then I uploaded it within the Hardware collection tool in Ubuntu, because I
think there is some pro
blem in ubuntu and the system isn't using my sound card
correctly.
Update2: The same error happens in the Sound control panel : System ->
Preferences -> Sound

ProblemType: Bug
Architecture: amd64
Date: Mon Feb 11 18:03:45 2008
DistroRelease: Ubuntu 8.04 and 9.04
ExecutablePath: /usr/bin/totem-gstreamer
NonfreeKernelModules: nvidia
Package: totem-gstreamer 2.21.92-0ubuntu2
PackageArchitecture: amd64
ProcCwd: /home/ricardo
ProcEnviron:
 LANGUAGE=pt_PT:pt:pt_BR:en_GB:en
 PATH=/home/ricardo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=pt_PT.UTF-8
 SHELL=/bin/bash
SourcePackage: totem
Uname: Linux ricardo-laptop 2.6.24-7-generic #1 SMP Thu Feb 7 00:56:31 UTC 2008
x86_64 GNU/Linux

Revision history for this message
yousef (yousef-aya) wrote :

Failed to connect stream: Invalid argument

Revision history for this message
RUSL Bicycle (bikerusl) wrote :

Running Ubuntu Hardy 64 bit. Using standard proprietary packages for mp3 mediabuntu etc. Things worked fine. Then after a botched kernel update (done while root filesystem ran out of space) was getting weird mp3 playback error.

mp3 would play in mpg321 and VLC only. Movies worked in VLC only. Everything else (songbird, totem, etc) invalid stream argument. I didn't realise kernel update was botched because everything else worked and because the filesystem running out of space was a surprise (large file misplaced on wrong partition) I re-installed totem, and every mp3 library/codec to no avail.

Finally realised about the kernel update issue, re-installed all the latest kernel packages as well as pcmcia. Reboot. Sound now works upon login! yay.

Steve Langasek (vorlon)
Changed in pulseaudio (Ubuntu Hardy):
assignee: supriyadi (supri-intisukses) → nobody
milestone: ubuntu-8.04.3 → none
Revision history for this message
yousef (yousef-aya) wrote :

thank you..

On 7/16/09, Steve Langasek <email address hidden> wrote:
>
> ** Changed in: pulseaudio (Ubuntu Hardy)
> Milestone: ubuntu-8.04.3 => None
>
> ** Changed in: pulseaudio (Ubuntu Hardy)
> Assignee: supriyadi (supri-intisukses) => (unassigned)
>
> --
> "Failed to connect stream: Invalid argument"
> https://bugs.launchpad.net/bugs/191027
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “pulseaudio” package in Ubuntu: Fix Released
> Status in “totem” package in Ubuntu: Invalid
> Status in pulseaudio in Ubuntu Hardy: Confirmed
> Status in totem in Ubuntu Hardy: Invalid
>
> Bug description:
> Binary package hint: totem
>
> I am unable to play any type of content in Totem,
> and, the opening Melodie (when the computers starts) sounds awfully...
> I'm using the latest alpha development version of Hardy...
> Update1: I'm also having trouble within Rhythmbox, so I did an Hardware
> report and then I uploaded it within the Hardware collection tool in Ubuntu,
> because I think there is some problem in ubuntu and the system isn't using
> my sound card correctly.
> Update2: The same error happens in the Sound control panel : System ->
> Preferences -> Sound
>
> ProblemType: Bug
> Architecture: amd64
> Date: Mon Feb 11 18:03:45 2008
> DistroRelease: Ubuntu 8.04 and 9.04
> ExecutablePath: /usr/bin/totem-gstreamer
> NonfreeKernelModules: nvidia
> Package: totem-gstreamer 2.21.92-0ubuntu2
> PackageArchitecture: amd64
> ProcCwd: /home/ricardo
> ProcEnviron:
> LANGUAGE=pt_PT:pt:pt_BR:en_GB:en
>
> PATH=/home/ricardo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
> LANG=pt_PT.UTF-8
> SHELL=/bin/bash
> SourcePackage: totem
> Uname: Linux ricardo-laptop 2.6.24-7-generic #1 SMP Thu Feb 7 00:56:31 UTC
> 2008 x86_64 GNU/Linux
>

bond (akhil-mi87)
Changed in pulseaudio (Ubuntu):
assignee: nobody → bond (akhil-mi87)
Revision history for this message
Daniel Holbach (dholbach) wrote :

Ubuntu 8.04 (Hardy) is EOL.

Changed in pulseaudio (Ubuntu Hardy):
status: Confirmed → Invalid
To post a comment you must log in.