[PlanetCCRMA] jackstart hanging the system

Fernando Pablo Lopez-Lezcano nando@ccrma.Stanford.EDU
Mon Dec 30 11:16:02 2002


> > > Sounds fine again. You are getting dropouts but that is to be
> > > expected if you run jack without realtime priviledges. Try using
> > > "jackstart" instead of "jackd". 
> > 
> > Hmm, trying that, I get the RT thread error again, followed by the
> > same xruns.
> > 
> > [root@gimel mp3]# jackstart -R -d alsa -d hw -p 864
> > jackd 0.41.1
> > Copyright 2001-2002 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
> > 
> > loading driver ..
> > creating alsa driver ... hw|864|2|48000|swmon
> > starting engine
> > cannot lock down memory for RT thread (Cannot allocate memory)
> > **** alsa_pcm: xrun of at least 0.077 msecs
> > **** alsa_pcm: xrun of at least 0.093 msecs
> > **** alsa_pcm: xrun of at least 0.099 msecs
> > **** alsa_pcm: xrun of at least 0.092 msecs
> > **** alsa_pcm: xrun of at least 0.076 msecs
> > **** alsa_pcm: xrun of at least 0.070 msecs
> > **** alsa_pcm: xrun of at least 0.111 msecs
> > **** alsa_pcm: xrun of at least 0.089 msecs
> > **** alsa_pcm: xrun of at least 0.068 msecs
> 
> Looking at online docs, I see that I should run jackstart as a user, not
> as root. But doing so makes no difference.

Meaning you get the error about locking all memory, or you do not get
that error and still get xruns?

> > Also: should jackstart eventually return me to a prompt and run in the
> > background, or continue to hold onto the xterm session. Either would
> > be OK; I'm just unclear as to which behavior to expect.

Jack runs in the terminal, it will not return the prompt. 

About the "cannot allocate memory" I'd swear I saw something on the
lists about this before but I have been unable to find it. 

Just in case, try running it verbose, maybe we'll get an additional
message (jackstart should not be run as root, no need to do that):

  jackstart -v -R -d alsa -d hw -p 864

-- Fernando