Bug 8861 - Many (short) tracks are not playing in new-streaming (Work in 7.1)
: Many (short) tracks are not playing in new-streaming (Work in 7.1)
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Streaming From SlimServer
: 7.2-new-streaming
: PC Windows Vista
: -- normal (vote)
: 7.x
Assigned To: Alan Young
:
Depends on: 9125
Blocks:
  Show dependency treegraph
 
Reported: 2008-07-24 15:44 UTC by Wallace Lai
Modified: 2009-07-31 10:25 UTC (History)
2 users (show)

See Also:
Category: ---


Attachments
One of the tracks that no longer works. (19.90 KB, audio/mpeg)
2008-07-24 15:46 UTC, Wallace Lai
Details
One of the very few tracks that still stream. (340.23 KB, application/octet-stream)
2008-07-24 15:47 UTC, Wallace Lai
Details
server log for this bug. (23.85 KB, application/octet-stream)
2008-07-24 16:21 UTC, Wallace Lai
Details
scanner.log for this bug. (163 bytes, application/octet-stream)
2008-07-24 16:21 UTC, Wallace Lai
Details
sumamry report for the auto streamming tests (37.31 KB, text/plain)
2008-07-24 16:28 UTC, Wallace Lai
Details
Comparison of 7.1 results vs new streaming results (5.55 KB, application/pdf)
2008-07-25 09:42 UTC, Chris Owens
Details
Streamming Tests Summary for SqueezeCenter-7.2-22118.exe. (38.67 KB, text/plain)
2008-07-25 13:28 UTC, Wallace Lai
Details
log file (7.92 KB, text/plain)
2008-09-02 17:35 UTC, Jim McAtee
Details
bad flac file (4.85 KB, audio/x-flac)
2008-09-04 09:21 UTC, Jim McAtee
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wallace Lai 2008-07-24 15:44:09 UTC
System Info:  Dell Optiplex GX620, Vista, ENU, 1014 MB of RAM, P4 3.19 GHz

Note:  This bug was found by AutoTestsSystem, and has been confirmed manually.

Steps to Reproduce:
1.  Download SqueezeCenter-7.2-22048.exe from this particular web site:  http://www.slimdevices.com/downloads/nightly/latest/boom/
(Please do not use builds from other places.  Builds from other download sites may not have the same problem.)
2.  Install it on Vista.
3.  Play the attached flac track.  It streams fine.
4.  Play the attached mp3 track.  Notice no sound comes out at all.
5.  Play the same mp3 track on an XP with 7.1.  It sounds fine.
6.  It is not just mp3 tracks not playing.  Oggs, flacs, as well as wavs tht are OK before are no longer playing on 7.2.  Among the 146 tracks the AutoTestsSystem streams, only 15 are passing.  It used to about 110 would pass, and only 30 or so failed.
Comment 1 Wallace Lai 2008-07-24 15:46:01 UTC
Created attachment 3675 [details]
One of the tracks that no longer works.
Comment 2 Wallace Lai 2008-07-24 15:47:19 UTC
Created attachment 3676 [details]
One of the very few tracks that still stream.
Comment 3 Wallace Lai 2008-07-24 16:21:35 UTC
Created attachment 3677 [details]
server log for this bug.
Comment 4 Wallace Lai 2008-07-24 16:21:54 UTC
Created attachment 3678 [details]
scanner.log for this bug.
Comment 5 Wallace Lai 2008-07-24 16:28:26 UTC
Created attachment 3679 [details]
sumamry report for the auto streamming tests

As can be seen on this sumamry report for the auto streamming tests, besides a few flac files, all oggs, wavs, mp3s and some flacs are not streamming.  The expected length of the sound should have been about 10 seconds.  They are mostly 0, because no sound came of them.
Comment 6 Wallace Lai 2008-07-24 16:44:03 UTC
Since the build was from http://www.slimdevices.com/downloads/nightly/latest/boom/, is it 7.2-new-streamming, or just 7.2?

7.2-new-streamming was selected.  If that is not correct, please feel free to change.
Comment 7 Wallace Lai 2008-07-25 08:18:38 UTC
This problem is found on XP also.
Comment 8 Chris Owens 2008-07-25 09:42:47 UTC
Created attachment 3680 [details]
Comparison of 7.1 results vs new streaming results
Comment 9 Wallace Lai 2008-07-25 13:25:53 UTC
With new streamming removed from 7.2, this bug is no longer seen on this release.  Verified with SqueezeCenter-7.2-22118.exe.  Among the 146 tracks, 101 passed.  Only 45 failed.

Please see the attached summary of streamming tests resutls.

However, since new streamming is to be moved to 7.3, this bug is not to be closed until the fix is verified in 7.3.
Comment 10 Wallace Lai 2008-07-25 13:28:20 UTC
Created attachment 3683 [details]
Streamming Tests Summary for SqueezeCenter-7.2-22118.exe.
Comment 11 Alan Young 2008-08-16 08:19:11 UTC
The problem was almost certainly a result of the test tracks being short. This should now be fixed for all but obscure cases where two short tracks follow each other (change 22690 and change 22081). A fix to bug 9125 should resolve those edge cases. Please retest with new-streaming when you get a chance.
Comment 12 Wallace Lai 2008-08-19 10:26:01 UTC
Tested again with today's 7.2 exe build -- SqueezeCenter-7.2-22765.exe.  None of the 10 seconds test tracks works now.  Not just some or most.  A new bug had to be logged because it is so serious -- bug #9207.
Comment 13 Alan Young 2008-08-29 03:06:29 UTC
*** Bug 8802 has been marked as a duplicate of this bug. ***
Comment 14 Jim McAtee 2008-08-29 10:45:03 UTC
(In reply to comment #11)
> The problem was almost certainly a result of the test tracks being short. This
> should now be fixed for all but obscure cases where two short tracks follow
> each other (change 22690 and change 22081).

That's not really what I'm seeing with the most recent rev.  Any transition into a track under 5 seconds in length still hangs.
Comment 15 Alan Young 2008-08-30 00:27:23 UTC
Yes, transitions into a short track, while already playing, is the remaining problem case. It is not actually the real-time duration of the track that is relevant; rather, the size of the byte-stream. Code in Squeezebox.pm attempts to compensate for this (by reducing the buffering threshold), if it knows the byte-stream length, but this does not take into account the possibility of more than 1KBs worth of non-transmitted header data (ID3 tags, etc.), or when otherwise starting at some offset into the underlying file (after seeking, or using CUE sheets).

The old streaming code used to force a resume when SC had finished sending the stream. No account was taken as to whether the player had actually received the data, which could still have been sitting in network buffers. Consequently, this sometimes lead to premature output-buffer-underrun events.

I have just checked in change 22975. Would you like to this is this resolves the remaining cases for you?
Comment 16 Jim McAtee 2008-09-02 17:35:15 UTC
Created attachment 3928 [details]
log file

I'm not sure if this is fixed and I'm seeing another problem or what.  See the attached log.  Short files generally seem to play now, but I can virtually lock up the server by trying to play something else _while_ a short track is playing.

One major oddity - and I've actually seen this in the past under different circumstances - is that when the server goes into the weeds, it loads the **entire** library into the playlist in what looks to be trackid order.
Comment 17 Alan Young 2008-09-04 02:03:49 UTC
Jim, I need the bit for that log running up to the problem. Maybe even player.source=debug. Alan.
Comment 18 Jim McAtee 2008-09-04 09:21:19 UTC
Created attachment 3944 [details]
bad flac file

(In reply to comment #17)
> Jim, I need the bit for that log running up to the problem. Maybe even
> player.source=debug. Alan.

I'm afraid I don't have it any longer, but I would have included any lines from the log with timestamps immediately preceding the errors.

I've turned on player.source debugging, although haven't been able to recreate the big dump that SqueezeCenter was taking before, just the freezing.  I think I may have narrowed down the remaining problem to a bad track in my library - looks like a last track on an album that wasn't ripped correctly.  I've uploaded it here.
Comment 19 Alan Young 2008-09-05 05:30:37 UTC
So far I have been unable to reproduce your latest problem.
Comment 20 Alan Young 2008-09-18 09:27:20 UTC
Jim, can you still reproduce this with the latest build?
Comment 21 Jim McAtee 2008-09-18 10:20:21 UTC
Seems to be cleared up, so long as transcoding isn't used.

With transcoding it's a different story.  That crazy failure mode is back - queueing up and playing all the tracks in the library.  Is there actually some code somewhere that says "When all else fails, play EVERYTHING starting with track #1 in the tracks table"?  Not very friendly, as it effectively locks up the server for a long period just to add everything to the playlist.
Comment 22 Alan Young 2008-09-18 10:40:05 UTC
Jim, that seems a little different from the original problem. Please can you open a new bug for that, along with a log that illustrates the thing going wild?

And thanks a lot for testing this so much. I'm going to close this bug.
Comment 23 James Richardson 2008-12-15 12:05:35 UTC
This bug has been fixed in the 7.3.0 release version of SqueezeCenter!

Please download the new version from http://www.slimdevices.com/su_downloads.html if you haven't already.  

If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.
Comment 24 Chris Owens 2009-07-31 10:25:23 UTC
Reduce number of active targets for SC