LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-20-2004, 04:21 AM   #1
slaxnoob
Member
 
Registered: Apr 2004
Posts: 49

Rep: Reputation: 15
Mp3s crash artsd


I'm on a nForce2 Motherboard system running 2.6.8-rc2. I reinstalled Slackware 10 (i was on slack 9.1 which i upgraded to slack-current periodically) & i dont know whats wrong with arts.

I've got the package arts installed as well as esound, alsa etc & all kde apps & libraries. The problem is Kde apps like noatun, juk, kaboodle all cause a segfault in artsd whenever i try to play mp3s. The same apps play back wav's just fine. Kde's sounds schemes, which i think are in ogg format play okay as well. Its just mp3s that have this problem.

I installed lame 3.96 from liunuxpackages.net & still all kde apps which try to play mp3 crash. Playing mp3s using mpg321 & xmms is okay.

Regardless of what I choose in the Sound System Enlightenment/ Alsa, artsd still crashes with mp3s.

Anybody have any experience / idea ?
Should i just reinstall ?
 
Old 07-20-2004, 08:45 AM   #2
oot
Member
 
Registered: Dec 2002
Distribution: Slackware 12.0
Posts: 240

Rep: Reputation: 30
This is mainly just a guess, but...

Try upgrading/reinstalling sox... some programs use it to go between formats (eg. mp3->something else playable) before playing the files.
 
Old 07-20-2004, 03:34 PM   #3
suslik
Member
 
Registered: Jul 2004
Distribution: OpenSuse 10.x
Posts: 262

Rep: Reputation: 30
Unhappy

Similar problem here

Tried SOX long ago. Caused horrid mouse lags in X (don't ask me how it's possible), but offers no solution to music playing. In my case, though, OGG's also cause aRts to crash
 
Old 07-21-2004, 04:58 AM   #4
slaxnoob
Member
 
Registered: Apr 2004
Posts: 49

Original Poster
Rep: Reputation: 15
Looks like i wasn't paying attention before i posted here. I thought that the system notifications in kde used the ogg format but its only kopete which currently uses ogg & even that isnt playing

Suslik what is your config ? As in soundcard + kernel setup ?

Th weird part is that everything's fine for wav playback in kde apps using arts. Mp3s play fine in xmms. So I'm guessing its a kde 3.2.3 problem. I'll try downgrading to kde 3.2.1 & post any updates.
 
Old 07-22-2004, 03:37 PM   #5
suslik
Member
 
Registered: Jul 2004
Distribution: OpenSuse 10.x
Posts: 262

Rep: Reputation: 30
Quote:
Suslik what is your config ? As in soundcard + kernel setup ?
I dont think it matters much. The problem is there on both kernels 2.4.2x and 2.6.7, while using 2 different sound cards (SB Awe ISA and Ensonique PCI).

I am sure its the aRts/KDE multimedia dipendancy issue. Some kind of 3rd party decoder library is missing. Now, which one?

I'll wait till KDE 3.3 binaries come out for Slack10, and see if it's multimedia back end changes anyting. I doubt that, though. I think I was a smart ass and unchecked something durring Slack10 install.

Can you post the aRts' crash message? I wanna be sure we have problem at same place.
 
Old 07-22-2004, 11:48 PM   #6
slaxnoob
Member
 
Registered: Apr 2004
Posts: 49

Original Poster
Rep: Reputation: 15
This is the Backtrace from Juk

Code:
(no debugging symbols found)...Using host libthread_db library "/lib/libthread_db.so.1".
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...0x40554497 in waitpid () from /lib/libpthread.so.0
#0  0x40554497 in waitpid () from /lib/libpthread.so.0
#1  0x08065b1d in virtual thunk to Arts::SampleStorageEntry_skel::~SampleStorageEntry_skel() ()
#2  0x000009ba in ?? ()
#3  0x00000000 in ?? ()
#4  0x00000000 in ?? ()
#5  0x404211ba in Arts::ObjectManager::create () from /opt/kde/lib/libmcop.so.1
#6  0x40552be5 in pthread_barrierattr_setpshared () from /lib/libpthread.so.0
#7  0x00000000 in ?? ()
#8  0x00000000 in ?? ()
#9  0x0000007b in ?? ()
#10 0x0000007b in ?? ()
#11 0x08052aa0 in ?? ()
#12 0xbfffce50 in ?? ()
#13 0xbfffcdd8 in ?? ()
#14 0xbfffcdc0 in ?? ()
#15 0x400c47e4 in ?? () from /opt/kde/lib/libkmedia2_idl.so.1
#16 0x00000001 in ?? ()
#17 0x00000001 in ?? ()
#18 0x00000000 in ?? ()
#19 0x0000000e in ?? ()
#20 0x00000004 in ?? ()
#21 0x400a0a48 in Arts::PlayObject_base::_create ()
   from /opt/kde/lib/libkmedia2_idl.so.1
The Backtrace from Noatun
Code:
(no debugging symbols found)...Using host libthread_db library "/lib/libthread_db.so.1".
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...0x40554497 in waitpid () from /lib/libpthread.so.0
#0  0x40554497 in waitpid () from /lib/libpthread.so.0
#1  0x08065b1d in virtual thunk to Arts::SampleStorageEntry_skel::~SampleStorageEntry_skel() ()
#2  0x00000a03 in ?? ()
#3  0x00000000 in ?? ()
#4  0x00000000 in ?? ()
#5  0x404211ba in Arts::ObjectManager::create () from /opt/kde/lib/libmcop.so.1
#6  0x40552be5 in pthread_barrierattr_setpshared () from /lib/libpthread.so.0
#7  0x00000000 in ?? ()
#8  0x00000000 in ?? ()
#9  0x0000007b in ?? ()
#10 0x0000007b in ?? ()
#11 0x08052aa0 in ?? ()
#12 0xbfffce20 in ?? ()
#13 0xbfffcda8 in ?? ()
#14 0xbfffcd90 in ?? ()
#15 0x400c47e4 in ?? () from /opt/kde/lib/libkmedia2_idl.so.1
#16 0x00000001 in ?? ()
#17 0x00000001 in ?? ()
#18 0x00000000 in ?? ()
#19 0x0000000e in ?? ()
#20 0x00000004 in ?? ()
#21 0x400a0a48 in Arts::PlayObject_base::_create ()
   from /opt/kde/lib/libkmedia2_idl.so.1
 
Old 07-23-2004, 09:10 AM   #7
slaxnoob
Member
 
Registered: Apr 2004
Posts: 49

Original Poster
Rep: Reputation: 15
I reinstalled slackware.
Didnt upgrade the kernel, didnt touch any configuration file.
Logged on as root for the first time to create a new user & logged off.
Logged in as a normal user.
Tried playing a mp3 file & i get the same error & Artsd Crashes

Any idea why is this happening ? Is this normal ( kde apps crashings artsd) on a brand new untouched default install ? It shouldn't be. Why are only 2 people having this problem so far?
Anyone else using Kde 3.2.3 with Slackware 10 ?

Can some one who's got a clean/fresh installation of Slackware 10 confirm this ? If you dont have any problem playing mp3, would you be kind enough to post a listing of your installed packages (ls /var/adm/packages )
 
Old 07-23-2004, 09:47 AM   #8
slaxnoob
Member
 
Registered: Apr 2004
Posts: 49

Original Poster
Rep: Reputation: 15
I seem to be on a roll here, posting messaages & replies to them. I googled a little on artsd+mp3+crash & came across a couple of links which seemed interesting

http://bugs.kde.org/show_bug.cgi?id=80497
http://lists.debian.org/debian-kde/2.../msg00226.html
http://lists.debian.org/debian-kde/2.../msg00179.html
http://lists.freshrpms.net/pipermail...ay/009454.html

If you go through them you'll find out that theres an error with combination of mpeglib & gcc 3.3 Apparently gcc 3.3 is generating incorrect code when using any optimizations for the compiler. Prior to kde 3.2.3 there were errors in the playback of some mp3s. Someone added a patch for kde 3.2.3 that fixes the distortions in playback but seems to crash artsd when I try playing mp3s

The only thing i can think of doing right now is to reverse the patch in kdemultimedia or try recompiling arts & kdemultimedia with the optimizarion set to -O0.

Anyone else suffer from this or am i just alone ?
 
Old 07-24-2004, 11:29 AM   #9
lyle_s
Member
 
Registered: Jul 2003
Distribution: Slackware
Posts: 392

Rep: Reputation: 55
Quote:
Originally posted by slaxnoob Anyone else suffer from this or am i just alone ?
You're not alone--I'm having the same problem.

Based on your research, I'm toying with the idea of recompiling arts & kdemultimedia with the optimization set to -O0. All one needs to do is obtain (from the slackware source CD or download from slackware-10.0/source) kde/KDE.options and everything under each of kde/arts/ and kde/kdemultimedia/ taking care to preserve the relative paths, substitute O0 for all occurences of O2 in kde/KDE.options, then run the SlackBuild scripts in kde/arts and kde/kdemultimedia.


Another approach is to use xmms until someone else solves the problem :-)

Lyle
 
Old 07-24-2004, 01:17 PM   #10
slaxnoob
Member
 
Registered: Apr 2004
Posts: 49

Original Poster
Rep: Reputation: 15
I dont wanna recompile kde considering kde 3.3 beta 2 has been released & slackware packages are available.
I Think i'll try kde 3.3 beta 2 & i'll report if they fixed anything
 
Old 07-24-2004, 07:42 PM   #11
brenton
Member
 
Registered: Mar 2004
Location: Sydney, Australia
Distribution: Slackware
Posts: 112

Rep: Reputation: 15
Do you have to use arts for mp3s?

Try amaroK (it's the highest rated sound app on kde-apps, most people prefer it over juk/noatun/kaboodle) Before you compile it install the packages gstreamer and gst-plugins (and run gst-register to register the plugins). Then compile and install. In amaroK options, select the gstreamer sound system, outputing to alsasink or osssink.

Personally I don't use arts at all. I play music with amaroK, don't have any systems sounds, and sound from flash animations is sent directly to the sound system.

The only other thing is Korn mail notification, where i just have it execute:
gst-launch filesrc location=/location/of/soundfile.wav ! wavparse ! alsasink
 
Old 07-27-2004, 05:14 PM   #12
suslik
Member
 
Registered: Jul 2004
Distribution: OpenSuse 10.x
Posts: 262

Rep: Reputation: 30
Quote:
Originally posted by brenton
...
Personally I don't use arts at all. I play music with amaroK, don't have any systems sounds, and sound from flash animations is sent directly to the sound system.
The only other thing is Korn mail notification, where i just have it execute:
gst-launch filesrc location=/location/of/soundfile.wav ! wavparse ! alsasink [/B]
- By that you mean that you can listen to mp3's and still receive notifications?

- ...now, the Gstreamer. The 1001 sound servers saga continues. I hope this is the last one.
 
Old 07-27-2004, 09:02 PM   #13
brenton
Member
 
Registered: Mar 2004
Location: Sydney, Australia
Distribution: Slackware
Posts: 112

Rep: Reputation: 15
Quote:
Originally posted by suslik
- By that you mean that you can listen to mp3's and still receive notifications?
Yep, I think you need to have hardware mixing or something. Almost all soundcards do, anyway.

You can change all of the system notifications to gstreamer. Just disable playing a sound and instead execute a gst-launch command.

KDE's going to change to gstreamer anyway, but it works now.

Last edited by brenton; 07-27-2004 at 09:05 PM.
 
Old 07-28-2004, 11:01 AM   #14
suslik
Member
 
Registered: Jul 2004
Distribution: OpenSuse 10.x
Posts: 262

Rep: Reputation: 30
I think we have a temp solution

brenton's got a point. But i'm gonna turn it upsidedown to arrive to a more universal solution.

GStreamer has an aRts output plug in. This means for:

- MP3 and OGG use amaroK > Gstreamer > aRts > OSS/ALSA
(in essence, we use Gstreamer as an alternative mp3 decoder, bypassing kdemultimedia)
- wav (notifications) use directly aRts > OSS/ALSA

aRts performs software mixing = sound from both MP3 (converted by GStreamer into wav) and Wav notifications will be mixed and heard at same time.

Alternative way would be to add software mixing to alsa directly. This way you can have XMMS and aRts using the same soundcard concurrently. I think dmix is for that, and I would rather see that working.a solution

From DMix FAQ

3. Will this allow N applications to open /dev/dsp, so I can run more than one application that produces sound at a time.
Yes, that's the goal. It already works with a lot of software that directly uses ALSA.

Last edited by suslik; 07-28-2004 at 11:16 AM.
 
Old 07-28-2004, 07:27 PM   #15
brenton
Member
 
Registered: Mar 2004
Location: Sydney, Australia
Distribution: Slackware
Posts: 112

Rep: Reputation: 15
There's no need to use aRts in amaroK. If you output gstreamer directly to alsa you can still play multiple sounds.

You can just use gstreamer to play your notifications. Although, I've found that gstreamer has trouble playing short files, it might repeat the end or make a clicking noise. There might be a way to fix it, I don't know, I don't really use notifications.
 
  


Reply



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
Artsd crash on startup evilgold Linux - Newbie 1 08-08-2005 10:20 AM
artsd soundserver crash Trio3b Linux - Newbie 1 03-03-2005 10:38 AM
xmms crash xine crash mplayer crash paledread Linux - Software 9 03-09-2004 07:09 AM
Artsd :p UB_KMA Linux - General 4 11-13-2002 03:42 AM
rippers, mp3s and mp3s.... (?) bxb32001 Linux - General 0 07-14-2001 12:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:37 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration