You are not logged in.

#1 2009-11-04 18:22:00

teadrinker
Member
Registered: 2008-11-28
Posts: 4

problem running jack in realtime mode[SOLVED]

Hi, I'm having a little problem getting the jack-audio-connection-kit working.

(Sorry in advance for the number of print outs, I thought it was best to be verbose)

As I need to use the ffado drivers I have downloaded the ffado package from AUR.

pacman -Qi ffado
Name           : ffado
Version        : 2.0_rc2-2
URL            : http://www.ffado.org/
Licences       : GPL  
Groups         : None
Provides       : None
Depends On     : libiec61883  libavc1394  libxml++  dbus  
Optional Deps  : pyqt: FFADO Mixer applet
Required By    : None
Conflicts With : None
Replaces       : None
Installed Size : 3952.00 K
Packager       : Unknown Packager
Architecture   : x86_64
Build Date     : Wed 04 Nov 2009 17:43:29 GMT
Install Date   : Wed 04 Nov 2009 17:43:35 GMT
Install Reason : Explicitly installed
Install Script : No
Description    : Driver for FireWire audio devices

So far so good. Next i installed jack-audio-connection-kit-dbus from the AUR. I used this over the vanilla jack-audio-connection-kit because it compiles ffado support.

pacman -Qi jack-audio-connection-kit-dbus
Name           : jack-audio-connection-kit-dbus
Version        : 0.116.2-3
URL            : http://nedko.arnaudov.name/soft/jack/dbus/
Licences       : GPL2  LGPL2  
Groups         : None
Provides       : jack-audio-connection-kit=0.116.1  
Depends On     : libsamplerate  python  dbus-core  
Optional Deps  : None
Required By    : aubio  qjackctl  
Conflicts With : jack-audio-connection-kit  
Replaces       : None
Installed Size : 2116.00 K
Packager       : Unknown Packager
Architecture   : x86_64
Build Date     : Wed 04 Nov 2009 17:57:34 GMT
Install Date   : Wed 04 Nov 2009 17:57:44 GMT
Install Reason : Explicitly installed
Install Script : No
Description    : A low-latency audio server - with dbus

in none realtime mode it runs for both alsa and firewire (ffado) (i'm showing alsa but the results are the same for firewire too)

> jackd -d alsa
no message buffer overruns
jackd 0.116.2
Copyright 2001-2005 Paul Davis and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details

JACK compiled with POSIX SHM support.
loading driver ..
creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
control device hw:0
configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods
ALSA: final selected sample format for capture: 32bit integer little-endian
ALSA: use 2 periods for capture
ALSA: final selected sample format for playback: 32bit integer little-endian
ALSA: use 2 periods for playback
...

however whenever I try to run either in realtime mode I get this error

> jackd -R -d alsa
no message buffer overruns
jackd 0.116.2
Copyright 2001-2005 Paul Davis and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details

JACK compiled with POSIX SHM support.
loading driver ..
can't load "/usr/lib/jack/jack_alsa.so": libasound.so.2: failed to map segment from shared object: Resource temporarily unavailable
cannot load driver module alsa

I've looked around for this error without too much luck (something about an old faulty debian package). I've also tried this with multiple compiled version 0.115.6 and 0.116.2 and get the same error. Does anybody have any ideas about this?

Thanks in advance for any help anybody can give smile

Last edited by teadrinker (2009-11-05 19:51:09)

Offline

#2 2009-11-05 19:04:41

schivmeister
Developer/TU
From: Singapore
Registered: 2007-05-17
Posts: 971
Website

Re: problem running jack in realtime mode[SOLVED]

AUR is not supported, but we can't even start to help you if we can't deduce the issue.

So first and foremost, use jack-audio-connection-kit (from the repos) and your default sound device and see whether realtime works.

Remember to post output of pacman -Ql alsa-lib | grep libasound and pacman -Q alsa-lib

According to http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=515185 it looks like a rebuild issue, but I can't reproduce it on a fully updated system with alsa-lib 1.0.21.a-1.

And of course, ensure there's no PEBKAC involved: http://wiki.archlinux.org/index.php/Pro … figuration

Last edited by schivmeister (2009-11-05 19:34:10)


I need real, proper pen and paper for this.

Offline

#3 2009-11-05 19:50:09

teadrinker
Member
Registered: 2008-11-28
Posts: 4

Re: problem running jack in realtime mode[SOLVED]

I had previously tried jack-audio-connection-kit from the repos, and yes it did work.

Thanks to help on #jack I worked out it was that my memlock was not set to unlimited in /etc/security/limits.conf I changed this to: -

@audio          -       memlock         unlimited

And the problem went away

P.S. Assuming you are schiv on #jack schivmeister. you and las were very helpful, thanks.

Last edited by teadrinker (2009-11-05 19:53:31)

Offline

Board footer

Powered by FluxBB