Bug 133761 - amarok doesn't remember current playlist on exit
Summary: amarok doesn't remember current playlist on exit
Status: RESOLVED DUPLICATE of bug 133613
Alias: None
Product: amarok
Classification: Applications
Component: general (show other bugs)
Version: 1.4.3
Platform: unspecified FreeBSD
: NOR normal
Target Milestone: ---
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-08 16:34 UTC by Silver Salonen
Modified: 2006-09-14 08:43 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Silver Salonen 2006-09-08 16:34:07 UTC
Version:           1.4.3 (using KDE 3.5.3, compiled sources)
Compiler:          gcc version 3.4.4 [FreeBSD] 20050518
OS:                FreeBSD (i386) release 6.1-RELEASE

Hi.

I've got "Remember current playlist on exit" option turned on, but Amarok restores some other playlist (with 583 tracks) upon start and says: "The XML in playlist was invalid. Please...".

I had started Amarok, cleared playlist (with these 583 tracks), loaded playlist with 3771 tracks and then just quit. After starting Amarok I had the old playlist (the one with 583 tracks), the message I mentioned etc.

Silver
Comment 1 Alexandre Oliveira 2006-09-08 18:56:46 UTC

*** This bug has been marked as a duplicate of 133632 ***
Comment 2 Silver Salonen 2006-09-08 19:24:10 UTC
Is this really a duplicate of 133632? I don't see the same symptoms - the guy is exiting KDE, not Amarok. When I run Amarok, I wait until it has successfully loaded the whole playlist, then I quit Amarok and wait until it's process has gone.

And I've never seen Amarok behaving like this before version 1.4.3.
Comment 3 richlv 2006-09-08 19:27:11 UTC
are these 583 tracks part of the large playlist ?
are they always the same 583 tracks ?
can you reproduce this with a small playlist (like, 30 songs) ?
1.4.3 had an improvement in large playlist handling, but in any case i'd suggest (at least for now) try to explore smart & dynamic playlists. they would allow to keep your playlist short, and overall amarok would be faster.
Comment 4 Silver Salonen 2006-09-08 23:12:58 UTC
Yes, always the same tracks, just like Amarok just wouldn't overwrite some old state. As the big playlist has all I have, all of these 583 tracks are also in the bigger one.

I can't test it with smaller playlist before monday, but to my mind Amarok did the same thing when I had added only a few albums.
Comment 5 Seb Ruiz 2006-09-09 03:00:04 UTC
None of us can reproduce this problem, though!  If you want to help us more, then do the following:
 - make sure Amarok is compiled with --enable-debug=full
 - after exiting the application, take a look at ~/.kde/share/apps/amarok/current.xml ; it should contain all the new tracks.
 - (and make sure that file is writable)
Comment 6 André Lemos 2006-09-10 13:56:17 UTC
esgrovas@tux ~ $ xml fo ~/.kde/share/apps/amarok/current.xml
/home/esgrovas/.kde/share/apps/amarok/current.xml:870: parser error : Input is not proper UTF-8, indicate encoding !
Bytes: 0xED 0x73 0xED 0x6E
  <Artist>roísín murphy</Artist>


I think I've found out the problem.
Comment 7 Silver Salonen 2006-09-11 08:51:45 UTC
Yep, that may be it.

The current.xml is really created after exiting Amarok. If I run Amarok from command-line, I see in output:
amarok:     [PlaylistLoader] [ERROR!] [PLAYLISTLOADER]: Error in file:///usr/home/silver/.kde/share/apps/amarok/current.xml: Error loading XML: "tag mismatch", at line 13998, column 8.

Line 13998 is "</item>" for a track that's Title is "<Title>Fadó</Title>" (Clannad ;)

When I run xmllint against current.xml, I get:
xmllint --noout --valid current.xml
current.xml:2: validity error : Validation failed: no DTD found !
<playlist product="amaroK" version="2.4">
                                        ^
current.xml:1862: parser error : Input is not proper UTF-8, indicate encoding !
Bytes: 0xE4 0x72 0x6B 0x69
  <Comment>Faili jagamine ja kasutamine lubatud mittekommertslikel eesmärkidel</
                                                                       ^
Letter pointed is 'ä'.
So the problem seems to be in encoding. Can I do something with the playlist myself?
Comment 8 Alexandre Oliveira 2006-09-11 13:22:35 UTC

*** This bug has been marked as a duplicate of 133613 ***
Comment 9 jaydot 2006-09-13 23:08:20 UTC
this is what i get when i looked in here

~/.kde/share/apps/amarok/current.xml

XML Parsing Error: reference to invalid character number
Location: file:///home/jay/.kde/share/apps/amarok/current.xml
Line Number 46851, Column 14:  <Comment>;�&#x2;</Comment>
-------------^

my entry was given #134020 and marked resolved.  for me it is not as i don't know how to fix it.  i don't even know what it means.
Comment 10 Alexandre Oliveira 2006-09-13 23:14:32 UTC
It was fixed after 1.4.3. You'll have to wait for the next release.
Comment 11 André Lemos 2006-09-13 23:16:47 UTC
isn't this serious enough for a quick release?

lets say 1.4.3.1?

anyone with accents on their playlist is having this problem
Comment 12 Mark Kretschmann 2006-09-13 23:20:53 UTC
On Wednesday 13 September 2006 23:16, André Lemos wrote:
> isn't this serious enough for a quick release?


I think we'll create a patch for distro packagers. If you build from source 
you can apply the patch as well.
Comment 13 Mark Kretschmann 2006-09-14 08:43:12 UTC
Can anyone else confirm that the playlist /encoding/ problem is fixed in SVN trunk? I want to be sure before making a patch.