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

amarok 2.2.2 slow startup takes almost 10 sec

Tags: None
(comma "," separated)
User avatar
jithin1987
Registered Member
Posts
135
Karma
0
OS
Hi,
My amarok in arch linux is slow to startup. I saw a suggestion to run amarok like

"amarok --debug --nofork" and look for DELAY.

I saw these.

Code: Select all
amarok:     END__: MainWindow::MainWindow() - DELAY Took (quite long) 7.2s
amarok:     END__: void App::continueInit() - DELAY Took (quite long) 8.1s
amarok:   END__: App::App() - DELAY Took (quite long) 8.1s
amarok: END__: virtual void XmlParseJob::run() - DELAY Took (quite long) 9.8s                                                                       
amarok: END__: bool ScriptManager::slotRunScript(QString, bool) - DELAY Took (quite long) 5s
amarok: END__: void ScriptManager::slotConfigChanged(bool) - DELAY Took (quite long) 18s


I then disabled all the scripts but the remaining values remains unchanged and is still slow.
Is there any way to speed up startup ??????


jithin1987, proud to be a member of KDE forums since 2008-Oct.
DaSheep
Registered Member
Posts
95
Karma
1
OS
What version of KDE SC are you using? Have you installed the normal version or the KDE-mod version of amarok?

Have you tried reinstalling amarok?

Code: Select all
pacman -S amarok

Is there any way to speed up startup ???

Autostart in the advanced tab of System Settings lets you start a program automaticly when you boot but I don't think that would be smart in your case.
User avatar
jithin1987
Registered Member
Posts
135
Karma
0
OS
I am using normal version of kde. I was using kdemod few days back and then switched to normal one.
Both had same speed. I did reinstall amarok.

I have 3025 tracks in my collection. Could that be an issue.

The KDE SC I am using is 4.4 rc2 from kde-unstable. I am updating to 4.4 rc3 atm. Will report back if any improvements.

The speed was same when I using the stable 4.3.4.


jithin1987, proud to be a member of KDE forums since 2008-Oct.
DaSheep
Registered Member
Posts
95
Karma
1
OS
jithin1987 wrote:I have 3025 tracks in my collection. Could that be an issue.

Possibly, but Amarok should be able to handle much larger collections.
I'm not sure my collection is much smaller at the moment :( (darn HD crash!)
molecule-eye
Registered Member
Posts
402
Karma
0
OS
I've noticed this as well. Amarok is really slow starting up, at least compared to any other application I've used, including other media players like Banshee or even Songbird. I'm using Amarok 2.2.2 and KDE 4.3.5.
User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS
Well, looking at this...

Code: Select all
amarok: END__: bool ScriptManager::slotRunScript(QString, bool) - DELAY Took (quite long) 5s

...it does actually seem that a script is causing the delay. Are you really sure that none of them are running?


Try to remove your Amarok config entirely once (after making a backup!):

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


--
Mark Kretschmann - Amarok Developer
amppa
Registered Member
Posts
4
Karma
0
OS
I'm using Amarok 2.2.90 / KDE 4.4.0 and my startup time is 2 minutes 11 seconds (!!), which is about 2 minutes 10 seconds longer than it should. Previous version wasn't this bad even though it definitely took over 10 seconds as well.

Does someone know if this is a known issue? I'm using Amarok with a rather large collection over local gigabit NFS share, so that could be one reason. However, if there's some scanning going on in background, I'd expect that it would not block the startup.

Should I file a bug report about problems like this?
User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS
amppa wrote:I'm using Amarok 2.2.90 / KDE 4.4.0 and my startup time is 2 minutes 11 seconds (!!), which is about 2 minutes 10 seconds longer than it should. Previous version wasn't this bad even though it definitely took over 10 seconds as well.

Does someone know if this is a known issue? I'm using Amarok with a rather large collection over local gigabit NFS share, so that could be one reason. However, if there's some scanning going on in background, I'd expect that it would not block the startup.

Code: Select all
amarok --debug --nofork

...and look for "DELAY".


--
Mark Kretschmann - Amarok Developer
amppa
Registered Member
Posts
4
Karma
0
OS
Indeed, sorry for not realizing there was already a tip for checking the delay in this thread.

It seemed that loading the existing playlists was taking a considerable amount of time, so I deleted all .m3u files. That dropped the startup time by almost a minute. Running with --debug --nofork now creates a respectable 3.7 megabyte log that includes the following delays:

Code: Select all
amarok:                 END__: virtual void PlaylistFileProvider::loadPlaylists() - DELAY Took (quite long) 9.1s
amarok:               END__: Meta::PlaylistList PlaylistManager::playlistsOfCategory(int) - DELAY Took (quite long) 9.1s
amarok:             END__: void PlaylistBrowserNS::UserModel::loadPlaylists() - DELAY Took (quite long) 9.1s
amarok:           END__: PlaylistBrowserNS::PlaylistBrowser::PlaylistBrowser(const char*, QWidget*) - DELAY Took (quite long) 9.2s
amarok:             END__: Creating browsers. Please report long start times! - DELAY Took (quite long) 65s
amarok:           END__: void MainWindow::init() - DELAY Took (quite long) 66s
amarok:         END__: MainWindow::MainWindow() - DELAY Took (quite long) 69s
amarok:       END__: void DatabaseUpdater::prepareTemporaryTables() - DELAY Took (quite long) 5.5s
amarok:       END__: void App::continueInit() - DELAY Took (quite long) 76s
amarok:     END__: App::App() - DELAY Took (quite long) 76s

Hope this helps!
amppa
Registered Member
Posts
4
Karma
0
OS
I'm glad to report that today the Amarok startup time was suddenly down to 8.6 seconds. I'm guessing there might have been something fishy going on because of the recent update to KDE 4.4.0 or similar; it may be that the delay was not Amarok's fault after all.

I'll try to investigate more closely if this happens again. And thanks for the good work with the player :)


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot]