Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Audacity problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
sleepingsun
Guru
Guru


Joined: 03 May 2006
Posts: 463
Location: Bosnia

PostPosted: Mon Jul 09, 2012 6:27 pm    Post subject: Audacity problem Reply with quote

Its run fine in kde but when i load song and wont to edit stuck !

Also when i run in console i get this error:

audacity
Code:
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3875
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3875
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3875
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3875


need some help
_________________
Gentoo is Rocks
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6656
Location: The soundosphere

PostPosted: Tue Jul 10, 2012 1:45 pm    Post subject: Reply with quote

Let's see if we can figure this out.

When you say that "it runs fine in KDE but...", do you mean you also work in another DE or WM? If so, which one(s)?

Can you please post the output of lspci and lspci -n?
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
sgarcia
Apprentice
Apprentice


Joined: 21 May 2003
Posts: 254
Location: Bakersfield, CA

PostPosted: Sat Jul 14, 2012 3:46 am    Post subject: Reply with quote

I'm having exactly the same problem (less any reference to KDE, since I'm using Gnome.)

Audacity launches fine from either the menu or the command line, and all functions seem to work fine -- except playback. I can edit the waveform, apply effects, zoom in, zoom out, and so on. However, the moment I try to play back, Audacity freezes. I have to close the window, it never comes back. When I do close the window I get a message that it is not responding, do I really want to force close it? When I open it back up I get a message requesting that I "recover" the project I had been working on, and that always seems to work fine.

When I start from the command line, these are the error messages I get right at launch:
Code:
~ $ audacity
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3875
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3875
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3875
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3875


Once I hit "Play" these lines are added:
Code:
Expression 'paTimedOut' failed in 'src/os/unix/pa_unix_util.c', line: 387
Expression 'PaUnixThread_New( &stream->thread, &CallbackThreadFunc, stream, 1., stream->rtSched )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2263
Expression 'pthread_join( self->thread, &pret )' failed in 'src/os/unix/pa_unix_util.c', line: 441


Here is what I get from lspci:
Code:
# lspci
00:00.0 Host bridge: Advanced Micro Devices [AMD] nee ATI RD890 PCI to PCI bridge (external gfx0 port B) (rev 02)
00:02.0 PCI bridge: Advanced Micro Devices [AMD] nee ATI RD890 PCI to PCI bridge (PCI express gpp port B)
00:04.0 PCI bridge: Advanced Micro Devices [AMD] nee ATI RD890 PCI to PCI bridge (PCI express gpp port D)
00:05.0 PCI bridge: Advanced Micro Devices [AMD] nee ATI RD890 PCI to PCI bridge (PCI express gpp port E)
00:09.0 PCI bridge: Advanced Micro Devices [AMD] nee ATI RD890 PCI to PCI bridge (PCI express gpp port H)
00:11.0 SATA controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode] (rev 40)
00:12.0 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:12.2 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:13.0 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:13.2 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:14.0 SMBus: Advanced Micro Devices [AMD] nee ATI SBx00 SMBus Controller (rev 42)
00:14.2 Audio device: Advanced Micro Devices [AMD] nee ATI SBx00 Azalia (Intel HDA) (rev 40)
00:14.3 ISA bridge: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 LPC host controller (rev 40)
00:14.4 PCI bridge: Advanced Micro Devices [AMD] nee ATI SBx00 PCI to PCI Bridge (rev 40)
00:14.5 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
00:15.0 PCI bridge: Advanced Micro Devices [AMD] nee ATI SB700/SB800/SB900 PCI to PCI bridge (PCIE port 0)
00:15.1 PCI bridge: Advanced Micro Devices [AMD] nee ATI SB700/SB800/SB900 PCI to PCI bridge (PCIE port 1)
00:16.0 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:16.2 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 15h Processor Function 0
00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 15h Processor Function 1
00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 15h Processor Function 2
00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 15h Processor Function 3
00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 15h Processor Function 4
00:18.5 Host bridge: Advanced Micro Devices [AMD] Family 15h Processor Function 5
01:00.0 VGA compatible controller: nVidia Corporation G84 [GeForce 8600 GT] (rev a1)
02:00.0 SATA controller: JMicron Technology Corp. JMB362 SATA Controller (rev 10)
03:00.0 SATA controller: JMicron Technology Corp. JMB362 SATA Controller (rev 10)
04:00.0 USB controller: ASMedia Technology Inc. ASM1042 SuperSpeed USB Host Controller
05:07.0 FireWire (IEEE 1394): VIA Technologies, Inc. VT6306/7/8 [Fire II(M)] IEEE 1394 OHCI Controller (rev c0)
07:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)


And from lspci -n:
Code:
# lspci -n
00:00.0 0600: 1002:5a14 (rev 02)
00:02.0 0604: 1002:5a16
00:04.0 0604: 1002:5a18
00:05.0 0604: 1002:5a19
00:09.0 0604: 1002:5a1c
00:11.0 0106: 1002:4391 (rev 40)
00:12.0 0c03: 1002:4397
00:12.2 0c03: 1002:4396
00:13.0 0c03: 1002:4397
00:13.2 0c03: 1002:4396
00:14.0 0c05: 1002:4385 (rev 42)
00:14.2 0403: 1002:4383 (rev 40)
00:14.3 0601: 1002:439d (rev 40)
00:14.4 0604: 1002:4384 (rev 40)
00:14.5 0c03: 1002:4399
00:15.0 0604: 1002:43a0
00:15.1 0604: 1002:43a1
00:16.0 0c03: 1002:4397
00:16.2 0c03: 1002:4396
00:18.0 0600: 1022:1600
00:18.1 0600: 1022:1601
00:18.2 0600: 1022:1602
00:18.3 0600: 1022:1603
00:18.4 0600: 1022:1604
00:18.5 0600: 1022:1605
01:00.0 0300: 10de:0402 (rev a1)
02:00.0 0106: 197b:2362 (rev 10)
03:00.0 0106: 197b:2362 (rev 10)
04:00.0 0c03: 1b21:1042
05:07.0 0c00: 1106:3044 (rev c0)
07:00.0 0200: 10ec:8168 (rev 06)


I last used Audacity with no trouble less than a month ago (June 17) and it worked fine then. I've probably done a world update or two since then, but no other changes to the system, and I've done revdep-rebuild each time I did a global update.
_________________
Ignorance killed the cat. Curiosity was framed.
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1555
Location: Montréal

PostPosted: Sat Jul 14, 2012 9:03 am    Post subject: Reply with quote

Hello,
I am installing Audacity right now. I am reading the available USE flags. Do you use the defaults one of the ebuild or you change them by a way or an other?

It could be helpfull to only use the defaults USE flags of the ebuild and/or change the version of Audacity for tests.

If you can open a file, that's mean that the format is supported by Audacity. Some formats support depend on the corresponding activated USE flags.

Because the freeze come when you try to play a sample, did you check your audio setup in Audacity and system? If Audacity do not find the good audio card for output, that can cause problems.

You can change from Alsa to OSS, or to Pulseaudio if it is serving. Something is wrong in the output configuration.
_________________
Paul
Back to top
View user's profile Send private message
sgarcia
Apprentice
Apprentice


Joined: 21 May 2003
Posts: 254
Location: Bakersfield, CA

PostPosted: Sat Jul 14, 2012 1:51 pm    Post subject: Reply with quote

The USE flags I have active for Audacity are "alsa ffmpeg flac mp3 vorbis".

I only have ALSA active, with OSS compatibility. All other sound playback software seems to be working fine.
_________________
Ignorance killed the cat. Curiosity was framed.
Back to top
View user's profile Send private message
comprookie2000
Retired Dev
Retired Dev


Joined: 25 Jul 2004
Posts: 925
Location: Sun City Center, Florida

PostPosted: Sat Jul 14, 2012 10:27 pm    Post subject: Reply with quote

Quote:

The dmix plugin supports only playback stream

You can try the dmix plugin for alsa
Preferences => devices => playback => dmix

But with gnome you may want to enable pulseaudio support. i would enable it Global up to you.

emerge app-portage/gentoolkit
euse -a
euse -E pulseaudio
emerge -pavND world

here is what I have as an example;
media-plugins/alsa-plugins-1.0.25-r1 USE="pulseaudio -debug -ffmpeg -jack -libsamplerate -speex"


Also if you are using Gnome3 and want to use audacity with the default input and output I use pulseaudio to control that system-settings => sound
_________________
http://dev.gentoo.org/~dabbott/
Back to top
View user's profile Send private message
sgarcia
Apprentice
Apprentice


Joined: 21 May 2003
Posts: 254
Location: Bakersfield, CA

PostPosted: Sat Jul 14, 2012 11:15 pm    Post subject: Reply with quote

I tried the dmix option but it also freezes up Audacity. Exact same symptoms.

Here's what my sound setup appears like in the Preferences: Devices dialog:

Interface Host is set to ALSA (it's the only option.) It says "Using PortAudio V19-devel"

Playback device options are:
default
dmix
spdif
iec958
sysdefault
HDA ATI SM: ALC892 (hw:0,1)

I've tried all of them, with exactly the same results.

I'd really rather not open the pulseaudio can of worms. If there's no other way I might consider it, but that's never worked out well.

And no, I don't have Gnome 3 here. Not now, not ever.

What's strange is that I had not made *any* changes to my Audacity settings (until I started troubleshooting) and less than a month ago it was working perfectly. There have been some minor system upgrades, (just normal emerge world stuff) but nothing specific to audio.

I just tried alsaplayer to play a sound file with no trouble, so alsa itself seems to be correctly set up.
_________________
Ignorance killed the cat. Curiosity was framed.
Back to top
View user's profile Send private message
sgarcia
Apprentice
Apprentice


Joined: 21 May 2003
Posts: 254
Location: Bakersfield, CA

PostPosted: Sat Jul 14, 2012 11:25 pm    Post subject: Reply with quote

After doing some investigation, it seems that the error messages all are from PortAudio, which is consistent with what appears in the preferences dialog. But when I checked, PortAudio was in portage but *not* installed on my system. Does Audacity provide its own copy? I installed PortAudio from portage to see if that would help, but it hasn't made any difference.
_________________
Ignorance killed the cat. Curiosity was framed.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6656
Location: The soundosphere

PostPosted: Mon Jul 16, 2012 1:20 pm    Post subject: Reply with quote

I have no trouble with Audacity. What version are you all using?
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
sgarcia
Apprentice
Apprentice


Joined: 21 May 2003
Posts: 254
Location: Bakersfield, CA

PostPosted: Mon Jul 16, 2012 1:48 pm    Post subject: Reply with quote

Well, I had 2.0.0 installed when the problem appeared. I changed it over to ~amd64 once I started having trouble and installed 2.0.1, but that didn't make any difference.

I didn't have any trouble with it until just recently either. Same version, and a month ago it was fine. I hadn't tried it since then until last week, when the problem appeared.
_________________
Ignorance killed the cat. Curiosity was framed.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6656
Location: The soundosphere

PostPosted: Mon Jul 16, 2012 10:54 pm    Post subject: Reply with quote

I have 2.0.1 and it work here.

What use flags do you have for Audacity?
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
sgarcia
Apprentice
Apprentice


Joined: 21 May 2003
Posts: 254
Location: Bakersfield, CA

PostPosted: Tue Jul 17, 2012 1:29 am    Post subject: Reply with quote

Well, if I'd been a Windows user I would have been able to fix this right off. With Windows, when in doubt, reboot, right?

It was a device unavailability problem. Someone on the Audacity forums suggested that I log out and log back in and then try it. That didn't work, but a complete reboot did the trick.
_________________
Ignorance killed the cat. Curiosity was framed.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6656
Location: The soundosphere

PostPosted: Tue Jul 17, 2012 12:51 pm    Post subject: Reply with quote

Weird. Well, the device could have been restarted, which is much easier to do in Linux than Windows. That's why a reboot "fixes" things in Windows - no obvious way to restart the one part that's actually the problem.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum