6.1 webplayer hangs on long tracks when transcoding

Post your Server Bug Report
garyo
Posts: 51
Joined: 10 Sep 2015, 01:47
Has thanked: 8 times
Been thanked: 17 times

6.1 webplayer hangs on long tracks when transcoding

Unread post by garyo »

I'm running 6.1.8150 in a FreeNAS jail. Since the previous 6.1 (which was my first try with the HTML player), the HTML web player plays ogg/flac files fine for the first 4 or so minutes, then hangs up for 10-20 sec, plays a few sec more, then hangs again, plays again, and so on to the end of the track. A streaming Android player does the same thing, but DSub which pre-caches tracks is fine. The log file looks to me like the ffmpeg process exits or it thinks it's done playing or something, but there's not a lot of detail. There are no actual errors in the log, just repeated "starting transcoder"/"listening to" the same track once it starts doing this. It only happens for non-mp3 (transcoded) tracks longer than about 4 min.

My ffmpeg is built from latest github source (I've tried a few different versions, no difference). If I just run the ffmpeg command from the log (piped to a file or /dev/null), it runs to completion, exit status 0. If I remove the "-v 0" all the stderr output looks correct, and it runs very fast (much faster than realtime). So I don't really suspect my ffmpeg, I guess I suspect something in the new HTML player.

Looking at the client's Javascript console (I'm running Chrome on Linux, but this happens on Windows Chrome too), I see this error every time it happens:

Code: Select all

http://my-domain:4040/stream?player=6&id=4981&auth=XXXXXXXX Failed to load resource: net::ERR_CONTENT_LENGTH_MISMATCH
so I think that's significant.
Last edited by garyo on 16 May 2016, 21:51, edited 1 time in total.
These users thanked the author garyo for the post:
boco
Rating: 7.69%
Zetlali
Posts: 7
Joined: 09 May 2013, 21:28
Has thanked: 1 time
Been thanked: 6 times

Re: 6.1 web player hangs on long tracks when transcoding

Unread post by Zetlali »

Actually I've noticed this issue as well. Once the issue happens, it plays just 5 seconds and then starts again from the same spot. It doesn't happen on every song over 4 minutes, I think its actually a size limitation.
pr0tagonist
Posts: 6
Joined: 27 May 2014, 13:42
Has thanked: 0
Been thanked: 4 times

Re: 6.1 web player hangs on long tracks when transcoding

Unread post by pr0tagonist »

I have the same problem!
garyo
Posts: 51
Joined: 10 Sep 2015, 01:47
Has thanked: 8 times
Been thanked: 17 times

Re: 6.1 web player hangs on long tracks when transcoding

Unread post by garyo »

One thing I saw online said this can happen due to the web server timing out while serving the request, if the client is only processing the data slowly (as this player appears to do). Solutions to that (if it is the problem) would include extending the server timeout, or (better) the player making multiple small requests or caching locally.
These users thanked the author garyo for the post:
Zetlali
Rating: 7.69%
Zetlali
Posts: 7
Joined: 09 May 2013, 21:28
Has thanked: 1 time
Been thanked: 6 times

Re: 6.1 web player hangs on long tracks when transcoding

Unread post by Zetlali »

Timeouts are going to be double annoying for me because I use a reverse proxy. Adding an extended timeout to my apache reverse proxy didn't seem to change anything. I then went and added a ridiculous timeout value to the end of web.xml.

Code: Select all

<!--
All session-config, mime-mapping, welcome-file-list, error-page, taglib,
resource-ref, security-constraint, login-config, security-role,
env-entry, and ejb-ref elements should follow this fragment.
-->

	<session-config>
		<session-timeout>600</session-timeout>
	</session-config>

</web-app>
I don't have much experience with jetty, but I believe this is the correct way to do this. I played a song that I was consistently reproducing the issue on and it played all the way through. Doing extended testing now to see if this indeed fixes the issue. I'll update my post if this works.

Edit: Nope this didn't work.
garyo
Posts: 51
Joined: 10 Sep 2015, 01:47
Has thanked: 8 times
Been thanked: 17 times

Re: 6.1 web player hangs on long tracks when transcoding

Unread post by garyo »

The new release 6.1.8190 seems to fix this for me, thanks! At least on a couple of long tracks I've tried so far.
These users thanked the author garyo for the post:
Madsonic
Rating: 7.69%
pr0tagonist
Posts: 6
Joined: 27 May 2014, 13:42
Has thanked: 0
Been thanked: 4 times

Re: 6.1 web player hangs on long tracks when transcoding

Unread post by pr0tagonist »

Upgraded to 6.1.8190, but nothing changed :(
These users thanked the author pr0tagonist for the post:
boco
Rating: 7.69%
garyo
Posts: 51
Joined: 10 Sep 2015, 01:47
Has thanked: 8 times
Been thanked: 17 times

Re: 6.1 web player hangs on long tracks when transcoding

Unread post by garyo »

Unfortunately I agree, it's still happening for me too, even on 6.1.8190.
pr0tagonist
Posts: 6
Joined: 27 May 2014, 13:42
Has thanked: 0
Been thanked: 4 times

Re: 6.1 web player hangs on long tracks when transcoding

Unread post by pr0tagonist »

6.1.8220
Problem still exists.
These users thanked the author pr0tagonist for the post:
boco
Rating: 7.69%
Zetlali
Posts: 7
Joined: 09 May 2013, 21:28
Has thanked: 1 time
Been thanked: 6 times

Re: 6.1 web player hangs on long tracks when transcoding

Unread post by Zetlali »

I've actually gone back to the flash player until this is resolved.
pr0tagonist
Posts: 6
Joined: 27 May 2014, 13:42
Has thanked: 0
Been thanked: 4 times

Re: 6.1 web player hangs on long tracks when transcoding

Unread post by pr0tagonist »

Problem was solved in 6.1.8260. Thanks!
These users thanked the author pr0tagonist for the post:
Madsonic
Rating: 7.69%
garyo
Posts: 51
Joined: 10 Sep 2015, 01:47
Has thanked: 8 times
Been thanked: 17 times

Re: 6.1 webplayer hangs on long tracks when transcoding [sol

Unread post by garyo »

I thought it was fixed too, in 6.1.8280.4b123ec.20160505.0739, but now it's still happening to me on ogg tracks. :-(
garyo
Posts: 51
Joined: 10 Sep 2015, 01:47
Has thanked: 8 times
Been thanked: 17 times

Re: 6.1 webplayer hangs on long tracks when transcoding

Unread post by garyo »

Bump -- any further ideas on this, anyone? Happens to me on all ogg and flac tracks, even with latest version.
These users thanked the author garyo for the post:
boco
Rating: 7.69%
User avatar
Madsonic
Administrator
Administrator
Posts: 984
Joined: 07 Dec 2012, 03:58
Answers: 7
Has thanked: 1201 times
Been thanked: 470 times

Re: 6.1 webplayer hangs on long tracks when transcoding

Unread post by Madsonic »

please can you send me an example for recheck?

best regards
garyo
Posts: 51
Joined: 10 Sep 2015, 01:47
Has thanked: 8 times
Been thanked: 17 times

Re: 6.1 webplayer hangs on long tracks when transcoding

Unread post by garyo »

I sent you a PM with a file that causes the problem.

-- Gary
Madevil wrote:please can you send me an example for recheck?

best regards
garyo
Posts: 51
Joined: 10 Sep 2015, 01:47
Has thanked: 8 times
Been thanked: 17 times

[SOLVED] Re: 6.1 webplayer hangs on long tracks when transco

Unread post by garyo »

I can confirm that this is fixed as of the next version (when that's available). Do a full rescan and then ogg and flac tracks will have the correct content lengths and will play just fine!
These users thanked the author garyo for the post:
Madsonic
Rating: 7.69%
Post Reply