This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Amarok scan stops at 43%

Tags: None
(comma "," separated)
nomopofomo
Registered Member
Posts
12
Karma
0
OS

Amarok scan stops at 43%

Tue Nov 03, 2009 11:41 pm
Title.

Running amarok --debug doesn't provide any useful information such as a filename so I can't determine what's causing the problem. I am just assuming it's an issue with a weird file.

Code: Select all
TagLib: ID3v2.4 no longer supports the frame type TDAT.  It will be discarded from the tag.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
amarok:   BEGIN: void ScanManager::slotFinished()
amarok:   END__: void ScanManager::slotFinished() - Took 0.00018s
amarok:   BEGIN: void Playlist::PrettyListView::fixInvisible()
amarok:   END__: void Playlist::PrettyListView::fixInvisible() - Took 0.00023s
amarok:   BEGIN: void ScanManager::startIncrementalScan()
amarok:      scanner already running
amarok:   END__: void ScanManager::startIncrementalScan() - Took 0.00029s


I get that TagLib line about 50 times and the ScanManager part at the end just keeps running indefinitely. Amarok itself doesn't lock up. I can play individual files and even play with the settings.
nomopofomo
Registered Member
Posts
12
Karma
0
OS

Re: Amarok scan stops at 43%

Tue Nov 03, 2009 11:51 pm
Apparently it's not indefinitely, I just let it run for about 10 minutes and it finally started moving again.

Still seems like something worth fixing.
User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS

Re: Amarok scan stops at 43%

Wed Nov 04, 2009 5:41 am
Which Amarok version?


Also try this (backup first):

Code: Select all
rm -rf ~/.kde/share/apps/amarok/mysqle


--
Mark Kretschmann - Amarok Developer
nomopofomo
Registered Member
Posts
12
Karma
0
OS

Re: Amarok scan stops at 43%

Wed Nov 04, 2009 2:44 pm
2.2

No effect since I'm using MySQL database. The problem also existed before I used MySQL. The change was an effort to fix which was not successful.
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS

Re: Amarok scan stops at 43%

Wed Nov 04, 2009 6:13 pm
There have been quite some scanning improvements done for the upcoming 2.2.1, might be worth to be patient for another 10 days or so :)


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
jefferai
Moderator
Posts
52
Karma
0

Re: Amarok scan stops at 43%

Wed Nov 04, 2009 6:21 pm
Run "amarokcollectionscanner" from the command line on the directories you have selected for scanning. (You can use -r for recursive behavior). Using this and watching the output you should be able to narrow down exactly which file(s) causes the hangup(s). Then send the file to mitchell [a][t] kde dot org and I'll take a look.
nomopofomo
Registered Member
Posts
12
Karma
0
OS

Re: Amarok scan stops at 43%

Wed Nov 04, 2009 8:37 pm
jefferai wrote:Run "amarokcollectionscanner" from the command line on the directories you have selected for scanning. (You can use -r for recursive behavior). Using this and watching the output you should be able to narrow down exactly which file(s) causes the hangup(s). Then send the file to mitchell [a][t] kde dot org and I'll take a look.


It just flew right through with no long stops.

I have one folder that is much larger than the rest of my collection. Could it be that Amarok thinks the gianormous folder is the same size as my other folders?

Still, the command line collection scanner is much faster than when scanning in Amarok itself.

Also of note: if I try to cancel the scan at 43%, Amarok freezes.

Last edited by nomopofomo on Wed Nov 04, 2009 8:47 pm, edited 1 time in total.
jefferai
Moderator
Posts
52
Karma
0

Re: Amarok scan stops at 43%

Wed Nov 04, 2009 8:42 pm
If you start Amarok from the console with --debug and watch the output, after you kick off a full scan, you should be able to eventually see a line like
END__: void ScanManager::startFullScan() - Took X

If that happens before your long pause (but it might be buffered, so the X part helps determining this), the delay is in processing the data returned from the scanner -- in which case you should get a significant bump with 2.2.1 or current git.

If it happens after your long pause (assuming it didn't get buffered) then there's something strange with the scanner that you didn't reproduce running manually.

I'm guessing the former.


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot], rblackwell