Greetings.
I have some trouble getting audacity to work with jack. When audacity is started, jack crashes.
I checked the FAQ, searched here on the forums, and looked online, including entering into dialog with falkTX (who is the author of KXStudio) over on linuxmusicians. So far, (several days) I have discovered no resolution to the problem.
Brief description of the problem: When I start audacity, jack crashes. When I try to point audacity at jack, I find that audacity does not see jack as an option. If I start audacity, then start jack, both continue to run, but audacity does not see jack, and then with both jack and audacity running, when I rescan audio devices, jack crashes.
Platform is KXStudio over a fresh install of ubuntustudio 12.04amd64 (3.2.0-23-realtime #36~precise1-Ubuntu SMP), running audacity 2.0.1 compiled from source (but see bolded, below). After installing ubuntustudio12.04amd64, I logged in a couple of times to make sure all was OK but I didn’t change or update anything, then installed KXStudio. My soundcard is a creative soundblaster live CT4620, rather old, but it worked well, I thought.
So far, I have:
…un-installed/removed completely, ‘bluez-alsa’, a bluetooth item which was reported to cause some problems with ‘audacity’ and its recognition of ‘jack’, but that did not make a difference. Onward.
While running ‘audacity’ from a terminal, I got some more clues (too long to detail for this post), and decided that maybe I should see what the latest stable ‘audacity’ release had to offer. Well… I decided to compile the latest version (which is 2.0.1) to replace the initially installed version (which was 2.0.0), and see if that made a difference.
I had some initial resistance to doing this because I had seriously wanted this installation to be relatively free of clutter, and devoted solely to music-making. So much for that plan. Onward.
So, checking dependencies, I installed what was necessary. > Well, there were a few packages, notably, “nyquist:i386”, and “libavcodec53”, which caused synaptic to desire to uninstall, among other things, the entire KXStudio meta. So, I declined to install these “dependencies” (and ask, maybe therein lies further clue to this ‘problem’?) >
I compiled ‘audacity 2.0.1’ with success.
Running it, I experienced the same lack of ‘audacity’ to recognize ‘jack’, the same stopping of ‘jack’ when ‘audacity’ was run, and no real difference (as far as the problem goes) that I could easily detect. :sadness:
I also tried:
FalkTX said:
There’s one simple thing you can try.
quit audacity, start jack, open in a text editor this file:.config/audacity-data/audacity.cfg
and replace the whole content with this:
[AudioIO]
RecordingDevice=JACK Audio Connection Kit: system
Host=JACK Audio Connection Kit
PlaybackDevice=JACK Audio Connection Kit: system
RecordChannels=2
[GUI]
ShowSplashScreen=0
To do this, I also:
More on trying to get ‘audacity’ to recognize ‘jack’ in MXStudio/ubuntustudio12.04amd64.
There was no “audacity.cfg” file at location: ~/.config/audacity-data/audacity.cfg
In fact, there was no ~/.config/audacity-data/
So, I created the location and the file as specified. It made no difference, ‘audacity’ still fails to see ‘jack’ and still stops ‘jack’.There was an “audacity.cfg” file at this location: ~/.audacity-data/audacity.cfg
This is a file that keeps being overwritten with each run of ‘audacity’.I did find another “audacity.cfg” file at location: /usr/share/kxstudio/config/audacity-data/audacity.cfg
It is dated Thu 26 Apr 2012 01:52:37 PM MDT
And contains
[AudioIO]
RecordingDevice=JACK Audio Connection Kit: system
Host=JACK Audio Connection Kit
PlaybackDevice=JACK Audio Connection Kit: system
RecordChannels=2
[GUI]
ShowSplashScreen=0The contents are as falkTX specified above. The size of that file is 182 bytes. But I noticed that the file I wrote (with ‘gedit’) is 210 bytes. I don’t understand this. Maybe there is extra white space? I copy/pasted that 182 byte file in case there was a difference. It made no difference.
I created another user account, thinking maybe I broke something during the install. It has the same problem with ‘audacity’ failing to recognize ‘jack’
I also edited audacity.conf to contain only the line:
NewPrefsInitialized=1
I also tried tweaking jack settings; starting jack with qjackctl rather than the KXStudio default application, “Cadence”; and the host of grasping-at-straws possibilities I could think of. On a ubuntustudio10.04amd64 installation on this same machine, I had to disable pulseaudio in order to get audio to play for more than a few minutes without crashing the pulseaudio sink/source hookup in jack and losing sound altogether.
Now, I am stumped. So, I thought I’d ask here.
Thanks.