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

Excessive scanning

Tags: None
(comma "," separated)
jfarrar
Registered Member
Posts
24
Karma
0

Excessive scanning

Thu May 08, 2014 7:39 am
Amarok 2.80 on KDE 4.12.4, openSuse 13.1 seems to be scanning excessively.

If I stop a track and clear the playlist there is a scan, Switching from one application to Amarok often causes a scan. The whole program waits for the scan to finish before anything else can be done.

Not a major bug (if a bug at all), just a bit of an irritation.

John F.


jfarrar, proud to be a member of KDE forums since 2008-Oct.
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS

Re: Excessive scanning

Thu May 08, 2014 8:11 am
but what does it scan? You can see at the bottom if you click on the bar when the scanning happens, or check the output from the konsole if you start amarok with 'amarok -d --nofork'


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 ...
jfarrar
Registered Member
Posts
24
Karma
0

Re: Excessive scanning

Thu May 08, 2014 9:07 am
The terminal output is:

Code: Select all
amarok: [EngineController] slotStateChanged from  Phonon::PlayingState  to  Phonon::StoppedState 
amarok: MPRIS2: Queueing up a PropertiesChanged signal
amarok: [AbstractDirectoryWatcher] addDirToList for "/VolB/Music/A Hawk And A Hacksaw-Cervantine"
amarok: BEGIN: virtual void GenericScanManager::requestScan(QList<KUrl>, GenericScanManager::ScanType)
amarok: END__: virtual void GenericScanManager::requestScan(QList<KUrl>, GenericScanManager::ScanType) [Took: 0s]
amarok: BEGIN: virtual void AbstractScanResultProcessor::scanStarted(GenericScanManager::ScanType)
amarok: END__: virtual void AbstractScanResultProcessor::scanStarted(GenericScanManager::ScanType) [Took: 0.001s]
amarok: [AbstractScanResultProcessor] got 1 directories
amarok: BEGIN: virtual void SqlScanResultProcessor::scanSucceeded()
amarok:   BEGIN: virtual void AbstractScanResultProcessor::scanSucceeded()
amarok:   END__: virtual void AbstractScanResultProcessor::scanSucceeded() [Took: 0.2s]
amarok: END__: virtual void SqlScanResultProcessor::scanSucceeded() [DELAY Took (quite long) 17s]
amarok: void StatSyncing::Controller::slotUpdateNowPlayingWithCurrentTrack() this track already recently submitted, ignoring



Does that tell you anything?

Thanks

John F.


jfarrar, proud to be a member of KDE forums since 2008-Oct.
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS

Re: Excessive scanning

Thu May 08, 2014 9:35 am
The only thing that seems a bit strange is the time it takes for the scanning, is your database located somewhere else than local?


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 ...
jfarrar
Registered Member
Posts
24
Karma
0

Re: Excessive scanning

Thu May 08, 2014 10:03 am
No, it's local, I assume: /home/john/.kde4/share/apps/amarok/mysqle


jfarrar, proud to be a member of KDE forums since 2008-Oct.
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS

Re: Excessive scanning

Thu May 08, 2014 2:31 pm
That is indeed local. So if it scans when you change something in the playlist, that is most likely due to the "watch folders for change" option in the collection settings, try disabling this and see if this helps.
Another option is to disable the metadata synchronization, which could also cause some scanning. Try if this changes something.

As for the GUI not being responsive when the scanning happens, this is a bug that is already fixed in the upcoming version.


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 ...
jfarrar
Registered Member
Posts
24
Karma
0

Re: Excessive scanning

Sun May 11, 2014 2:37 pm
Yes, turning off the watch feature does seem to stop the frequent scanning. However, it is a pity to lose useful feature.

John F.


jfarrar, proud to be a member of KDE forums since 2008-Oct.
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS

Re: Excessive scanning

Sun May 11, 2014 4:59 pm
Well, you can't have both, sorry, and the GUI freeze is a different issue anyway, and will be solved in the upcoming Amarok 2.8.1


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 ...
User avatar
google01103
Manager
Posts
6668
Karma
25

Re: Excessive scanning

Sun May 11, 2014 7:17 pm
questions:
- what folder is configured to be scanned by Amarok?
- what, other than music files, resides there?
- how often are music files being added to your collection?


OpenSuse Leap 42.1 x64, Plasma 5.x

jfarrar
Registered Member
Posts
24
Karma
0

Re: Excessive scanning

Mon May 12, 2014 6:18 am
google01103 wrote:questions:
- what folder is configured to be scanned by Amarok?
- what, other than music files, resides there?
- how often are music files being added to your collection?


Two, one in the home/music folder and one in the second disc music folder

Only music files & associated jpgs.

Every couple of days

John F.


jfarrar, proud to be a member of KDE forums since 2008-Oct.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Excessive scanning

Mon May 12, 2014 7:47 am
Have you tried disabling metadata synchronization?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
jfarrar
Registered Member
Posts
24
Karma
0

Re: Excessive scanning

Mon May 12, 2014 11:41 am
bcooksley wrote:Have you tried disabling metadata synchronization?


Yes, it seemed to have little effect.

John F


jfarrar, proud to be a member of KDE forums since 2008-Oct.


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], daret, Evergrowing, Google [Bot], lockheed, sandyvee, Sogou [Bot]