Tidal Tracks cut before end since 1.3 [Fixed pending B197+]

When you’re playing from TIDAL, is it FLAC, or something else?

@brian: No, it’s AAC

This skipping of Tidal tracks has been happening to me too. Seems to be very bad with certain Tidal albums, and also certain Roon endpoints. The logs show the same error consistently: Warn: [prebuffer] in buffer threadSooloos.Audio.CorruptMediaException: Got UnsupportedFormat while reading from stream
at Sooloos.Audio.MediaDecoderAudioSignal.Read(Byte[] buffer, Int32 offset, Int32 frames)

This Tidal album fails consistently:
http://i.imgur.com/X1BBh3G.png
Here’s an extract from the log when playing the first track to my desktop PC as endpoint:

02/07 08:47:00 Trace: [tidal/http] GET https://api.tidalhifi.com/v1/tracks/69464985?countryCode=NL&sessionId=7bb6f866-88d7-470b-850a-f6cc83363b30& => Success
02/07 08:47:00 Info: [zoneplayer/base] Queueing: http://2f.audio-pop.tidal.com/b95c6c157b8f7e34a7f4c25d050fa6c1_37.m4a
02/07 08:47:00 Info: [zoneplayer/base]     Open Result (Playing):Result[Status=Success]
02/07 08:47:00 Info: [zoneplayer/base] Starting playback
02/07 08:47:00 Trace: [zoneplayer/raat] StartStream 350314905: Sooloos.Broker.Transport.RaatZonePlayer+Endpoint => StreamParams[SampleRate=44100, BitsPerSample=16, Channels=2, Layout=Stereo FrameCount=2737139] streamid=StreamParams[SampleRate=44100, BitsPerSample=16, Channels=2, Layout=Stereo FrameCount=2737139]
02/07 08:47:00 Trace: [transport/raatclient] SENT [6]{"request":"setup","format":{"sample_type":"pcm","sample_rate":44100,"bits_per_sample":16,"channels":2}}
02/07 08:47:01 Trace: [transport/raatclient] GOT [6] {"message":{"signal_path":[{"quality":"lossless","method":"wasapi_exclusive","type":"output"}]},"status":"OutputMessage"}
02/07 08:47:01 Info: 
--[ SignalPath ]---------------------------------------------
SignalPath Quality = LowQuality
Elements:
    Source Format=Aac 44100/16/2  Quality=LowQuality
    Raat Device=High Definition Audio Device
    Output OutputType=Local_ExclusiveMode_Wasapi Quality=Lossless
------------------------------------------------------------

02/07 08:47:01 Trace: [transport/raatclient] GOT [6] {"clock_port":57425,"audio_port":57426,"status":"Success"}
02/07 08:47:01 Trace: [zoneplayer/raat] Endpoint High Definition Audio Device State Changed: Idle => Prepared
02/07 08:47:01 Trace: [prebuffer] ready 149940/441000 (34%) @ 0/62 sec
02/07 08:47:01 Trace: [zoneplayer/raat] synced to endpoint clock. realtime=132954744 rtt=400us offset=-26405677630us delta=-26405677630us
02/07 08:47:01 Trace: [transport/raatclient] SENT [7]{"request":"stream","stream_id":350314905,"first_seq":0,"nak_port":59406,"buffer_size":2}
02/07 08:47:01 Trace: [transport/raatclient] GOT [7] {"status":"Buffering"}
02/07 08:47:01 Trace: [zoneplayer/raat] Endpoint High Definition Audio Device State Changed: Prepared => Buffering
02/07 08:47:01 Trace: [raat/audiosource] setting stream bitrate to 1411200 (2822400 with headroom)
02/07 08:47:01 Trace: [zoneplayer/raat] [zoneplayer/raat] selected High Definition Audio Device as clock master
02/07 08:47:01 Trace: [prebuffer] status 441000/441000 (100%) @ 0/62 sec
02/07 08:47:01 Trace: [transport/raatclient] GOT [7] {"status":"Ready"}
02/07 08:47:01 Trace: [zoneplayer/raat] Endpoint High Definition Audio Device State Changed: Buffering => Ready
02/07 08:47:01 Trace: [zoneplayer/raat] wait for ready in 61ms
02/07 08:47:01 Trace: [zoneplayer/raat] Starting at streamsample 0 and time 252048015 min_offset=120ms offset=150ms
02/07 08:47:01 Trace: [transport/raatclient] SENT [8]{"request":"start","time":352955044,"stream_sample":0}
02/07 08:47:01 Trace: [zoneplayer/raat] Endpoint High Definition Audio Device State Changed: Ready => Playing
02/07 08:47:01 Trace: [transport/raatclient] GOT [7] {"status":"Playing"}
02/07 08:47:01 Trace: [streamingmediafile] finished caching http://4d.audio-pop.tidal.com/76cfb45f675745bb5962ae57f56b6ba0_37.m4a
02/07 08:47:01 Trace: [transport/raatclient] GOT [8] {"status":"Success"}
02/07 08:47:01 Info: [zoneplayer/base] Open result (Queueing): Result[Status=Success]
02/07 08:47:01 Trace: [prebuffer] ready 149940/441000 (34%) @ 0/317 sec
02/07 08:47:03 Trace: [streamingmediafile] finished caching http://2f.audio-pop.tidal.com/b95c6c157b8f7e34a7f4c25d050fa6c1_37.m4a
02/07 08:47:06 Trace: [prebuffer] status 441000/441000 (100%) @ 7/62 sec
02/07 08:47:06 Info: [stats] 1917mb Virtual, 918mb Physical, 584mb Managed, 2237 Handles, 88 Threads
02/07 08:47:11 Trace: [prebuffer] status 441000/441000 (100%) @ 12/62 sec
02/07 08:47:16 Trace: [prebuffer] status 441000/441000 (100%) @ 17/62 sec
02/07 08:47:21 Trace: [prebuffer] status 441000/441000 (100%) @ 22/62 sec
02/07 08:47:21 Info: [stats] 1909mb Virtual, 916mb Physical, 588mb Managed, 2240 Handles, 86 Threads
02/07 08:47:26 Trace: [prebuffer] status 441000/441000 (100%) @ 27/62 secWarn: [prebuffer] in buffer threadSooloos.Audio.CorruptMediaException: Got UnsupportedFormat while reading from stream
   at Sooloos.Audio.MediaDecoderAudioSignal.Read(Byte[] buffer, Int32 offset, Int32 frames)

02/07 08:47:31 Trace: [zoneplayer/raat] sync High Definition Audio Device: realtime=30287665665 rtt=0us offset=-26405677132us delta=2405us drift=498us in 30.1542126s (16.526ppm, 59.493ms/hr)
02/07 08:47:31 Trace: [prebuffer] status 441000/441000 (100%) @ 32/62 sec
02/07 08:47:36 Trace: [prebuffer] status 441000/441000 (100%) @ 37/62 sec
02/07 08:47:36 Info: [stats] 1913mb Virtual, 931mb Physical, 601mb Managed, 2213 Handles, 87 Threads
02/07 08:47:42 Trace: [prebuffer] status 441000/441000 (100%) @ 42/62 sec
02/07 08:47:47 Trace: [prebuffer] status 441000/441000 (100%) @ 47/62 sec
02/07 08:47:47        at Sooloos.Audio.SeekableBufferedAudioSignal._Buffer(Int32 buffer_seq)
   at Sooloos.Audio.SeekableBufferedAudioSignal.<>c__DisplayClass6.<_StartBuffering>b__4()
02/07 08:47:47 Info: [zoneplayer/base] Track ended unexpectedly: Sooloos.Audio.BufferedReadException: error durring buffered read ---> Sooloos.Audio.CorruptMediaException: Got UnsupportedFormat while reading from stream
   at Sooloos.Audio.MediaDecoderAudioSignal.Read(Byte[] buffer, Int32 offset, Int32 frames)
   at Sooloos.Audio.SeekableBufferedAudioSignal._Buffer(Int32 buffer_seq)
   at Sooloos.Audio.SeekableBufferedAudioSignal.<>c__DisplayClass6.<_StartBuffering>b__4()
   --- End of inner exception stack trace ---
   at Sooloos.Audio.SeekableBufferedAudioSignal.Read(Byte[] buffer, Int32 offset, Int32 frames)
   at Sooloos.Broker.Transport.ZonePlayerTrack._Stream.ReadImp(AudioBuffer buf, Int32 nsamples)
   at Sooloos.Audio.AudioStream.Read(AudioBuffer buf, Int32 nsamples)
   at Sooloos.Broker.Transport.ZonePlayerBase.ReadImp(AudioBuffer buf, Int32 nsamples)
02/07 08:47:47 Warn: Track Stopped Due to Error
02/07 08:47:47 Info: [library] recorded play for profile 6a911c0d-2651-428f-9486-fb61c86f17dd: mediaid=168:0:69464984 metadataid= contentid=168:0:69464984 libraryid=
02/07 08:47:47 Warn: [music] GetExtendedTrackInfo: track 4134312 not found
02/07 08:47:47 Warn: [music] GetExtendedTrackInfo: track 4134312 not found
02/07 08:47:48 Trace: [tidal/http] GET https://api.tidalhifi.com/v1/tracks/69464985/streamurl?countryCode=NL&sessionId=7bb6f866-88d7-470b-850a-f6cc83363b30&soundQuality=HIGH => Success
02/07 08:47:48 Trace: [tidal/http] GET https://api.tidalhifi.com/v1/tracks/69464986/streamurl?countryCode=NL&sessionId=7bb6f866-88d7-470b-850a-f6cc83363b30&soundQuality=HIGH => Success
02/07 08:47:48 Trace: [tidal/http] GET https://api.tidalhifi.com/v1/tracks/69464985?countryCode=NL&sessionId=7bb6f866-88d7-470b-850a-f6cc83363b30& => Success
02/07 08:47:48 Info: [zoneplayer/base] Playing: http://2f.audio-pop.tidal.com/b95c6c157b8f7e34a7f4c25d050fa6c1_37.m4a
02/07 08:47:48 Trace: [zoneplayer/raat] Endpoint High Definition Audio Device State Changed: Playing => Prepared
02/07 08:47:48 Trace: [transport/raatclient] SENT [9]{"request":"end_stream"}
02/07 08:47:48 Info: [audio/env] [zoneplayer -> stream] All streams were disposed
02/07 08:47:48 Info: [audio/env] [zoneplayer -> stream -> endpoint] All streams were disposed
02/07 08:47:48 Trace: [transport/raatclient] GOT [7] {"status":"Ended"}
02/07 08:47:48 Trace: [tidal/http] GET https://api.tidalhifi.com/v1/tracks/69464986?countryCode=NL&sessionId=7bb6f866-88d7-470b-850a-f6cc83363b30& => Success
02/07 08:47:48 Info: [zoneplayer/base] Queueing: http://b1.audio-pop.tidal.com/4a67888e3a3b25ce32a649280730130a_37.m4a
02/07 08:47:48 Trace: [transport/raatclient] GOT [9] {"status":"Success"}
02/07 08:47:48 Info: [zoneplayer/base]     Open Result (Playing):Result[Status=Success]
02/07 08:47:48 Info: [zoneplayer/base] Starting playback
1 Like

I’ve experienced the same with AAC for this track:

Are you guys all running Windows cores?

I am. Intel NUC 6i3SYH with Windows 10 Pro.

Windows 10 Pro

I had two Tidal AAC tracks stop playing and then skip to the end and start the next que track last night as well, first time that happened to me. I think I played 5 tracks off the album and 3 played fine and 2 played about half and jumped to the end and then to the next que track. I did not check the logs and didn’t think any of it until I saw this thread. I run a dedicated audio PC, i7-6700k, windows 10 pro (Anniv build V693) with Roon 1.3 v196 core, HQP 3.15 and audio fidelizer. PC is connected direct to dac thru a uptone regen and AQ Jitterbug. Album was Odetta-Its Impossible, I can’t remember which tracks skipped as I am at work away from the Core.

I only run 1 zone, straight to my dac as described above.

I am too. W10.

Thank you all for the report, Brian was able to reproduce this issue. We have a ticket about that.

4 Likes

I have experienced it as well, indeed with mixed Tidal/local playlists, shuffled. I don’t recall if the Tidal or the local tracks were affected. I will pay more attention to it next time.

Roon core on Mac i7.

I am running a windows core, but I do not have the issue.

I’ve been testing the fix…I think this is fixed.

As far as I can see, this happens only when you combine TIDAL + AAC + Windows.

I had to use an alt TIDAL account to reproduce–since this album is in FLAC on my normal (HiFi) account. That’s why this was tricky to see at first.

3 Likes

:+1: Nice one. But more importantly: did you enjoy the listening session while fixing? :wink:

There’s no audio cables plugged into the DAC :stuck_out_tongue_winking_eye:

Sounds great, thank you.

Afraid I’ve still got the issue. 5 of 11 tracks didn’t complete. Tidal AAC to Squeezebox devices over Ethernet and WiFi on Windows 10. Restarted and Roon is telling me I have the latest build (version 1.3 build 196 64 bit). Any ideas?

Hi @pnamp – the fix for this issue hasn’t gone live yet. Can you let us know if you’re still seeing this once you’re running the next release?

Sure. No problem.

A post was split to a new topic: Tracks only play for 2 seconds