Sunday, January 18, 2009

[SOLVED] Amarok lags on every song or volume change

Since I reinstalled my Kubuntu Hardy (to Interpid Ibex -> Jaunty Jackal alpha -> back to Hardy), my Amarok started to lag heavily on every song change/volume control or basically any other action. I thought this is somehow connected with the new version of Amarok, with Compiz Fusion, and I even changed to Gnome from KDE to test it. Amarok was still lagging the same - Amarok window slowly fades out, stands still for ~5-6 seconds, and then unfreezes.
Finally, I've found what was causing the trouble: SQLite as Connection Database. It seems that Amarok stores every configuration parameter in a database - so every configuration change invokes long and lagging cooperation with SQLite. With other databases (like MySQL) it's way faster.

How to fix it: 
  • Go to Settings->Configure Amarok
  • Switch to Collection tab
  • Under Database choose MySQL:
    amarok no lag database selection mysql
  • Specify your MySQL credentials. If you don't have MySQL server running on your machine you'll receive an error message like this:

    amarok error window - MySQL server not found
    So you can either setup a MySQL server on your machine, or just ignore the messages - but trust me, no matter what you choose it will be a small price to pay for the joy of having that incredibly annoying lag gone.
  • Press OK to save configuration



P.S. KDE 4 sucks.
P.P.S. I've switched to Gnome.
0
said thank you for this page

Liked this article? Bookmark/share it with others: Didn't like the article, found a mistake or just want to express your own opinion? Post a comment!

3 comments:

Yevgen Antymyrov said...

It's strange how sqlite could lag on such a small load. I've never had any problem with it.

P.S. KDE4 sucks, юзаю и плачу...

Cranked said...

I'm quite confident it's not sqlite lag, it's Amarok lagging while it searches for non-existant sqlite installation.
With MySQL it just fails way faster :)

Cranked said...

Oh, an update :)

I used to be a KDE user. I thought KDE 4.0 was such a disaster I switched to GNOME. I hate the fact that my right button doesn't do what I want it to do. But the whole "break everything" model is painful for users and they can choose to use something else.

-Linus Torvalds

Post a Comment

Have anything to say? Leave a comment!
Too shy or got a too private question? Email me
Alternatively, you can drop me a line on Twitter