Bug 204043

Summary: daap connection suddenly lost
Product: [Applications] amarok Reporter: Thorsten Hirsch <t.hirsch>
Component: Collections/DAAPAssignee: Amarok Developers <amarok-bugs-dist>
Status: RESOLVED NOT A BUG    
Severity: normal CC: caco3, ian.monroe, skywalker_99, vdboor
Priority: NOR    
Version: 2.4.1   
Target Milestone: ---   
Platform: Debian stable   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: debug output when amarok loses daap connection
debug output now with amarok 2.2

Description Thorsten Hirsch 2009-08-16 13:23:18 UTC
Version:           2.1.1 (using KDE 4.3.0)
OS:                Linux
Installed from:    Debian stable Packages

After playing 3 to 7 songs of a daap share, amarok says:

[Playlist::Actions] [WARNING!] engineNewTrackPlaying: "<song name>" does not match what the playlist controller thought it should be

...and doesn't play any more songs from that share. Neither the amarok client's computer nor the daap share server computer have any lost connection entries in their dmesg output. And since the problem is reproducable and hasn't occured in rhythmbox at all, I think it's amarok's fault.

The debug output starts with the 1st song of Talking Head's "Once in a Lifetime", i.e. "Psycho Killer". This one and the next 2 songs ("Take me to the River" and "Once in a Lifetime") have been played (the full song). But the 4th song ("Burning Down the House") didn't even start.

The server's host name is "tuxi". There's no domain name (`hostname --fqdn` is also "tuxi", `hostname -d` is empty), so I don't know where "tuxi.local" is coming from. Pinging "tuxi.local" doesn't work on the amarok client computer. However, I don't think that this is causing the bug, because amarok was aware of tuxi's correct hostname for 3 songs, why should amarok forget it and use the wrong "tuxi.local" instead?

By the way, the amarok share is still in the collection. But amarok can't play any songs anymore. They all lead to "<name> does not match what the playlist controller thought it should be".

After restarting amarok (and waiting some minutes until amarok has found the dapp share), everything's working fine ...for 3, 4 or 5 songs again.

I'll attach the debug output.
Comment 1 Thorsten Hirsch 2009-08-16 13:25:51 UTC
Created attachment 36195 [details]
debug output when amarok loses daap connection
Comment 2 Bart Cerneels 2009-08-16 17:14:31 UTC
I know nothing about DAAP.
Myriam: Playlist:: Means the The Playlist, something I hardly have any knowledge about. CC'ing me is probably not going to help fix this faster.

Ian knows about DAAP though. Or at least he can CC the one that ported it to A2.
Comment 3 Thorsten Hirsch 2009-09-25 13:06:58 UTC
Is there anything I can do to help you get this problem fixed? It's always reproducable here and very annoying. Maybe it's enough if you stabilize the connection to the daap server, i.e. include some retries or so...?
Comment 4 Thorsten Hirsch 2009-10-01 18:55:49 UTC
The bug is still present in Amarok 2.2.
Comment 5 Thorsten Hirsch 2009-10-02 01:57:59 UTC
Created attachment 37312 [details]
debug output now with amarok 2.2

Here only 1 song could be played (Nouvelle Vague - Killing Moon). All the other songs were skipped, because of the bug.
Comment 6 Myriam Schweingruber 2009-11-16 17:35:11 UTC
Ian, any news on this? Please also see comment #2
Comment 7 Myriam Schweingruber 2009-11-16 17:35:42 UTC
Forgot to set to daap
Comment 8 Myriam Schweingruber 2009-12-17 16:19:25 UTC
Can somebody reproduce this with Amarok 2.2.1, Amarok 2.2.2 beta or current git?
Comment 9 Thorsten Hirsch 2009-12-17 16:46:06 UTC
I can still reproduce this with Amarok 2.2.1.
Comment 10 Myriam Schweingruber 2009-12-17 18:58:25 UTC
Thank you for the feedback, Thorsten. Can somebody else confirm this?
Comment 11 Myriam Schweingruber 2010-01-04 14:03:06 UTC
*** Bug 220610 has been marked as a duplicate of this bug. ***
Comment 12 Myriam Schweingruber 2010-01-04 14:03:33 UTC
confirmed by duplicate
Comment 13 Diederik van der Boor 2010-01-04 20:30:35 UTC
> [Playlist::Actions] [WARNING!] engineNewTrackPlaying: "<song name>" does not
match what the playlist controller thought it should be

Fascinating. In my playlist I also see tracks grouped with the wrong album. If the artist/album fields are empty, they are sometimes taken from the previous track.
Comment 14 Thorsten Hirsch 2010-01-04 21:13:48 UTC
That's interesting. I also have some kind of side effect. Besides the
daap collection that causes the issue, I also have a local music
collection. Playing songs from my local collection works completely
fine. And playing songs from the daap collection causes the issue we
are talking about.
So far, so good. Now the side effect is: when playing songs from both
collections (mixed randomly), the issue also occurs and I even can't
play songs from my local collection anymore.

Thorsten
Comment 15 Thorsten Hirsch 2010-01-13 01:06:31 UTC
Updated to Amarok 2.2.2, but problem remains the same.
Comment 16 Myriam Schweingruber 2010-02-07 13:44:14 UTC
The current problem is that nobody is working on DAAP in Amarok, so if somebody knows a coder wanting to work on that...
Comment 17 Myriam Schweingruber 2010-05-29 15:40:47 UTC
Is this still valid with Amarok 2.3.1, to be released next week?
Comment 18 Thorsten Hirsch 2010-06-15 22:06:19 UTC
Yes, problem still exists in 2.3.1.

Thorsten
Comment 19 Myriam Schweingruber 2010-06-15 23:14:16 UTC
Thank you for the feedback.
Comment 20 Jochen Bauer 2011-06-01 23:03:58 UTC
Still valid in 2.4.0 on Ubuntu Natty and also in 2.4.1 on Gentoo. Daap playing stops after each track, but amarok displays the name of the next one via knotify. Hitting Play again forces amarok to go on with playing
Comment 21 Myriam Schweingruber 2011-06-02 16:01:58 UTC
Thank you for the feedback.
Comment 22 CaCO3 2011-06-21 23:59:17 UTC
I can confirm this bug in version 2.4.1 on KDE 4.6.2.
Is there any way to fix this? This makes DAAP almost useless for me :(

My synology disk station would also support UPnP, which works fine with the media player on my mobile phone, how ever Amarok seems not be able to see it :(
Any solution to that? (UPnP Inspector and other tools can see my uPnP server).
Comment 23 Bart Cerneels 2011-07-01 06:56:53 UTC
Git commit bd0b738fc0ed623c95e8657061a5ddcfa6998aaf by Bart Cerneels.
Committed on 01/07/2011 at 08:36.
Pushed by shanachie into branch 'master'.

DAAP: use protocol introspection responce types.

Previously was using hardcoded values.

Patch by Lukas Sandström.

CCBUG:204043
REVIEW:101798

M  +55   -122  src/core-impl/collections/daap/daapreader/Reader.cpp     
M  +5    -4    src/core-impl/collections/daap/daapreader/Reader.h     

http://commits.kde.org/amarok/bd0b738fc0ed623c95e8657061a5ddcfa6998aaf
Comment 24 Myriam Schweingruber 2012-10-22 02:05:22 UTC
Is this still valid with Amarok 2.6?
Comment 25 Myriam Schweingruber 2012-12-04 09:51:14 UTC
Closing for lack of feedback. Please all, consider using UPnP instead of DAAP, Amarok works fine with it since there is a KIO slave for UPnP.