Bug 168594 - Tracks are played twice, randomly
Summary: Tracks are played twice, randomly
Status: RESOLVED FIXED
Alias: None
Product: amarok
Classification: Applications
Component: Playlist (show other bugs)
Version: 2.0-SVN
Platform: unspecified Linux
: NOR major
Target Milestone: ---
Assignee: Amarok Developers
URL:
Keywords:
: 166491 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-08-07 12:57 UTC by Mikko C.
Modified: 2009-12-09 11:28 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
repeating track log (25.66 KB, text/plain)
2008-08-08 13:34 UTC, Mihai RUSU
Details
amarok repeat a song (18.87 KB, text/plain)
2008-08-08 19:47 UTC, Mikko C.
Details
track not advancing (135.47 KB, text/plain)
2008-08-28 23:40 UTC, Kristjan Ugrin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mikko C. 2008-08-07 12:57:45 UTC
Version:           2.0-SVN (using 4.1.60 (KDE 4.1.60 (KDE 4.2 >= 20080709)), Gentoo)
Compiler:          x86_64-pc-linux-gnu-gcc
OS:                Linux (x86_64) release 2.6.26

Since a couple days, no matter what, some tracks are played twice.
It doesn't matter if dynamic playlist is turned off or on.
It's not track-dependent and I can't seem to find a pattern: it seems random.
I would say about 50-60% of the tracks are played twice.

Other people have reported the same bug in #amarok.
Comment 1 Mihai RUSU 2008-08-07 13:09:49 UTC
I experience the same problem. Not sure if related but I also experience another problem, sometimes in an amarok session it does not go to the next track, it plays the current one and stops.
Comment 2 Kristjan Ugrin 2008-08-07 20:23:38 UTC
Confirmed, but I'm having hard time to hunt down exact steps to reproduce it.
Comment 3 Daniel Caleb Jones 2008-08-08 00:22:47 UTC
SVN commit 843800 by djones:

Fix potential race condition on track changes.
Let me know if this bug persists. It's hard to reproduce so I'm not certin I got it.

CCBUG: 168594


 M  +18 -0     EngineController.cpp  
 M  +3 -0      EngineController.h  
 M  +0 -2      browsers/playlistbrowser/DynamicCategory.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=843800
Comment 4 Mikko C. 2008-08-08 09:58:30 UTC
Not fixed here :(
Comment 5 Mihai RUSU 2008-08-08 13:20:25 UTC
Hello, I still get repeated tracks too.

Here is a bigger log, as it has repeated tracks one after another after I pause a track.

I've uploaded the relevant log part at http://pastebin.com/m4dd5e0dc

PS: might be nothing but some of these repeated tracks are fairly small maybe one should try to play small files to reproduce the issue?
Comment 6 Mihai RUSU 2008-08-08 13:34:52 UTC
Created attachment 26733 [details]
repeating track log

Safer than the pastebin.
Comment 7 Daniel Caleb Jones 2008-08-08 17:57:46 UTC
Unfortunately, I can't quite tell what is happening in the log. I just enabled more debug output. If you can svn up and give me another log it would help a lot. I'm afraid I'm not able to reproduce this at all anymore.
Comment 8 Mikko C. 2008-08-08 19:47:34 UTC
Created attachment 26741 [details]
amarok repeat a song

Here's what I get.
I hope it's helpful.
Comment 9 Daniel Caleb Jones 2008-08-08 23:32:55 UTC
SVN commit 844136 by djones:

Fix problems caused by phonon emiting prefinishMarkReached at unusual times.
I'm pretty sure I got it this time. Let me know.

CCBUG: 168594


 M  +12 -1     EngineController.cpp  
 M  +1 -0      EngineController.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=844136
Comment 10 Mikko C. 2008-08-09 08:49:34 UTC
So far seems fixed for me :)
Thanks
Comment 11 Kristjan Ugrin 2008-08-09 11:14:13 UTC
After extensive period of playling it seems to be working here too.
Comment 12 Daniel Caleb Jones 2008-08-09 18:06:39 UTC
Awesome. I'll close this one then.
Comment 13 Mihai RUSU 2008-08-12 10:02:31 UTC
Indeed, I came back to check the bug because I noticed it does not repeat tracks anymore. Thanks for your work!
Comment 14 Kristjan Ugrin 2008-08-19 19:50:59 UTC
This bug still appears in latest svn (checked today, Revision: 849150), however is even harder to catch it - it's even more rare than before fix.
Will try to get an output.
Comment 15 Mikko C. 2008-08-19 20:51:54 UTC
Yes, today I noticed it too.
Much rarer tho.
Comment 16 Lydia Pintscher 2008-08-20 11:05:39 UTC
Please get some output.
Comment 17 Leo Franchi 2008-08-23 00:23:48 UTC
I can confirm too, with fresh svn etc. it actually repeats the same song over and over here, with random playlist enabled. if i manually advance, it works, but not automatically.

http://www.amarok.pastebin.com/m19ce4552
Comment 18 Leo Franchi 2008-08-23 17:10:11 UTC
*** Bug 166491 has been marked as a duplicate of this bug. ***
Comment 19 Kristjan Ugrin 2008-08-28 23:40:46 UTC
Created attachment 27117 [details]
track not advancing

Got it!
With revision 854119 problem is clearly exposed in playlist.
I was using dynamic mode and sometimes when I pressed next, amarok did play next track, but in playlist previous one was marked as current playing. This caused to replay same song when clicking next.

E.g. (real current playling track is marked with ←, current playing as stated by playlist marked with ↓):
Track0
Track1←↓
Track2
- clicking next
Track0
Track1↓
Track2←
- clicking next
Track0
Track1
Track2←↓

Hope it helps.
Comment 20 David 2008-08-29 02:51:04 UTC
I can confirm comment #19 here and that odd behaviour, but it seems to happen only in manual advance of playlist.
Comment 21 Kristjan Ugrin 2008-08-29 08:33:37 UTC
It actually happens on automatic advance too, but I'm not sure if I triggered this by skipping some tracks in beginning. But surely I didn't touched amarok for a while and it replayed some tracks twice.
Comment 22 Alex Merry 2008-08-30 23:48:34 UTC
Fixed in r854966.
Comment 23 Kristjan Ugrin 2008-09-01 19:21:51 UTC
Revision: 855628
Happened again - but is really hard to catch it, it happens when forget to run amarok from console :)
Comment 24 Alex Merry 2008-09-01 20:26:44 UTC
~/.xsession-errors should contain the output of amarok when you don't run it from a terminal.  Try running

grep ^amarok ~/.xsession-errors

and then post the output.
Comment 25 Alex Merry 2008-09-01 21:15:07 UTC
That command doesn't work, try

grep amarok ~/.xsession-errors

and if you could update to r855940, that would be really useful (I put some more debugging information in).