Bugzilla – Bug 5065
SHOUTcast: Sometimes some links are changed to other stations.
Last modified: 2009-06-17 09:35:03 UTC
System Info: Gateway, 2.0 GHz, 1.25 GB of RAM, XP SP2 ENU SlimServer Version: 6.5.2 - 11991 - Windows XP - EN - cp1252 Server IP address: 10.0.3.69 Perl Version: 5.8.8 MSWin32-x86-multi-thread MySQL Version: 5.0.22-community-nt Note: This is an intermitent bug. It requires great deal of patience to reproduce. Steps to Reproduce: 1. Go to "Home / SHOUTcast Internet Radio / By Genre / Chinese". 2. Click the "on air POWER webcast - 24 hours a day Chinese radio station". 3. It is in Cantonese. 4. Click around on other stations on the same page. Listen to each for a few minutes. 5. Go back to "on air POWER webcast - 24 hours a day Chinese radio station". 6. Sometimes, it has chnaged to other stations. Sometimes the PlayList frame says it is a "(#2 - 24/100) Polskie Radio Megastacja.NET - Kanal CafeClub". 7. There was one point in time yesterday, this was actually turned into "KOIT 96.5 Lite Rock Less Talk" from San Francisco. That was how this user realized something was definitely wrong. Note about the log file: 1. Toward the end of the log file, this user was listening to "on air POWER webcast - 24 hours a day Chinese radio station". However, "(#2 - 24/100) Polskie Radio Megastacja.NET - Kanal CafeClub" was being streamed. 2. Clicked "Forever Young Radio". 3. Clicked "on air POWER webcast - 24 hours a day Chinese radio station" again. 4. Now the PlayList frame says it is "(#1 - 5/100) on air POWER webcast - 24 hours a day Chinese radio station".
Still unable to attach log file. Here is the part that shows the Chinese station streaming Polslie, then turns back to Chinese. 2007-05-15 10:43:33.8871 Opening connection to http://213.251.190.147:9800/: [213.251.190.147 on port 9800 with path / with timeout 5] 2007-05-15 10:43:34.0634 Request: GET / HTTP/1.0 Accept: */* Cache-Control: no-cache User-Agent: iTunes/4.7.1 (Windows; N; Windows XP; 586; EN; cp1252) SlimServer/6.5.2/11991 Icy-MetaData: 1 Connection: close Host: 213.251.190.147:9800 2007-05-15 10:43:34.2625 Response: ICY 200 OK 2007-05-15 10:43:34.2699 header-rs: icy-notice1:<BR>This stream requires <a href="http://www.winamp.com/">Winamp</a><BR> 2007-05-15 10:43:34.2702 header-rs: icy-notice2:SHOUTcast Distributed Network Audio Server/Linux v1.9.7<BR> 2007-05-15 10:43:34.2703 header-rs: icy-name:Polskie Radio Megastacja.NET - Kanal CafeClub 2007-05-15 10:43:34.2706 header-rs: icy-genre:jazz,smooth,chillout,acid,trip-hop,lounge 2007-05-15 10:43:34.2708 header-rs: icy-url:http://megastacja.net 2007-05-15 10:43:34.2710 header-rs: content-type:audio/mpeg 2007-05-15 10:43:34.2745 header-rs: icy-pub:1 2007-05-15 10:43:34.2748 header-rs: icy-metaint:8192 2007-05-15 10:43:34.2750 header-rs: icy-br:128 2007-05-15 10:43:34.2812 parseHeaders: Bitrate for http://213.251.190.147:9800/ set to 128000 2007-05-15 10:43:34.2875 opened stream! 2007-05-15 10:43:34.3773 reduced chunksize to 8192 for metadata 2007-05-15 10:43:34.3777 Read 1252 bytes from source 2007-05-15 10:43:34.3779 read a chunk of 1252 length 2007-05-15 10:43:34.3802 reduced chunksize to 6940 for metadata 2007-05-15 10:43:34.3805 would have blocked, will try again later 2007-05-15 10:43:34.4345 reduced chunksize to 6940 for metadata 2007-05-15 10:43:34.4348 would have blocked, will try again later 2007-05-15 10:43:34.4972 reduced chunksize to 6940 for metadata 2007-05-15 10:43:34.4976 Read 4380 bytes from source 2007-05-15 10:43:34.4978 read a chunk of 4380 length 2007-05-15 10:43:34.4989 reduced chunksize to 2560 for metadata 2007-05-15 10:43:34.4993 would have blocked, will try again later 2007-05-15 10:43:34.5595 reduced chunksize to 2560 for metadata 2007-05-15 10:43:34.5598 would have blocked, will try again later 2007-05-15 10:43:34.6219 reduced chunksize to 2560 for metadata 2007-05-15 10:43:34.6223 Read 2560 bytes from source 2007-05-15 10:43:34.6225 read a chunk of 2560 length 2007-05-15 10:43:34.6236 reduced chunksize to 8192 for metadata 2007-05-15 10:43:34.6240 Read 1819 bytes from source 2007-05-15 10:43:34.6242 read a chunk of 1819 length 2007-05-15 10:43:34.6252 reduced chunksize to 6373 for metadata 2007-05-15 10:43:34.6256 would have blocked, will try again later 2007-05-15 10:43:34.6844 reduced chunksize to 6373 for metadata 2007-05-15 10:43:34.6848 would have blocked, will try again later 2007-05-15 10:43:34.7359 reduced chunksize to 6373 for metadata 2007-05-15 10:43:34.7362 would have blocked, will try again later 2007-05-15 10:43:34.7979 reduced chunksize to 6373 for metadata 2007-05-15 10:43:34.7983 Read 6373 bytes from source 2007-05-15 10:43:34.7985 read a chunk of 6373 length 2007-05-15 10:43:34.7996 reduced chunksize to 8192 for metadata 2007-05-15 10:43:34.8001 Read 926 bytes from source 2007-05-15 10:43:34.8002 read a chunk of 926 length 2007-05-15 10:43:34.8013 reduced chunksize to 7266 for metadata 2007-05-15 10:43:34.8017 would have blocked, will try again later 2007-05-15 10:43:34.8600 reduced chunksize to 7266 for metadata 2007-05-15 10:43:34.8603 would have blocked, will try again later 2007-05-15 10:43:34.9244 reduced chunksize to 7266 for metadata 2007-05-15 10:43:34.9248 would have blocked, will try again later 2007-05-15 10:43:34.9851 reduced chunksize to 7266 for metadata 2007-05-15 10:43:34.9855 Read 6428 bytes from source 2007-05-15 10:43:34.9857 read a chunk of 6428 length 2007-05-15 10:43:34.9869 reduced chunksize to 838 for metadata 2007-05-15 10:43:34.9873 would have blocked, will try again later 2007-05-15 10:43:35.0476 reduced chunksize to 838 for metadata 2007-05-15 10:43:35.0480 Read 838 bytes from source 2007-05-15 10:43:35.0482 read a chunk of 838 length 2007-05-15 10:43:35.0491 reduced chunksize to 8192 for metadata 2007-05-15 10:43:35.0495 Read 3541 bytes from source 2007-05-15 10:43:35.0497 read a chunk of 3541 length 2007-05-15 10:43:35.0508 reduced chunksize to 4651 for metadata 2007-05-15 10:43:35.0511 would have blocked, will try again later 2007-05-15 10:43:35.1100 reduced chunksize to 4651 for metadata 2007-05-15 10:43:35.1103 would have blocked, will try again later 2007-05-15 10:43:35.1725 reduced chunksize to 4651 for metadata 2007-05-15 10:43:35.1729 Read 4651 bytes from source 2007-05-15 10:43:35.1731 read a chunk of 4651 length 2007-05-15 10:43:35.1742 reduced chunksize to 8192 for metadata 2007-05-15 10:43:35.1746 Read 4108 bytes from source 2007-05-15 10:43:35.1749 read a chunk of 4108 length 2007-05-15 10:43:35.1760 reduced chunksize to 4084 for metadata 2007-05-15 10:43:35.1764 Read 1460 bytes from source 2007-05-15 10:43:35.1766 read a chunk of 1460 length 2007-05-15 10:43:35.1777 reduced chunksize to 2624 for metadata 2007-05-15 10:43:35.1780 would have blocked, will try again later 2007-05-15 10:43:35.2350 reduced chunksize to 2624 for metadata 2007-05-15 10:43:35.2354 Read 2624 bytes from source 2007-05-15 10:43:35.2356 read a chunk of 2624 length 2007-05-15 10:43:35.2367 reduced chunksize to 8192 for metadata 2007-05-15 10:43:35.2371 Read 4379 bytes from source 2007-05-15 10:43:35.2373 read a chunk of 4379 length 2007-05-15 10:43:35.2384 reduced chunksize to 3813 for metadata 2007-05-15 10:43:35.2388 would have blocked, will try again later 2007-05-15 10:43:35.2973 reduced chunksize to 3813 for metadata 2007-05-15 10:43:35.2976 Read 2920 bytes from source 2007-05-15 10:43:35.2978 read a chunk of 2920 length 2007-05-15 10:43:35.2988 reduced chunksize to 893 for metadata 2007-05-15 10:43:35.2992 would have blocked, will try again later 2007-05-15 10:43:35.3599 reduced chunksize to 893 for metadata 2007-05-15 10:43:35.3603 Read 893 bytes from source 2007-05-15 10:43:35.3605 read a chunk of 893 length 2007-05-15 10:43:35.3615 reduced chunksize to 8192 for metadata 2007-05-15 10:43:35.3618 Read 7866 bytes from source 2007-05-15 10:43:35.3621 read a chunk of 7866 length 2007-05-15 10:43:35.3631 reduced chunksize to 326 for metadata 2007-05-15 10:43:35.3636 would have blocked, will try again later 2007-05-15 10:43:35.4009 songTime: rate:1 -songtime:0 -startStream:0 2007-05-15 10:43:35.4017 songTime: rate:1 -songtime:0 -startStream:0 2007-05-15 10:43:35.4462 songTime: rate:1 -songtime:0 -startStream:0 2007-05-15 10:43:35.5063 reduced chunksize to 326 for metadata 2007-05-15 10:43:35.5067 Read 326 bytes from source 2007-05-15 10:43:35.5069 read a chunk of 326 length 2007-05-15 10:43:35.5082 reduced chunksize to 8192 for metadata 2007-05-15 10:43:35.5088 Read 8192 bytes from source 2007-05-15 10:43:35.5090 read a chunk of 8192 length 2007-05-15 10:43:35.5111 reduced chunksize to 8192 for metadata 2007-05-15 10:43:35.5115 Read 4946 bytes from source 2007-05-15 10:43:35.5117 read a chunk of 4946 length 2007-05-15 10:43:35.5131 reduced chunksize to 3246 for metadata 2007-05-15 10:43:35.5134 would have blocked, will try again later 2007-05-15 10:43:35.5681 reduced chunksize to 3246 for metadata 2007-05-15 10:43:35.5685 Read 2920 bytes from source 2007-05-15 10:43:35.5687 read a chunk of 2920 length 2007-05-15 10:43:35.5699 reduced chunksize to 326 for metadata 2007-05-15 10:43:35.5703 would have blocked, will try again later 2007-05-15 10:43:35.6392 reduced chunksize to 326 for metadata 2007-05-15 10:43:35.6396 metadata: StreamTitle='Tori_Amos_-_Sleeps_With_Butterflies';StreamUrl='http://megastacja.net';
The question here is whether the url is mysteriously changing or the content of the stream. If the latter, this isn't a slimserver bug.
Changed the target to 7.0.
Now the "on air POWER webcast - 24 hours a day Chinese radio station" is "(#1 - 1/32) FM Open Buenos Aires Argentina".
"Big B Radio - The Only Hot Station for Asian Music" link is playing "(#1 - 4/68) Estacion OnLine, Chile, Argentina, Peru, Bolivia, Colombia, Mexico (www.Productoraglobal.com)". All links in "Home / SHOUTcast Internet Radio / By Genre / Chinese" page are streamming Latin American stations this afternoon. How can one check "whether the url is mysteriously changing or the content of the stream" changed? Great music, by the way.
It is the URL that had changed. When the link "on air POWER webcast - 24 hours a day Chinese radio station" is clicked, the next page shows the following info. FM Open Buenos Aires Argentina Home / SHOUTcast Internet Radio / By Genre / Clasicos / FM Open Buenos Aires Argentina Play this song Add this song to the playlist Title: FM Open Buenos Aires Argentina URL: http://www.shoutcast.com/sbin/tunein-station.pls?id=54537&filename=playlist.pls Bitrate: 32 kbps Number of listeners: 2 Genre: Pop Dance Clasicos
hmm. I wonder if this could indicate a fundamental flaw. Shoutcast uses xmlbrowser, which refers to index numbers for the items at each level. In this case, at this time the link to descend on the chinese station is: http://phobos:9000/fishbone/plugins/ShoutcastBrowser/index.html?index=0.48.4 If the server ui is caching the xml, or if the page is left idle for a long time, shoutcast might perhaps change its listings and if we request the real url based on our local index, the url at that index may no longer be the same.
yup, easily reproduced by using leaving the track info page for a while, and refreshing an hour later.
0.48.4 is now: Pop Fusion Radio. Your Hit Music Channel
I think the way to fix this is probably to not refresh the cached xml when accessing any links below the top level. Yes, it means missing updated items and some may not work, but users can always go back to the top when they want to get updated. Otherwise, we'd have to set timers to update the web page and relocate the user to the new index to match what they've chosen. Offhand, that seems to be not an easy task at all. What do you think, Andy?
Yep it's definitely a bug with XMLBrowser pulling updated data. I think KDF's suggestion to not refresh things below the top level is the only workable solution, anything else would require a rethink of how XMLBrowser works.
Should this be targeted for 7.0 Andy?
*** Bug 7928 has been marked as a duplicate of this bug. ***
This should now be fixed.
This bug has been fixed in the 7.3.3 release version of SqueezeCenter! If you haven't already. please download the new version from http://www.logitechsqueezebox.com/support/download-squeezecenter.html If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.