Topic locked

Still can't get Amarok to load collection

McTwist
Registered Member
Posts
12
Karma
0
I've tried multiple times reading threads and employing fixes, to no avail. I am running Ubuntu 10.04 and Amarok 2.3.1 w/ KDE 4.5. I have a large collection (15k songs) with about 65% of my music in FLAC, the rest in MP3. The music plays if I drag and drop or locate my collection under "Files". Amarok will scan my collection, but it won't do much else. I noticed it gets stuck around 94 - 95% for a few minutes, but it always completes the scan, but never loads anything into "Local Music". Everything is up to date and installed, I just can't figure out what is going on.

I ran this code "amarok -d --nofork" in terminal and an error popped up saying "The process for the file protocol died unexpectedly", but Amarok still loads. Can anyone help me out? btw I'm not using a MySQL database

edit:: now I can't even browse my file directory via Amarok, I keep getting that protocol died message.
User avatar Mamarok
Manager
Posts
2919
Karma
8
OS
Please make sure you have all necessary packages installed, in Ubuntu you definitely will need the following:

* amarok
* amarok-common
* amarok-utils
* mysql-client-core-5.
* mysql-server-code-5.1
* libmysqlclient16
* libmysql-common

Then please run the amarokcollectionscanner on your music folders with -rs as options. This should fix the problem.

Amarok uses MySQL embedded by default, you don't have to setup an external server, just use the default settings, and make sure you have set the location of the music on your system correctly.


Mamarok, hanging out in the Amarok forum since August, 2007
Currently running Kubuntu Trusty 14.04, KDE 4.12.95, Amarok 2.8-git of the day
McTwist
Registered Member
Posts
12
Karma
0
cman@cman:~$ amarokcollection scanner -rs --rpath=</media/cman's stuf/Music>
>

that's what I did, is that right? All it gives me is that ">" sign. Oh, and Amarok crashed on me, leaving me with this error "Executable: amarok PID: 16856 Signal: 6 (Aborted)"

I'm starting to think Amarok doesn't like me very much...oh and I have everything installed, except libmysql-common, which I cannot find.
User avatar Mamarok
Manager
Posts
2919
Karma
8
OS
if you use --rpath you need to specify the batch mode.

Why not just do
Code: Select all
amarokcollectionscanner -rs /media/cman's stuff/Music


Mamarok, hanging out in the Amarok forum since August, 2007
Currently running Kubuntu Trusty 14.04, KDE 4.12.95, Amarok 2.8-git of the day
McTwist
Registered Member
Posts
12
Karma
0
tried it, but all I get is this:

cman@cman:~$ amarokcollectionscanner -rs /media/cman's stuff/Music
>


and it just sits. I let it sit for awhile, but nothing happens. Also, every time I close amarok the KDE bug report comes up saying amarok crashed, but really I intentionally closed it.

If I try running a scan in amarok I get this

Executable: amarok PID: 2184 Signal: 11 (Segmentation fault)

and it crashes.

I'm almost ready to give up and try again in a few months time...
User avatar Mamarok
Manager
Posts
2919
Karma
8
OS
Did you try removing the amarok* files in $HOME/.kde/share/config/?


Mamarok, hanging out in the Amarok forum since August, 2007
Currently running Kubuntu Trusty 14.04, KDE 4.12.95, Amarok 2.8-git of the day
valoriez
KDE CWG
Posts
575
Karma
2
OS
McTwist wrote:cman@cman:~$ amarokcollection scanner -rs --rpath=</media/cman's stuf/Music>
>

that's what I did, is that right? All it gives me is that ">" sign. Oh, and Amarok crashed on me, leaving me with this error "Executable: amarok PID: 16856 Signal: 6 (Aborted)"

I'm starting to think Amarok doesn't like me very much...oh and I have everything installed, except libmysql-common, which I cannot find.


McTwist, if you are missing a package, you might solve it this way:

Code: Select all
sudo apt-get build-dep amarok


IF you are using a debian-based distro.

Valorie
McTwist
Registered Member
Posts
12
Karma
0
@Mamarok, I deleted the three Amarok files I found.

@Valorie, I ran the code and it installed a few packages, however now I am experiencing a different error with a crash at startup after the splash screen

Executable: amarok PID: 5469 Signal: 7 (Bus error)

I'll search around for a little bit to see what I can do...

edit:: so I uninstalled and got it to run at least, after installing with kpackagekit. Just tried to load collection and it loads, but gets stuck at 95% doing something about "Podcast directory" or something. After 10 min or so, it continues, but then crashes as soon as it's done. Here is some code from right before it crashed

Code: Select all
Creating empty group:  "Internal Database"
role  0  : ( QString ) :  QVariant(QString, "Playlist Files on Disk")
"index 428 belongs to group Playlist Files on Disk"
role  0  : ( QString ) :  QVariant(QString, "Playlist Files on Disk")
"index 427 belongs to group Playlist Files on Disk"
KCrash: Application 'amarok' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
sock_file=/home/cman/.kde/socket-cman/kdeinit4__0
QSocketNotifier: Invalid socket 45 and type 'Read', disabling...
QSocketNotifier: Invalid socket 43 and type 'Read', disabling...


The crash report gave me this error: Executable: amarok PID: 2199 Signal: 11 (Segmentation fault)

there is not enough data to report the bug. I'm stuck. For the life of me I cannot get amarok to run without somehow crashing!! I am doomed to the world of subpar players, I suppose =[
User avatar Mamarok
Manager
Posts
2919
Karma
8
OS
Usually, when it gets stuck this is a sign of a file causing problems. That is the main reason I asked you to run the amarokcollectionscanner with the -rs option, as it produces a konsole output that tells you the name and location of the file it gets stuck on.

Please, run the amarokcollectionscanner with the -rs option and move the file it indicates when it aborts out of the collection folder.


Mamarok, hanging out in the Amarok forum since August, 2007
Currently running Kubuntu Trusty 14.04, KDE 4.12.95, Amarok 2.8-git of the day
McTwist
Registered Member
Posts
12
Karma
0
I've tried running the collection scanner with the options you've told me, but it simply does nothing at all. I can't start amarok anymore, it crashes, and I can't even use the collection scan via terminal. It's just not working.

edit: I've got it started, but when I scan a different folder with music files, it scans, but then does not load the music!! In terminal all I see is

QWidget::setMinimumSize: (Media Sources dock/QDockWidget) Negative sizes (100,-1) are not possible

listed a bunch of times.

tried again with just one folder in my music folder and it seemed to scan all of the tracks fine, except it still won't load them into the collection. I don't know what to do..here is an example of it scanning one of the songs:

<tags title="Sugar Magnolia" compilation="checkforvarious" bitrate="889" uniqueid="amarok-sqltrackuid://7b98f6e04897ae6fdd0e54ea49d91812" filetype="2" track="9" discnumber="3" artist="Grateful Dead" path="/media/cman's stuf/Music/Grateful Dead/Road Trips Vol. 1, No. 2/309 - Sugar Magnolia.flac" filesize="65297590" length="587000" samplerate="44100" album="Road Trips Vol. 1, No. 2 [Bonus Disc]" comment="" genre="" year="1977" audioproperties="true"/>

seems fine to me. amarok does not load it. does the KWallet have something to do with it? I can't get my Kwallet set up, it gives me an error when I try to create a password, saying error opening the wallet 'kdewallet', error code -2: error opening file.
McTwist
Registered Member
Posts
12
Karma
0
even Amarok 1.4 won't load a collection
jefferai
Moderator
Posts
52
Karma
0
Code: Select all
amarokcollectionscanner -rs /media/cman's stuff/Music

Not sure where you got that command line, but the "restart" option makes no sense for your testing (the XML won't be valid) and you don't have quotes around your folder name. The
Code: Select all
>

you're getting is coming from your shell and has absolutely nothing to do with amarokcollectionscanner - your shell isn't even running it, because it's sitting there waiting for you to finish your command. What you meant to run was:
Code: Select all
amarokcollectionscanner -r "/media/cman's stuff/Music"

Notice the quotes around the directory.

So -- run that, and see what happens. Usually if Amarok doesnt' successfully scan the collection it's because somewhere you have a corrupted file, and running the collectionscanner from the command line is the best way to find it. The last file that the scanner processed will be in the file "collection_scan.log" in the directory you ran the scan from. Move that into some directory outside the path you are passing into the collection scanner and try again, this time adding -s to the commands.

Once it successfully scans your folder, let me know and we can see if we can figure out why some of your files are problematic.
McTwist
Registered Member
Posts
12
Karma
0
after removing amarok 1.4, installing 2.3.1 again and restarting, amarok crashes on startup. I entered your code in terminal and got

<?xml version="1.0" encoding="UTF-8" ?><scanner></scanner>

that's all. Everything is installed I'm sure. I don't know what's up now.
jefferai
Moderator
Posts
52
Karma
0
Well, downgrades are not supported and Amarok 1.4 is extremely old so depending on how your distribution uses KDEDIR you may have corrupted Amarok's config files. You need to find out what directory your KDE settings are stored in -- it may be in ~/.kde or ~/.kde4 depending on your distribution, go into that directory, and run
Code: Select all
rm -rf share/config/amarok*
rm -rf share/apps/amarok

If you have both directories, do it in both to be certain. Then run
Code: Select all
kbuildsycoca4 --noincremental
to update KDE's application cache.

As for the scanner output, that is correct scanner output for when it doesn't find any music. Is /media/cman's stuff some kind of mount?
User avatar rubentje1991
Registered Member
Posts
58
Karma
0
OS
If you want to try out something like AmaroK 1.4, try "clementine"


using PCLinuxOS 2010.7 KDE Version

 
Topic locked

Bookmarks



Who is online

Registered users: Alastair, apater, Baidu [Spider], Bing [Bot], Exabot [Bot], garthecho, ggael, Google [Bot], google01103, Horus, jitseniesen, Joif, kde-jriddell, ken300, La Ninje, Mamarok, mmistretta, Nuc!eoN, psbot [Picsearch], rbruce, renatoatilio, sacarde, sinclair, stephans, TheraHedwig, tienhung, wolfi323, Yahoo [Bot]