Bug 2195 - Tracks played directly from MMM Application (v1.1.5 and 1.1.6) occasionally halt and stutter.
: Tracks played directly from MMM Application (v1.1.5 and 1.1.6) occasionally h...
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: MusicIP
: 6.2.0
: PC Windows XP
: P2 normal (vote)
: Future
Assigned To: Dan Sully
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-09-25 12:56 UTC by yann oehl
Modified: 2008-12-15 13:07 UTC (History)
2 users (show)

See Also:
Category: ---


Attachments
log file (33.59 KB, text/plain)
2005-09-26 20:05 UTC, yann oehl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yann oehl 2005-09-25 12:56:03 UTC
Tracks played directly from MMM Application (v1.1.5 and 1.1.6) occasionally halt
and stutter. Symptoms appear similiar to the "multiple decoders working at once"
issue described by Triode re: AlienBBC. Dunno. 

Pausing or rewinding the stuttering track seems to fix the problem (buffer
issue?)Problem seems intermittent, but seems to occur more regularly when a
playlist or track is already loaded and playing.

Haven't yet checked CPU usage at time of problem.
Comment 1 KDF 2005-09-25 21:47:50 UTC
more likely a cpu overuse from mmm and slimserver running at the same time.  mmm
slimply uses the cli to tell slimserver what to play.  there is effectively NO
difference between that and the remote telling slimserver what to play, or even
the web UI.

are these mp3 files, or transcoded files?
Comment 2 yann oehl 2005-09-26 07:06:21 UTC
Kdf,
These are all FLAC file. As ar as I know no transcoding is occuring... FLAC is
set to <built in>
Comment 3 yann oehl 2005-09-26 08:20:30 UTC
Additional note:
Sending files one at a time from the MMM ap works perfectly (double clicking on
a song). This used to cause MMM to stop responding in 1.1.5, apperently fixed in
1.1.6. The issue described above (halting and stuttering first track) only
occurs when a playlist of 10-30 tracks is sent to Slimserver. Still haven't had
a chance to check out CPU usage... will try to do so this eve.

Note: I'm running a 2.5Ghz Intel P4 with hyperthreading enabled and a Gig of RAM.
Comment 4 Blackketter Dean 2005-09-26 12:47:18 UTC
kdf: could it be that mmm is somehow blocking the process via the cli?
Comment 5 KDF 2005-09-26 13:14:16 UTC
I suppose its possible.  MMM could be using the HTML CLI, which would be
problematic.  I know they used to, and I had suggested using the direct CLI on
port 9090.  Wendell said he'd investigate. maybe they haven't changed over yet.
Comment 6 yann oehl 2005-09-26 19:21:53 UTC
Okay tried it again this eve. While the halting/stuttering was occuring slim.exe
CPU usage =did= spike up to 40% usage, and jumped around (from 10% to 40%) for
awhile (20-30 seconds or so) before  settling down to a stable (and stutter
free) 1%-3% usage. MMM usage was consistently 1-2% usage throughout. Memory
usage for Slim.exe stayed at 60,336k and MMM at 894k throughout.
Comment 7 KDF 2005-09-26 19:27:10 UTC
if you want to find out really what is going on, I suggest turning on d_command,
d_source, d_musicmagic, d_remotestream

and what happens if you play the same tracks using the remote control, or the
web UI for slimserver?

Comment 8 yann oehl 2005-09-26 20:05:43 UTC
Created attachment 863 [details]
log file
Comment 9 yann oehl 2005-09-26 20:08:05 UTC
No problem when played from web or player UI once the playlist is loaded.
Comment 10 KDF 2005-09-27 16:08:03 UTC
Tested on my setup, 1.4G P4 512MRam, MMM 1.1.6 and Softsqueeze.  I'm not seeing
any stuttering with plain mp3 fies, nor the few flac that I have on hand.
Softsqueeze has been reported as suffering from stuttering on its own, and does
so on web refreshes. Is the stuttering occurring on the hardware players, or in
time wiht web activity?

What is clear is that MMM is stull using the HTTP command access, via status.xml.


Comment 11 yann oehl 2005-09-27 18:02:40 UTC
I have not tested for stuttering in SoftSqueeze... only with my hardware player
(sb2).
Comment 12 yann oehl 2005-09-29 21:16:39 UTC
Just noticed something which may be critical. The peroid of stuttering equals
the time it takes for Slimserver to "load" the playlist sent to it from MMM...
as soon as all songs are loaded in the play queue... the tuutering stops (as
well as the Slim.exe CPU spike.)
Comment 13 KDF 2005-09-30 09:39:30 UTC
The method that MMM uses to send commands to slimserver (status.xml) is not the
most efficient option as far as controlling slimserver.  Since each song is
added with a command through status.xml, a long list will flood the server with
requests.  I'm not sure if MMM is pacing the commands or just bursting.  A long
playlist could effectively be a DOS
Comment 14 yann oehl 2005-10-02 21:32:19 UTC
So, is the general consensus that the halting and stuttering is due to the
inefficient method by which the MMM app sends playlists to Slimserver via status
.xml? Is there a solution or recommended alternative method? Has this info been
communicated to Whicken?
Comment 15 KDF 2005-10-02 21:45:47 UTC
1. One theory from one person does not a general consensus make.
2. I suggested the CLI to whicken before 1.1.5, and he said that he'd look into it.
3. even the http method might not be so bad if it was a shorter playlist.  feel free to test and report.
Comment 16 yann oehl 2005-10-03 07:21:53 UTC
What is odd (in my "ignorant of the inner workings" perspective) is that the
same exact playlist (say 30 tracks in size) will load and play without a hitch
when geberated within the Player UI and Web UI... but the same playlist
generated directly from MMM and sent to Slimserver (by pressing the "play
button" in the app) will cause slim.exe CPU use to spike and playback to
halt/stutter as the playlist =slowly= loads over.  
Comment 17 KDF 2005-10-03 08:55:20 UTC
This is not odd at all, since player and web UI issue a single play command.  MMM 'Get's status.xml 
once for each song.  This is the equivalent to reloading the 'now playing' section of the web ui several 
times in quick sucession.  The theory was a good one, as far as playing the first song quickly and 
loading eacf of the rest.  I dont know if the web server can be made light enough to handle this, or if 
that is even worth trying given the plan to move to apache.  I will re-iterate to Whicken re using the CLI.

Comment 18 KDF 2005-10-03 09:07:20 UTC
I have emailled whicken, suggesting CLI, and also scheduling the playlist load.  Since the first song 
starts playing right away, the other songs don't have to be loaded immediately.  They could be added 
every second or so, letting the web server process each playlist command.
Comment 19 Dan Sully 2005-10-12 00:00:55 UTC
I seem to recall seeing that MMM will have this fixed in their version 1.1.7?

kdf? Update?
Comment 20 KDF 2005-10-12 00:22:50 UTC
from wendell:

Thanks for the info - I made a note of this, although our dev schedule
for 1.1.7 is very tightly compressed right now, so I'm not sure what I
can fit in.  I've got a couple other slim related issues in progress
(a bug with multiple boxes, and the moods addition to the api),
so hopefully those will be able to make it in.

so, I'd call that a maybe.  I responded to this with a suggestion to maybe stagger the timing if they can't 
change the API in time.  at least that will allow time for the audio routines to pipe a bit more music 
through.  short term workaround, shorter playlists.
Comment 21 Dan Sully 2005-10-12 14:06:40 UTC
Ok - Since this is really in their court right now - I'm going to move the bug out of 6.2
Comment 22 yann oehl 2006-04-04 09:37:28 UTC
Fixed since MMM 1.5+
Comment 23 James Richardson 2008-12-15 13:07:03 UTC
This bug appears to have been fixed in the latest release!

If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.

Make sure to include the version number of the software you are seeing the error with.