Bug 129986

Summary: Invalid playlist XML after exiting KDE without quitting Amarok
Product: [Applications] amarok Reporter: mklencke
Component: generalAssignee: Amarok Bugs <amarok-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Slackware   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description mklencke 2006-06-28 21:14:02 UTC
Version:            (using KDE KDE 3.5.0)
Installed from:    Slackware Packages
Compiler:          gcc (GCC) 3.3.5 
OS:                Linux

My collection is about 3750 songs and use the Smart playlist "All Collection". When my collection got up to a certain size, I started noticing that Amarok displayed an "invalid playlist XML" message upon startup and loaded only a random number of songs, usually in the 2000ish area.

After living with this for a while I inspected the XML and found that the XML file abruptly stopped. The end of current.xml looked like this on one occasion:

  <Title>Storm In A Teacup</Title>
  <Artist>Red Hot Chili Peppers</Artist>
  <Compose

and then EOF. The point at which the EOF occurs is random.

After some testing this only seems to happen when Amarok is not manually quit, and thus when it is stopped when logging out of KDE.

I suspect that KDE gives Amarok some grace period to shut down. In this time, Amarok tries to write the current playlist to current.xml, but can't quite finish in time, which results in the application being killed by KDE.

I use Amarok 1.4.0, build date May 19 2006.
Comment 1 Alexandre Oliveira 2006-06-30 04:44:38 UTC

*** This bug has been marked as a duplicate of 124294 ***