Unexpected end of stream

Not found how to get those upnp logs ?

But at least you can get the bubble one so I can see what he does even if it’s not using the same Plex server part.

Bubble log
log.txt (131.2 KB)

Ok so I can see some delays on the receiver internal state update leading to the issue.

Do you see some more gap between tracks with Bubble? I see that he waits for the state to be full stopped before next play.

More gap between tracks with Bubble compared to? I don’t exactly know what you mean by this :sweat_smile:

Delay between tracks

Not really, maybe half a second.

Well half a second is a delay :wink: So I guess I’ll have to see how I can better wait for the delayed status to occurs or find a way to ignore it without ignoring the real ones or the failures.

Won’t be fun :frowning:

Unfortunately, I can only offer you the best possible support in troubleshooting by providing logs and information.
If I can do something, let me know!

The joy of debugging device I don’t own :slight_smile:

Will send you an APK when I have something to test.

Here’s a very quick workaround with more logs to fine tune :slight_smile:

Yatse-beta-arm64-v8a-final.apk (8.7 MB)

In theory it should work but in all cases I’d need new logs with this one.

Can’t install this one. RootExplorer says: A problem occurred while parsing the package

Ho yes you are trying on the very old Android 5 :stuck_out_tongue:

Yatse-beta-armeabi-v7a-final.apk (8.5 MB)

Here’s the proper version.

Haha, yes I will be rocking my old phone till it dies :joy:
Here are the results using Yatse, the receiver and Plex Server:

  • First song (Ambitionz az a Ridah) works → skip to the next track
  • Second song (All Bout U) is skipped after about 10 seconds
  • Third track (Skandalouz) works → skip to the next track
  • Fourth (Got My Mind Made Up) works → skip to the next track
  • Fifth track (How Do U Want It) is skipped
  • Sixth track (2 of Amerikaz Most Wanted) is played again

debug-20210630_121700.zip (96.1 KB)

Well the logs shows that something happens outside Yatse between the renderer and Plex or inside the renderer :frowning:

I see the track playing including “How Do U Want It” then the receiver says it’s stopped out of nowhere.

		<u:GetPositionInfoResponse xmlns:u="urn:schemas-upnp-org:service:AVTransport:1">
			<TrackMetaData>&lt;DIDL-Lite xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sec="http://www.sec.co.kr/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"&gt;&lt;item restricted="1" parentID="0" id=""&gt;&lt;upnp:album&gt;All Eyez on Me&lt;/upnp:album&gt;&lt;upnp:class&gt;object.item.audioItem.musicTrack&lt;/upnp:class&gt;&lt;upnp:genre&gt;Rap&lt;/upnp:genre&gt;&lt;upnp:artist&gt;2Pac&lt;/upnp:artist&gt;&lt;res duration="0:04:47.000" protocolInfo="http-get:*:audio/flac:DLNA.ORG_FLAGS=01500000000000000000000000000000;DLNA.ORG_CI=0;DLNA.ORG_OP=01"&gt;;/res&gt;&lt;upnp:originalTrackNumber&gt;5&lt;/upnp:originalTrackNumber&gt;&lt;upnp:albumArtURI&gt;;/upnp:albumArtURI&gt;&lt;dc:title&gt;How Do U Want It&lt;/dc:title&gt;&lt;/item&gt;&lt;/DIDL-Lite&gt;</TrackMetaData>

Receiver says it’s correctly playing How Do U Want It and it’s already played 15 seconds of it.

Then when asking again it’s status it says:

		<u:GetTransportInfoResponse xmlns:u="urn:schemas-upnp-org:service:AVTransport:1">

That it’s currently stopped. Reason why Yatse start the next track since the previous one ended.

I’ll try to send you later an ugly hack that do a few more state ask before skipping so we can see if it’s really the receiver that stops on itself or just that it returns randomly invalid state.

I don’t know if it shows additional information for you but I shot a video so you can get a better picture of what’s happening.
As you can see the unexpected skipping happens “randomly” . I start playing the album and wait until the 20 seconds timestap and then skip the track. When the unexpected skip happens, the percentage bottom left goes down slowly after 15 seconds; which is normal behaviour at the end of a song.


Ok so yes from the video it clearly shows that it’s the receiver that stops playing by itself and it’s not a false status that is sent back to Yatse :frowning:

Since it happens randomly I have no idea of the cause.

You can try to download the songs to your phone via Yatse then cast from Yatse to the receiver from the local files with plex off.

If it works then it’s a Plex thing on it’s web server, if it does not then maybe there will be some more details in Yatse logs from what the receiver does with the web server.

How do I make sure that Yatse picks the downlaoded tracks?

In left menu switch to local device is the easiest.

Else shutdown plex :stuck_out_tongue:

Oha, that’s easy :see_no_evil:

So no strange skipping:
debug-20210630_145001.zip (66.7 KB)

Ok so Yatse works well and there’s a bug in Plex web server or on the receiver when talking to plex web server not much I can do here.
You need to triple check the Plex logs when there’s the stops to see what is going on.

Only workaround would be that Yatse proxy the stream but that would slow things down and kill battery.

I guess adding Kodi as intermediary server would also fix the issue.