You are not logged in.

#1 2009-06-05 19:49:42

vi3dr0
Member
From: Poland
Registered: 2009-03-22
Posts: 208

MPD --create-db hangs making 100% CPU usage.

I can't create MPD database for my whole collection. After a while it hangs making 100% CPU usage hmm I thought I had some corrupted files but after moving certain track it hangs on another one, and so on...

However it works when I set only one small folder (one artist) as collection in /etc/mpd.conf.

Any ideas?


Thinkpad T61p : T7700 | 4GB RAM | nVidia FX 570M | Intel 4965
Arch64 @ Openbox

Offline

#2 2009-06-05 20:12:16

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: MPD --create-db hangs making 100% CPU usage.

I had this the first time too, it worked when I moved one half of my music, created the db, moved the other half back and then updated the db. I never had any troubles ever since smile

Offline

#3 2009-06-05 20:42:05

dmz
Member
From: Sweden
Registered: 2008-08-27
Posts: 881
Website

Re: MPD --create-db hangs making 100% CPU usage.

What does dmesg say? Maybe related to this; http://bbs.archlinux.org/viewtopic.php?id=73493 ?

Offline

#4 2009-06-05 21:15:54

vi3dr0
Member
From: Poland
Registered: 2009-03-22
Posts: 208

Re: MPD --create-db hangs making 100% CPU usage.

@Ramses de Norre - Doesn't work, at least I can listen to half of my collection at the moment - apparently that's working wink

@dmz - nothing similar. Killed due to lack of memory

Out of memory: kill process 1032 (mpd) score 905395 or a child

Thinkpad T61p : T7700 | 4GB RAM | nVidia FX 570M | Intel 4965
Arch64 @ Openbox

Offline

#5 2009-06-05 21:38:49

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: MPD --create-db hangs making 100% CPU usage.

So you get the same error when you add the second half and you _update_ the db (mpc update)? Do not _create_ the db because then you'll surely get the error again.

If you didn't do so already, try to run "mpc update" (from the mpc package) after putting the second half of your music in your music dir.

Last edited by Ramses de Norre (2009-06-05 21:39:32)

Offline

#6 2009-06-06 10:45:24

vi3dr0
Member
From: Poland
Registered: 2009-03-22
Posts: 208

Re: MPD --create-db hangs making 100% CPU usage.

Ramses de Norre wrote:

So you get the same error when you add the second half and you _update_ the db (mpc update)? Do not _create_ the db because then you'll surely get the error again.

If you didn't do so already, try to run "mpc update" (from the mpc package) after putting the second half of your music in your music dir.

Oh, now I see, I must had misunderstood you wink However it's neither working this way.

And now I discovered the same things happens when I use MOC and try to read all tags, - 100% CPU usage and memory usage progressing up to 100% (it's fun to watch so small app consuming 3,7GB of memory piece by piece hmm)

May my files be corrupted? Is there any way to check/fix it?


Thinkpad T61p : T7700 | 4GB RAM | nVidia FX 570M | Intel 4965
Arch64 @ Openbox

Offline

#7 2009-06-06 10:52:24

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: MPD --create-db hangs making 100% CPU usage.

Do you get the same problem (memory usage out of the roof) when updating the db with the second half added? Or is it some other error?
If it's the same, try adding one fourth instead of the whole second half (I know, sounds lame, but I got it working like this).

And I don't think mpd should choke like this on a corrupted file, but you never now of course... It shouldn't choke on a big collection neither.

Last edited by Ramses de Norre (2009-06-06 10:53:24)

Offline

#8 2009-06-06 11:07:21

vi3dr0
Member
From: Poland
Registered: 2009-03-22
Posts: 208

Re: MPD --create-db hangs making 100% CPU usage.

I just tried to rewrite all tags with Easytag, but it just blew up the same way as MPD and MOC (100% CPU & RAM) reading my collection. Now I'm beginning to worry about my hard drive. I will install Amarok to see how it would handle the whole collection.

I tried updating collection database in MPD part by part - it works flawlessly in the beginning, but after I add some more folders it starts hanging on files that was OK before hmm

eg.
1) Iron Maiden, Porcupine Tree, Warren Zevon.
2) when I add Metallica it hangs on Porcupine Tree. (which is fine)

EDIT: Amarok did just fine - whole collection made without problems. So what is it to crash EasyTag, MPD and MOC?

Last edited by vi3dr0 (2009-06-06 11:15:56)


Thinkpad T61p : T7700 | 4GB RAM | nVidia FX 570M | Intel 4965
Arch64 @ Openbox

Offline

#9 2009-06-13 14:46:28

Blue Peppers
Member
From: Newbury, UK
Registered: 2009-02-01
Posts: 178

Re: MPD --create-db hangs making 100% CPU usage.

I had the same problem. Removed the file in question, and it worked like a charm. Mabey mpd just dosn't like taylor swift?


Consistency is not a virtue.

Offline

#10 2009-06-13 15:47:40

vi3dr0
Member
From: Poland
Registered: 2009-03-22
Posts: 208

Re: MPD --create-db hangs making 100% CPU usage.

Well, I started removing files MPD was complaining about, and I stopped after 30 minutes. Amarok 1.4 works like charm, so these files are not corrupted.

Odd.


Thinkpad T61p : T7700 | 4GB RAM | nVidia FX 570M | Intel 4965
Arch64 @ Openbox

Offline

#11 2009-06-13 18:05:25

Blue Peppers
Member
From: Newbury, UK
Registered: 2009-02-01
Posts: 178

Re: MPD --create-db hangs making 100% CPU usage.

No idea then. Have you reported it as a bug? You don't have to, but if you've failed to fix if for so long, you might want to concider it.


Consistency is not a virtue.

Offline

#12 2009-06-15 12:49:04

sen
Member
From: .de
Registered: 2007-02-18
Posts: 153
Website

Re: MPD --create-db hangs making 100% CPU usage.

Same here, while updating my mpd database a few moments ago I noticed a huge cpu spike and the ram + swap fills up in a matter of seconds until mpd is getting killed.

Out of memory: kill process 4131 (mpd) score 687110 or a child
Killed process 4131 (mpd)

mpd version: 0.14.2-1 (extra repo)

The weird thing is that this is the only thread I found about this issue, so maybe its a problem with the mpd package in extra. I'll try a few things this evening.

update:
I compiled mpd myself but that didn't resolve the issue.
Since the mpd error log shows nothing I tried to move the files that I added recently and... it works just fine.

I could narrow down the supposedly "damaged" file, it's a live mix from "Electrosoul System" (19.03.2009). The funny thing is that this file seems to be perfectly ok. It plays just fine in mplayer and xmms for example. I have no idea what the problem could be...

Last edited by sen (2009-06-15 13:41:44)

Offline

#13 2009-06-15 22:31:08

masterkoppa
Member
Registered: 2009-04-14
Posts: 92

Re: MPD --create-db hangs making 100% CPU usage.

I too had this problem. This is an issue with mpd not liking the tags on the music. I have a 14 GB database and had 118 files with problems. The way I fixed it is a bit tedious but it works like a charm.

I just added a section to the MPD wiki on how to fix this. This is a little rought and ill fix it ASAP.  http://wiki.archlinux.org/index.php/MPD
GL

Offline

#14 2009-06-16 09:01:35

oddsocks
Member
Registered: 2008-12-08
Posts: 47

Re: MPD --create-db hangs making 100% CPU usage.

I had this same problem before too. And similarly to masterkoppa, mpd didn't like my tagging. So used Picard to fix all the tags, and now works like a charm!

Offline

#15 2009-06-16 13:55:39

masterkoppa
Member
Registered: 2009-04-14
Posts: 92

Re: MPD --create-db hangs making 100% CPU usage.

oddsocks wrote:

I had this same problem before too. And similarly to masterkoppa, mpd didn't like my tagging. So used Picard to fix all the tags, and now works like a charm!

Would you mind porsting this procedure in the wiki. The process I did is a little too tedious an long.

Offline

#16 2009-06-16 15:18:13

oddsocks
Member
Registered: 2008-12-08
Posts: 47

Re: MPD --create-db hangs making 100% CPU usage.

masterkoppa wrote:
oddsocks wrote:

I had this same problem before too. And similarly to masterkoppa, mpd didn't like my tagging. So used Picard to fix all the tags, and now works like a charm!

Would you mind porsting this procedure in the wiki. The process I did is a little too tedious an long.

Well the thing is, I think most people will have very few problems. For me personally, all the foreign language tags (for JPOP and KPOP) must have not been in unicode, and so mpd got a bunch of junk using, I believe, some other encoding. And to be honest, this process is also tedious, if you have a large music library, since you'll be changing tagging for every file that mpd stumbles on.

Steps:

(1) Install Picard (you can use easyTAG, but I found the whole nautilus fix thing you have to do annoying so went with picard)

(2)Do mpd --create-db --stdout and find the file that mpd stumbles on.

(3)Run picard, load the file (or album), and usually if it isn't an obscure album, picard will automatically find good tagging for it from its database.

(4)Save tagging.

(5)Repeat step (2)

Now if picard doesn't find the album/track, you'll have to sign up with them so you can manually tag it yourself (this was the very tedious part), so if you want to avoid this, use easyTAG.

Basically, any mass tagger will do

P.S. I really didn't think this deserved an addition in the wiki, since I haven't seen many posts on this issue, apart from the couple I wrote down early on when I was tinkering with mpd myself.

Offline

Board footer

Powered by FluxBB