[Bug 692953] alsa modules are silent or noisy after several hours of use

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Aug 23 08:06:57 PDT 2013


https://bugzilla.gnome.org/show_bug.cgi?id=692953
  GStreamer | gst-plugins-base | 1.0.6

--- Comment #48 from Thomas DEBESSE <thomas.debesse at rcf.fr> 2013-08-23 15:06:52 UTC ---
For your information, I've launched yesterday two independent pipelines on the
PCIe ESI Juli@ XTE soundcard :

one pipeline for alsasrc:
"alsasrc device=hw:Juli ! capsfilter caps="audio/x-raw, format=S32LE,
rate=48000, channels=2" ! audioconvert ! audioresample ! capsfilter
caps="audio/x-raw, format=F32LE, rate=48000, channels=2" ! jackaudiosink
client-name=pipeline_src sync=false connect=none"

one pipeline for alsasink:
"jackaudiosrc client-name=pipeline_sink connect=none ! capsfilter
caps=\"audio/x-raw, format=F32LE, rate=48000, channels=2\" ! audioconvert !
audioresample ! capsfilter caps=\"audio/x-raw, format=S32LE, rate=48000,
channels=2\" ! alsasink device=hw:Juli sync=false"

They are independent. They are connected with jack. I can change one without
changing the other.

The "alsasrc ! something" had output these warning BUT HAS NOT faild:
AVERTISSEMENT : de l'élément /GstPipeline:pipeline0/GstAlsaSrc:alsasrc0 :
Impossible d'enregistrer assez rapidement les données audio
Information de débogage supplémentaire :
gstaudiobasesrc.c(848): gst_audio_base_src_create ():
/GstPipeline:pipeline0/GstAlsaSrc:alsasrc0:
Dropped 10240 samples. This is most likely because downstream can't keep up and
is consuming samples too slowly.
14:50:41.515700033  3711  0x97f84f0 WARN            audiobasesrc
gstaudiobasesrc.c:843:gst_audio_base_src_create:<alsasrc0> create DISCONT of
10240 samples at sample 2565442560
14:50:41.515759371  3711  0x97f84f0 WARN            audiobasesrc
gstaudiobasesrc.c:848:gst_audio_base_src_create:<alsasrc0> warning: Impossible
d'enregistrer assez rapidement les données audio
14:50:41.515785649  3711  0x97f84f0 WARN            audiobasesrc
gstaudiobasesrc.c:848:gst_audio_base_src_create:<alsasrc0> warning: Dropped
10240 samples. This is most likely because downstream can't keep up and is
consuming samples too slowly.

This pipeline is NOT silent.
It DOES NOT need:
pipeline_src.set_state(Gst.State.NEED)
pipeline_src.set_state(Gst.State.PLAYING)
to works, it works already (but perhaps can failed with more time).

The "something ! alsasink" pipeline had outputs these warnings AND HAS failed:
16:12:20.371744040  3687 0xb0102690 WARN            audiobasesrc
gstaudiobasesrc.c:843:gst_audio_base_src_create:<jackaudiosrc0> create DISCONT
of 23552 samples at sample 2800318464
16:12:20.371898922  3687 0xb0102690 WARN            audiobasesrc
gstaudiobasesrc.c:848:gst_audio_base_src_create:<jackaudiosrc0> warning:
Impossible d'enregistrer assez rapidement les données audio
16:12:20.371929869  3687 0xb0102690 WARN            audiobasesrc
gstaudiobasesrc.c:848:gst_audio_base_src_create:<jackaudiosrc0> warning:
Dropped 23552 samples. This is most likely because downstream can't keep up and
is consuming samples too slowly.

This pipeline IS SILENT.
It NEEDs:
pipeline_sink.set_state(Gst.State.NULL)
pipeline_sink.set_state(Gst.State.PLAYING)
to works again. Sound come back after that.

This pipeline use the ESI Juli@ XTE as record interface, the prealloc is 256:

user at b $ cat /proc/asound/card2/pcm0p/sub0/prealloc
256
user at b $ cat /proc/asound/card2/pcm0c/sub0/prealloc
256

This is software used:

user at b $ uname -s -r -v -m -o
Linux 3.2.0-4-rt-686-pae #1 SMP PREEMPT RT Debian 3.2.35-2 i686 GNU/Linux

user at b $ /usr/sbin/alsactl -v
alsactl version 1.0.25

user at b $ gst-inspect-1.0 alsasink | grep Version
  Version:        1.0.9
user at b $ gst-inspect-1.0 jackaudiosrc | grep Version
  Version:        1.0.9


Two conclusions:

~~ 1. I don't know if the "prealloc proc file" value is related, but if it's
related, 256 is too short.

~~ 2. Warnings like "This is most likely because downstream can't keep up and
is consuming samples too slowly." are unrelated.
Some pipeline failed without this kind of warning, some pipeline don't failed
with this kind of warning.

NB: I have no "INFO" nor "DEBUG" output on this pipelines (uses GST_DEBUG=3).

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list