Bug 136756

Summary: Last.FM Ruby script drops music, freezes, requires -9'ing
Product: [Applications] amarok Reporter: Adam Porter <adam>
Component: generalAssignee: Amarok Developers <amarok-bugs-dist>
Status: RESOLVED FIXED    
Severity: normal CC: rasasi78
Priority: NOR    
Version: 1.4.4   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Amarok message: the source cannot be read for the URL: http://popsicle.groovera.com:80/ xine parameters...

Description Adam Porter 2006-11-03 08:33:18 UTC
Version:           1.4.4 (using KDE KDE 3.5.5)
Installed from:    Debian testing/unstable Packages
OS:                Linux

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=390412

Every time I play a Last.FM stream in Amarok, after about 3-5 minutes, the audio stops.  Amarok's interface indicates that the track is still in play mode, but the time 
countdown doesn't change.  If I hit stop, it then shows both the stop and play buttons as grayed out.  If I double-click the stream in the playlist again, it shows 
"Connecting to stream source..." in the status bar for a few seconds, then it disappears and nothing else happens.  If I look in the process list, I can see "ruby 
/usr/bin/amarok_proxy.rb --lastfm 53278 http://streamer1.last.fm... xine-engine".  If I kill that process, Amarok instantly makes the play button clickable again, and I can 
then click it and it will play the stream again.  Also, about a minute after the audio stops, Amarok scrolls up a sheet that says:

"The source cannot be read for the URL...xine paramaters: localhost"

- -- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (900, 'testing'), (800, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-2-k7
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages amarok depends on:
hi  amarok-engines       1.4.3-1             output engines for the Amarok audi
hi  amarok-xine [amarok- 1.4.3-1             xine engine for the Amarok audio p
ii  kdelibs4c2a          4:3.5.4-3           core libraries and binaries for al
ii  libart-2.0-2         2.3.17-1            Library of functions for 2D graphi
ii  libaudio2            1.8-2               The Network Audio System (NAS). (s
ii  libc6                2.3.6.ds1-4         GNU C Library: Shared libraries
ii  libfontconfig1       2.4.1-2             generic font configuration library
ii  libfreetype6         2.2.1-5             FreeType 2 font engine, shared lib
ii  libgcc1              1:4.1.1-13          GCC support library
ii  libgl1-mesa-glx [lib 6.5.1-0.1           A free implementation of the OpenG
ii  libglib1.2           1.2.10-10.1         The GLib library of C routines
ii  libglib2.0-0         2.12.3-2            The GLib library of C routines
ii  libgpod0             0.3.2-1.1           a library to read and write songs 
ii  libgtk1.2            1.2.10-18           The GIMP Toolkit set of widgets fo
ii  libice6              1:1.0.1-2           X11 Inter-Client Exchange library
ii  libidn11             0.6.5-1             GNU libidn library, implementation
ii  libifp4              1.0.0.2-3           communicate with iRiver iFP audio 
ii  libjpeg62            6b-13               The Independent JPEG Group's JPEG 
ii  libmysqlclient15off  5.0.24a-4           mysql database client library
ii  libnjb5              2.2.5-4.1           Creative Labs Nomad Jukebox librar
ii  libpng12-0           1.2.8rel-5.2        PNG library - runtime
ii  libpq4               8.1.4-6             PostgreSQL C client library
ii  libqt3-mt            3:3.3.6-4           Qt GUI Library (Threaded runtime v
ii  libruby1.8           1.8.5-2             Libraries necessary to run Ruby 1.
ii  libsdl1.2debian      1.2.11-3            Simple DirectMedia Layer
ii  libsm6               1:1.0.1-2           X11 Session Management library
ii  libsqlite3-0         3.3.7-1             SQLite 3 shared library
ii  libstdc++6           4.1.1-13            The GNU Standard C++ Library v3
ii  libtag1c2a           1.4-4               TagLib Audio Meta-Data Library
ii  libtunepimp3         0.4.2-3.2           MusicBrainz tagging library and si
ii  libusb-0.1-4         2:0.1.12-2          userspace USB programming library
ii  libvisual-0.4-0      0.4.0-1             Audio visualization framework
ii  libx11-6             2:1.0.0-9           X11 client-side library
ii  libxcursor1          1.1.7-4             X cursor management library
ii  libxext6             1:1.0.1-2           X11 miscellaneous extension librar
ii  libxft2              2.1.8.2-8           FreeType-based font drawing librar
ii  libxi6               1:1.0.1-3           X11 Input extension library
ii  libxinerama1         1:1.0.1-4.1         X11 Xinerama extension library
ii  libxrandr2           2:1.1.0.2-4         X11 RandR extension library
ii  libxrender1          1:0.9.1-3           X Rendering Extension client libra
ii  libxt6               1:1.0.2-2           X11 toolkit intrinsics library
ii  ruby                 1.8.2-1             An interpreter of object-oriented 
ii  xlibmesa-gl          1:7.1.0-1           transitional package for Debian et
ii  xmms                 1:1.2.10+20060901-2 Versatile X audio player
ii  zlib1g               1:1.2.3-13          compression library - runtime
Comment 1 Mark Kretschmann 2006-11-03 09:15:42 UTC
That's probably just due to server problems on last.fm's side. The servers sometimes have load problems, and this is exactly how it looks.

You might want to retry the streams on another day.
Comment 2 Adam Porter 2006-11-03 21:13:40 UTC
I'm sorry, this *is* a bug.  Yes, maybe their servers are dropping the stream.  But Amarok should detect this, timeout within a few seconds, and restart the stream.  I should absolutely *not* have to run $(kill -9 $PID) on the amarok_proxy.rb script just to make the Play button in Amarok clickable again!
Comment 3 Kevin Funk 2007-02-23 17:21:47 UTC
*** Bug 138888 has been marked as a duplicate of this bug. ***
Comment 4 Ian Monroe 2007-02-25 02:57:29 UTC
well yea the reason you have to do that is because there's a xine bug where it hangs on demuxing or somesuch. 

...I'm guessing it has a bug already?
Comment 5 Greg Diebel 2007-04-29 23:28:01 UTC
It occurs here exactly as reporter mentions. Another workaround is to wait until amarok pops up the message about source cannot be read and then play another local file. Then play the stream again. it will now work. My setup is kubuntu 6.10 with amarok 1.4.5.
Comment 6 Raúl 2008-01-25 13:37:13 UTC
Does this stills happen? It stopped happenning to me, I suggest closing this bug if no feedback comes.
Comment 7 anze 2008-02-24 15:42:35 UTC
Created attachment 23698 [details]
Amarok message: the source cannot be read for the URL: http://popsicle.groovera.com:80/ xine parameters...
Comment 8 anze 2008-02-24 15:43:52 UTC
Yes, it happens to me on Amarok 1.4.8 (using KDE 3.5.8), debian box. The radio is popsicle.groovera.com. It plays for a minute or so, then rolls up a message (see the above attachment) and stops playing. If I hit play again, it again works for a minute, then stops again. 

So - not fixed yet...
Comment 9 anze 2008-02-24 15:44:45 UTC
*** This bug has been confirmed by popular vote. ***
Comment 10 Ian Monroe 2008-02-24 20:43:17 UTC
anze, does that have anything to do with Last.fm? Please don't confuse the bug report.
Comment 11 anze 2008-02-24 23:41:41 UTC
I don't know what Last.fm is, so I guess not... Sorry. :)
Comment 12 Dan Meltzer 2008-03-14 16:55:03 UTC
Fixed in 2.0 now that we use official lastfm code and not the ruby proxy.