Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 347985 - media-sound/jack-audio-connection-kit-0.118.0 : Overflow of XRUNs after 13h31mn
Summary: media-sound/jack-audio-connection-kit-0.118.0 : Overflow of XRUNs after 13h31mn
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Professional Audio Applications Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-06 23:14 UTC by Eric F. GARIOUD
Modified: 2012-10-06 13:15 UTC (History)
0 users

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 Eric F. GARIOUD 2010-12-06 23:14:00 UTC
13 h 31 mn 33 s +- 5s after being launched, jackd is overflown by XRUNS, crunching ad libitum all machine ressources.

Reproducible: Always

Steps to Reproduce:
1. Jackd launched automaticaly by qjackctl (jackd -R -P89 -dalsa -r44100 -p512 -n2 -D -Chw:2 -Phw:2 -s -Xraw -zs)
2. Wait for 13h31mn35s (using jack clients or not)

Actual Results:  
======== Traces when problem occurs (no client registred) =====================
23:34:39.236 XRUN callback (1).
delay of 48867.000 usecs exceeds estimated spare time of 11587.000; restart ...
----- preceeding entry repeated 5 times -------
23:34:40.237 XRUN callback (6).
delay of 38983.000 usecs exceeds estimated spare time of 11579.000; restart ...
----- preceeding entry repeated 8 times --------
23:34:42.237 XRUN callback (14).
..... And so on ad libitum .....


media-sound/jack-audio-connection-kit-0.118.0  USE="-3dnow alsa (-altivec) (-coreaudio) -cpudetection -debug -doc -examples mmx -oss sse"
Gentoo-Sources 2.6.34-r12

Could be a coincidence but I think it is worth to mention :

7FFFFFFF / 44100 = 13 h 31 mn 35 s approx !

Would there be somewhere some signed long += sampling frequency every second since jackd launch ?
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2010-12-15 00:43:11 UTC
Please post your `emerge --info' output in a comment.
Comment 2 Eric F. GARIOUD 2010-12-15 08:44:01 UTC
Portage 2.1.9.24 (default/linux/amd64/10.0, gcc-4.4.4, glibc-2.11.2-r3, 2.6.34-gentoo-r12.1 x86_64)
=================================================================                                                                                                                                                                
System uname: Linux-2.6.34-gentoo-r12.1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-1.12.14
Timestamp of tree: Wed, 15 Dec 2010 05:50:01 +0000
app-shells/bash:     4.1_p7    
dev-java/java-config: 2.1.11-r1 
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2                                             
sys-apps/baselayout: 1.12.14-r1                                              
sys-apps/sandbox:    2.3-r1                                                    
sys-devel/autoconf:  2.13, 2.65-r1   
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1 
sys-devel/binutils:  2.20.1-r1                                       
sys-devel/gcc:       4.4.4-r2 
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10 
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers) 
ACCEPT_KEYWORDS="amd64"                                                                                                                                                                                                          
ACCEPT_LICENSE="*"                                                                                                                                                                                                               
CBUILD="x86_64-pc-linux-gnu"                                                  
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /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="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--color y --alphabetical"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org/ "
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="64bit X Xaw3d a52 aac aalib accessibility acpi aesicm aften alsa amd64 amr archive ares asf ass atm audio autotrace bash-completion blksha1 bookmarks bs2b bzip2 cairo calendar caps cdda cddb cdio cdparanoia cdr cleartype clucene community compat contactnotes contrast corefonts coverage cracklib crypt css cups curl custom-cflags custom-optimization cxx dbi dbus dedicated dga dirac disk-partition djbfft djvu dts dv dvb dvd dvdnav dvdr dynamic eap-tls ebook editor eigen emf enca encode eselect espeak exceptions exif expat faac faad fat ffmpeg fftw firefox fits flac fltk fontconfig fontforge fortran fpx frei0r ftp fts3 gd geoip gif gimp glib glibc-omitfp glitz glut gmp gnuplot google-gadgets gphoto2 graphviz gs gsl gsm gstreamer gtk gucharmap gzip hal handbook hardcoded-tables hddtemp hdf5 hdri history hotpixels hpijs iconv icq icu id3tag idn ilbc imagemagick imap imlib innodb inotify iodbc ipc ipod jabber jack java java6 javascript jbig jingle joystick jpeg jpeg2k kde kipi kontact ladspa lame lapack lasi latex lcdfilter lcms ldap lensfun libcaca libffi libgig libnotify libsamplerate live lm_sensors lqr lv2 lzma lzo m17n-lib mad matroska mbox mhash midi mime mmap mmx mng modplug mp3 mp4 mpeg mpi mpi-threads mplayer mudflap multilib multislot musepack musicbrainz mysql ncurses neXt netcdf network nls nntp nocd nptl nsplugin ntfs ntp nut odbc offensive ofx ogg openal openexr opengl openmp optimized-qmake oscar osdmenu pam pch pdf phonon pkcs11 plasma plotutils png pnm posix postproc ppds ppp privacy ps pth pvr python qalculate qt-faststart qt3support qt4 quicktime qwt raptor rar raw readline recode redland rle romio rss rtc rtmp schroedinger sdl secure-delete semantic-desktop sensord session sftp sha512 sharedmem shm shorten skype smp sms sndfile soap sockets solver soundex soundtouch sox speex spell srp srtp sse sse2 sse3 ssl ssse3 startup-notification static-ppds statistics svg system-sqlite sysvipc szip taglib tcpd texteffect tga theora thin-splines threads threadsafe thumbnail tidy tiff timezone toolbar translator tremor truetype twolame unicode urlpicpreview usb uuid v4l v4l2 vaapi vamp vcd vdpau video videos vim-syntax virtuoso vnc vorbis vpx wavpack webdav webkit webpresence wide-unicode wmf wxwidgets x264 xanim xattr xcb xcomposite xface xft xine xml xmp xorg xosd xpdf-headers xpm xv xvid xvmc yahoo yaz yv12 zlib" ALSA_CARDS="hda-intel ice1712" ALSA_PCM_PLUGINS="jack adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="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, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 3 Eric F. GARIOUD 2010-12-16 20:11:06 UTC
(In reply to comment #0)
...
> Could be a coincidence but I think it is worth to mention :
> 
> 7FFFFFFF / 44100 = 13 h 31 mn 35 s approx !
> 
> Would there be somewhere some signed long += sampling frequency every second
> since jackd launch ?
>

I confirm this coincidence and add new information :

- I now run jackd with a 48Khz sampling frequency.
- I set the Multi Track Internal Clock of my ICE1712 supported sound card to 48Khz.

The problem now occurs systematically 12 h 25 mn 36 s +- 5s after jackd launch.

There again : 7FFFFFFF / 48000 = 12 h 25 mn 35 s approx !

- If I change jackd sampling rate to 48Khz but keeping the Multi Track Internal Clock to 44.1, the problem still occurs systematically within the preceeding 13 h 31 mn 33 s +- 5s figure.

=> We would definitely get some trouble triggered by the overflow of some signed 32 bits word but linked to the M-Audio-Audiophile-24-96 Multi Track Internal Clock value.
Comment 4 Pacho Ramos gentoo-dev 2012-10-06 12:26:17 UTC
Please retry with media-sound/jack-audio-connection-kit-0.121.3
Comment 5 Eric F. GARIOUD 2012-10-06 13:15:03 UTC
(In reply to comment #4)
> Please retry with media-sound/jack-audio-connection-kit-0.121.3

Thank you Pacho for caring.

This bug impacting on jackd 0.118.0 under gs 2.6.34 (alsa 1.0.23)
Also occurs identically on jackd 0.121.3 under gs 3.4.9 (alsa 1.0.25)

Further investigations I achieved on this topic show that :

- It only occurs if jackd is launched -Xraw.
- IT never occurs if jackd is launched -Xseq.

This (in addition with the fact that I carefully parsed jackd's code) would tend to transfer the responsibility of this bug from jackd to Alsa raw midi.

But I did not come through Alsa raw midi yet.