LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-11-2004, 05:15 AM   #1
tuanito
Member
 
Registered: Jan 2003
Location: Paris, France
Distribution: Slackware, FreeBSD
Posts: 30

Rep: Reputation: 15
Cannot run Audacity : "Audacity is already running"


I installed Audacity yesterday from Slackware packages and it seemed to work (except for the recording). Anyway, today I tried again, and there is a popup msg that says :
"Audacity is already running, Running two copies of Audacity simultaneously may lead to data loss or cause your systel to crash, so is not allowed.".

I have not launched any other audacity, as

ps -aux |grep audacity yields nothing.

and I just run it by itself, without xmms or gnome-volume-control, in case there could be a problem with two apps using the soundcard.

What is the problem ?

Thanks.
 
Old 08-11-2004, 07:22 AM   #2
Galik
Member
 
Registered: Mar 2003
Location: UK
Distribution: gentoo
Posts: 67

Rep: Reputation: 15
Well at a guess audacity may have left an undeleted 'lock' file in /tmp. Take a look in /tmp and see if there is a folder with audacity in the name.

Code:
ls /tmp
You should see something like :

Code:
audacity1.2-user/
in the listing. Try deleting this file and re-run audacity.

Code:
rm -fr /tmp/audacity1.2-user
Note: rename the "audacity1.2-user" part to whatever you found in your /tmp directory.
Also: You *may* (or may not) need to be root to do that.
 
Old 08-11-2004, 07:52 AM   #3
tuanito
Member
 
Registered: Jan 2003
Location: Paris, France
Distribution: Slackware, FreeBSD
Posts: 30

Original Poster
Rep: Reputation: 15
Thanks a bunch, it was exactly the problem. Thanks a lot for the info.

I have one last problem : I cannot record with a microphone (jack plug) (maybe the soundcard finds my voice too ugly ? :-)). I set in gnome-volume-control the mike as the recording entry, and audacity in pref is set to /dev/dsp (cannot be changed). It is symlinked to /dev/dsp0.

Audacity says, when trying to record : Error while opening sound device, Please check the output device settings and the project sample rate.

The log file shows :

PaHost_OpenStream: could not open /dev/dsp for O_RDWR
PaHost_OpenStream: ERROR - result = -10000
PaHost_OpenStream: could not open /dev/dsp for O_RDONLY
PaHost_OpenStream: ERROR - result = -10000
PaHost_OpenStream: could not open /dev/dsp for O_RDONLY
PaHost_OpenStream: ERROR - result = -10000
Host error.
PaHost_OpenStream: could not open /dev/dsp for O_RDONLY
PaHost_OpenStream: ERROR - result = -10000
Host error.

All is run on an ASUS laptop and Slack 9.1

Thanks.

Tuan.
 
Old 08-12-2004, 02:46 AM   #4
Galik
Member
 
Registered: Mar 2003
Location: UK
Distribution: gentoo
Posts: 67

Rep: Reputation: 15
Right it sound like it might be a permissions problem. One thing to try is change your user acount settings and add yourself to the 'audio' group. (or it may be the 'sound' group. Many distros set up a special group for users who want to use the sound devices. If that doesn't work try doing a:

Code:
ls -l /dev/sound/dsp*
And see what it says. My output is like this:

Code:
galik> ls -l /dev/sound/dsp*
crw-------  1 galik audio 14,  3 Jan  1  1970 /dev/sound/dsp
crw-------  1 galik audio 14, 19 Jan  1  1970 /dev/sound/dsp1
crw-------  1 galik audio 14, 35 Jan  1  1970 /dev/sound/dsp2
meaning only the user 'galik' can open the sound devices for reading and writing (thats the rw bit at the start of each line) but no one else can (that's the '---' bits). But your's might be different. If you post it here we can se if there is a problem with it.
 
Old 08-12-2004, 02:56 AM   #5
tuanito
Member
 
Registered: Jan 2003
Location: Paris, France
Distribution: Slackware, FreeBSD
Posts: 30

Original Poster
Rep: Reputation: 15
This is what I get :


ls -l /dev/dsp*
lrwxrwxrwx 1 root root 4 Apr 15 16:17 /dev/dsp -> dsp0
crw-rw--w- 1 root sys 14, 3 Aug 29 2003 /dev/dsp0
crw-rw--w- 1 root sys 14, 19 Aug 29 2003 /dev/dsp1
crw-rw--w- 1 root sys 14, 35 Aug 29 2003 /dev/dsp2
crw-rw--w- 1 root sys 14, 51 Aug 29 2003 /dev/dsp3

Actually, after your post, I just tried to run Audacity under root and at least, I get now the 4 mic / vol / cd /line / phone in etc drop down menu for the input. However, I tried the mike but audacity still gets nothing.

For the mike, as I was not sure which input to try, I tried them all, putting Rec on all the successive input device in gnome-volume-control (i.e. Vol, Line, Mic, CD, Line 1 , Phone In, Video), even though I guess it should be Mic. But still it does not work.

So as you mentioned, there must be a authorization problem+ still a problem with the mike.

Thanks.
 
Old 08-12-2004, 03:25 AM   #6
Galik
Member
 
Registered: Mar 2003
Location: UK
Distribution: gentoo
Posts: 67

Rep: Reputation: 15
Well one thing you can try here then is to change the permissions. As root type:

Code:
root> chmod o+r /dev/dsp*
And see if this solves it. By your permissions then only user root and group sys may both read and write to the sound cards. The above command should allow others to read (as well as write) to the cards. That may solve your recording problem.
 
Old 08-13-2004, 03:41 AM   #7
tuanito
Member
 
Registered: Jan 2003
Location: Paris, France
Distribution: Slackware, FreeBSD
Posts: 30

Original Poster
Rep: Reputation: 15
It perfectly worked with your help ! Thanks a lot again.
 
Old 06-11-2009, 06:02 PM   #8
jsmnuk
LQ Newbie
 
Registered: Jun 2009
Posts: 1

Rep: Reputation: 0
Question Not the best, but....

after ripping my newbie hair out for three hours, I decided to install an Intrepid version 1.3.5 of Audacity, after I removed the 1.3.7.2 version. It installed with no problem. I don't know how compatible it is with the other sound and video programs, but at least it works. The 1.3.7.2 version needs fixing, even if it is a better fit with the Ubuntu Studio Package.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Audacity - "Error opening audio device" Locura Slackware 6 08-22-2008 05:24 PM
Shell Script: Find "Word" Run "Command" granatica Linux - Software 5 07-25-2007 07:42 AM
audacity "error initializing i/o audio" jnsenit Linux - Software 7 01-12-2005 01:48 PM
When running a script I get a box asking "Run or display ?" I want it to just run aaronruss Linux - Newbie 4 05-28-2004 12:03 AM
audacity run error jasonmcneil0 Linux - Software 4 11-12-2003 06:46 PM


All times are GMT -5. The time now is 11:53 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration