Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 504814 - media-sound/pulseaudio-5.0 - sound often skips
Summary: media-sound/pulseaudio-5.0 - sound often skips
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-16 16:09 UTC by Sven
Modified: 2014-04-14 22:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven 2014-03-16 16:09:40 UTC
I recently upgraded from pulseaudio 4.0 to 5.0. Since then, the audio often starts to skip. By skip I mean, that a short fragment of sound is looped for several times before playback continues as normal. My configuration is pretty much default.


Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-03-16 16:45:52 UTC
1) Please post your `emerge --info media-sound/pulseaudio' output in a comment.
Comment 2 Sven 2014-03-16 17:13:18 UTC
Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop/gnome, gcc-4.7.3, glibc-2.17, 3.13.6 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.13.6-x86_64-Intel-R-_Core-TM-_i5_CPU_M_540_@_2.53GHz-with-gentoo-2.2
KiB Mem:     8024848 total,    781696 free
KiB Swap:   12582908 total,  12582908 free
Timestamp of tree: Sun, 16 Mar 2014 11:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r3, 3.3.3
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo temp private Sven-s-overlay g-octave mate-overlay lordvan gamerlay
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA PUEL skype-eula skype-4.0.0.7-copyright dlj-1.1 googleearth Oracle-BCLA-JavaSE AdobeFlash-10 AdobeFlash-10.1 AdobeFlash-10.3 AdobeFlash-11.x Google-TOS google-chrome TeamViewer"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=corei7 -mtune=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-2.2/conf /usr/share/maven-bin-3.1/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=corei7 -mtune=native"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --quiet-build n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS=" 	http://mirror.netcologne.de/gentoo/ 	http://mirror.leaseweb.com/gentoo/ 	http://mirror.ovh.net/gentoo-distfiles/ 	http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ 	http://gentoo.wheel.sk/ 	http://www.mirrorservice.org/sites/distfiles.gentoo.org/ 	http://gentoo.mneisen.org/ 	http://mirror.opteamax.de/gentoo/ 	http://ftp.fi.muni.cz/pub/linux/gentoo/  	http://mirror.switch.ch/ftp/mirror/gentoo/         http://de-mirror.org/gentoo/ "
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/temp /usr/local/portage/private /usr/local/portage/skoehler /var/lib/g-octave /var/lib/layman/mate /var/lib/layman/lordvan /var/lib/layman/gamerlay"
USE="X a52 aac aalib acl acpi adplug ads aften alsa amd64 amr ap apng bash-completion berkdb bluetooth bluray branding bzip2 cairo cdda cdr cli colord connection-sharing context cracklib crypt cue cups cxx dbus device-mapper dhcpcd dia dirac distinct-l dri dts dv dvb dvd dvdr dvi dvipdfm eds emboss emerald enca encode evo exif faac faad fam fat fdt ffmpeg fftw firefox flac fluidsynth fortran fuse g3dvl gdbm geoip gif gimp git gnome gnome-keyring gnome-online-accounts gphoto2 gpm graphics gs gsm gstreamer gtk gtkstyle hddtemp iconv icq id3tag idn introspection ipv6 irc jabber jpeg jpeg2k kpathsea lame laptop lcms ldap libass libcaca libkms libmpeg2 libnotify libsamplerate libsecret lm_sensors luatex lzma mad midi mms mmx mmxext mng mod modemmanager modplug modules mp3 mp4 mpeg mpg123 mtp multilib musepack nautilus ncurses netapi networkmanager nls nntp nptl ntfs nvidia ogg openal openexr opengl openmp opus osmesa pam pango pch pcre pdf perl png policykit postscript ppds pulseaudio python qemu qt3support qt4 rdp readline resolvconf samba schroedinger science sdl secure-delete session smp sndfile socialweb speex spell sse sse2 sse3 sse4 sse4_1 sse4_2 ssl ssse3 startup-notification stl subversion svg system-cairo system-icu system-jpeg system-sqlite systemd tex4ht texi2html theora tiff truetype twolame udev udisks unicode unlock-notify upower usb v4l v4l2 vaapi vcd vdpau virtualbox vorbis vpx wavpack wxwidgets x264 xcb xcomposite xetex xinerama xml xorg xps xv xvid xvmc zlib" ABI_X86="32 64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="fuji ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DVB_CARDS="usb-dib0700" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-32 efi-64 pc" INPUT_DEVICES="evdev mouse keyboard synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="i386 x86_64 arm" QEMU_USER_TARGETS="i386 x86_64 arm" RUBY_TARGETS="ruby19 ruby20" SANE_BACKENDS="genesys" USERLAND="GNU" VIDEO_CARDS="vesa nouveau modesetting nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

media-sound/pulseaudio-5.0 was built with the following:
USE="X alsa asyncns bluetooth caps dbus gdbm glib gnome gtk ipv6 libsamplerate orc qt4 ssl systemd udev webrtc-aec -avahi -doc -equalizer -jack -lirc (-neon) (-oss) -realtime (-system-wide) -tcpd -test -xen" ABI_X86="32 64 -x32"
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2014-03-17 01:17:30 UTC
And what is SND_HDA_PREALLOC_SIZE set to (in your kernel). It looks like the advice from pkg_pretend() might apply here.
Comment 4 Sven 2014-03-17 08:32:35 UTC
Recompiled kernel with SND_HDA_PREALLOC_SIZE set to 2048. Will report back later whether it helped. It was indeed still set to 64 (the good old default).

I didn't previously see the advice by the pulseaudio ebuild. Sorry for that.
Comment 5 Sven 2014-03-17 21:50:31 UTC
Well, I've been listening to 30 minutes of music without skips. Obviously my kernel config was bad.
Comment 6 Sven 2014-04-14 22:36:06 UTC
Well, setting SND_HDA_PREALLOC_SIZE to 2048 didn't really help.
When I listen to music (with audacious) sound skips and repeats. Sometimes some chunks of music seems to be out of order. This is extremely annoying, and it seems to occur more often if I'm emerging something (portage niceness is 19).

Right now, I'm experimenting with tsched=0.