Tidal songs sometimes skip with cachingseekableurimediafile System.ArgumentException

Core Machine (Operating system/System info/Roon build number)

My Roon Core is Synology DS918+ NAS, running the latest version 1.8 (Build 778). The operating system is DSM 6.2.2 (DSM 6.2.3 is the latest). The Roon Server is from https://roononnas.org/de/synology-2 (latest version 2021-03-08).

My DAC is Chord Hugo TT 2 connected to a Macbook Pro 15" 2018 running OS X 10.15.7 (Catalina) with Roon at the latest version 1.8 (Build 778).

Network Details (Including networking gear model/manufacturer and if on WiFi/Ethernet)

Synology DS918+ (Roon Core) connected to Ubiquiti Switch UniFi USW-PRO-24 via 1GB/s RJ45, that is connected to Ubiquiti UniFi Dream Machine Pro via 10 GB/s SFP+. This is on my home network, that has 10 GB/s symmetric uplink/downlink from my internet provider.

As far as my DAC goes, it is connected via USB C to USB B cable directly to my Macbook, which is connected to the same switch via USB C / Thunderbolt to RJ45 network adapter. I tried also using WiFi, but there was no difference (the same issue persists).

Audio Devices (Specify what device you’re using and its connection type - USB/HDMI/etc.)

Chord Hugo TT2 DAC, but I have tried my other DAC as well, Chord Hugo 2 and the same exact problem. Also tried using a different cable and different “client device” being my iPad and the same issue persists.

Description Of Issue

Every now and then (roughly every 5-7 songs, 15-30 minutes) my current playing track just stops and off a new track goes. This sometimes happens in the first 15-30 seconds, other times in the middle of the songs, and I have had that happen towards the end too (but less often).

I noticed this issue only with Tidal tracks (I don’t have Qobuz to test), but not really with my local tracks (albeit I don’t have many to test). On purpose, I tried a local file that is 8 hours long and after 2 hours, still no issue.

When I log into my DS918+ NAS to see what the logs say, I keep seeing the same error over and over, every time the song skips.

03/28 14:57:44 Trace: [Hugo TT 2] [Enhanced 21.7x, 16/44 MQA TIDAL FLAC => 24/88] [100% buf] [PLAYING @ 1:17/4:46] Burn It Down [Tom Swoon Remix] - Linkin Park / Tom Swoon
03/28 14:57:48 Error: [cachingseekableurimediafile] while reading: System.ArgumentException: Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection.
  at System.Buffer.BlockCopy (System.Array src, System.Int32 srcOffset, System.Array dst, System.Int32 dstOffset, System.Int32 count) [0x0007e] in <49e2691b1d1a45389d419b3a01a2b89a>:0 
  at Sooloos.Media.StreamingMediaFileImpl._Read (System.Int64 file_off, System.Byte[] buf, System.Int32 off, System.Int32 count) [0x00066] in <3989af3b830242b5a3e814f796055c68>:0 
  at Sooloos.Media.StreamingMediaFileImpl.Read (System.Int64 file_off, System.Byte[] buf, System.Int32 off, System.Int32 count) [0x0005e] in <3989af3b830242b5a3e814f796055c68>:0 
  at Sooloos.Media.StreamingMediaFile.Read (System.Int64 file_off, System.Byte[] buf, System.Int32 off, System.Int32 count) [0x00000] in <3989af3b830242b5a3e814f796055c68>:0 
  at Sooloos.Media.CachingSeekableUriMediaFile.ReadCallback (System.IntPtr userdata, System.IntPtr buf, System.IntPtr count, System.IntPtr& out_bytesread) [0x00055] in <3989af3b830242b5a3e814f796055c68>:0 
03/28 14:57:48 Warn: [prebuffer] in buffer threadSystem.Exception: Read failure: IoFailure
  at Sooloos.Audio.MediaDecoderAudioSignal.Read (System.Byte[] buffer, System.Int32 offset, System.Int32 frames) [0x0024a] in <d8e23e4aa00d4b33961674082f32e3f1>:0 
  at Sooloos.Broker.Transport.FormatDetectAudioSignal.Read (System.Byte[] buffer, System.Int32 offset, System.Int32 frames) [0x000ca] in <fc0905ddb08749e3aa8269d5dab7eab5>:0 
  at Sooloos.Audio.SeekableBufferedAudioSignal._Buffer (System.Int32 buffer_seq) [0x0003e] in <d8e23e4aa00d4b33961674082f32e3f1>:0 
  at Sooloos.Audio.SeekableBufferedAudioSignal+<>c__DisplayClass31_0.<_StartBuffering>b__0 () [0x00000] in <d8e23e4aa00d4b33961674082f32e3f1>:0 
03/28 14:57:48 Info: [Hugo TT 2] [zoneplayer] Track ended unexpectedly: Sooloos.Audio.BufferedReadException: error during buffered read ---> System.Exception: Read failure: IoFailure
  at Sooloos.Audio.MediaDecoderAudioSignal.Read (System.Byte[] buffer, System.Int32 offset, System.Int32 frames) [0x0024a] in <d8e23e4aa00d4b33961674082f32e3f1>:0 
  at Sooloos.Broker.Transport.FormatDetectAudioSignal.Read (System.Byte[] buffer, System.Int32 offset, System.Int32 frames) [0x000ca] in <fc0905ddb08749e3aa8269d5dab7eab5>:0 
  at Sooloos.Audio.SeekableBufferedAudioSignal._Buffer (System.Int32 buffer_seq) [0x0003e] in <d8e23e4aa00d4b33961674082f32e3f1>:0 
  at Sooloos.Audio.SeekableBufferedAudioSignal+<>c__DisplayClass31_0.<_StartBuffering>b__0 () [0x00000] in <d8e23e4aa00d4b33961674082f32e3f1>:0 
   --- End of inner exception stack trace ---
  at Sooloos.Audio.SeekableBufferedAudioSignal.Read (System.Byte[] buffer, System.Int32 offset, System.Int32 frames) [0x0004f] in <d8e23e4aa00d4b33961674082f32e3f1>:0 
  at Sooloos.Broker.Transport.ZonePlayerTrack._ReadBacking (System.Byte[] buffer, System.Int32 offset, System.Int32 frames) [0x00041] in <fc0905ddb08749e3aa8269d5dab7eab5>:0 
  at Sooloos.Broker.Transport.ZonePlayerTrack+_Stream.ReadImp (Sooloos.Audio.AudioBuffer buf, System.Int32 nsamples) [0x00041] in <fc0905ddb08749e3aa8269d5dab7eab5>:0 
  at Sooloos.Audio.AudioStream.Read (Sooloos.Audio.AudioBuffer buf, System.Int32 nsamples) [0x0005e] in <adf2882d01f44a21a6fa9ba0bb844662>:0 
  at Sooloos.Broker.Transport.AudioFileStreamWrapper.ReadImp (Sooloos.Audio.AudioBuffer buf, System.Int32 nsamples) [0x00047] in <fc0905ddb08749e3aa8269d5dab7eab5>:0 
  at Sooloos.Audio.AudioStream.Read (Sooloos.Audio.AudioBuffer buf, System.Int32 nsamples) [0x0005e] in <adf2882d01f44a21a6fa9ba0bb844662>:0 
  at Sooloos.Broker.Transport.ZonePlayerBase.ReadImp (Sooloos.Audio.AudioBuffer buf, System.Int32 nsamples) [0x00207] in <fc0905ddb08749e3aa8269d5dab7eab5>:0 
03/28 14:57:48 Warn: [zone Hugo TT 2] Track Stopped Due to Error

Please pay attention to the error message

Error: [cachingseekableurimediafile] while reading: System.ArgumentException: Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection.

I also noticed some extra warnings, but those do not correlate with the skips, still wanted to report them.

Warn: [streamingmediafile] unexpected real len for http://ab-pr-fa.audio.tidal.com/c41fdf52c63fa44983d55548d0db5cb8_39.flac: 15333280 != 34865756

Can you help me troubleshoot? Why am I getting this error message? My next step is going to be to try and use Roon Core locally on the laptop and see if that helps the issue (which wouldn’t be optimal, as I prefer having Roon Core on my DS918+ NAS).

PS: I also noticed that sometimes a new song does not start playing after a song finishes, not sure if a symptom of the same issue or not.

Thank you for your help.

Thanks for the detailed issued description. I experience the same issue with our Synology DS920+ (DSM 6.2.4-25556) using Roon Core 1.8b783. I am also using Ubiquity UniFi network gear, i.e. Universal Dream Machine and Unify Switch Lite (16 and 8 ports).

I did not have this issue when running the same Roon Server from a Windows 10 machine.

Appreciate you getting back to me on this. I am going to try your suggestion and put Roon Server on my Macbook and just play from there, to see if I will get the same error, as when hosted on my Synology DS918+.

So I tried hosting Roon Server on my Macbook Air (2020 M1, running all latest Roon) and noticed that it is still happening (albeit less frequently).

Hi @pebbles_are_life

Apologies for the delay! Our team’s queue is longer than typical at the moment, but we’re working to get back to everyone as quickly as we can.

The logs that you shared above show traces that typically result from networking issues. I’d like to take a look at the logs from the MacBook Air as well — The next time this happens please note the exact local time + date when this issue next occurs and the name of the track that was playing and upload your Roon Logs by using these instructions.

The best way to get them over to me would be via Dropbox / Google Drive, but if you don’t have either service please let me know and I can provide alternate upload instructions.

Thank you for your reply, @dylan .

So it happened again, on my MacBook Air (2020 M1) running latest 1.8 build 790, hosting Roon Core on said MacBook (that runs latest macOS Big Sur 11.2.3). My DAC (Chord Hugo TT 2) is connected via USB out of my MacBook, so there is NO network streamer in the path (I tried previously with it and it was the same exact issue, occasional skips). So it seems to not matter where I host my Roon Server, nor how I connect to any of my USB DACs.

I have followed your instructions on how to capture and package Roon logs, but when I opened one of the logs, I see personally identifiable information (like hostname of my laptop) which I do not feel comfortable posting here for anyone to see.

How can I send you these logs (or a link to Dropbox) securely, so that only you and your team has access to it?

Thank you!

Hi @pebbles_are_life

You can send this to me in a Private Message here on the site. Click on my profile image and you should see a Message option like this:

image

Hi @dylan, just sent you a PM with a link to Dropbox. Hope attached logs help!

1 Like

Thanks, @pebbles_are_life — PM received. I’ll follow up once we’ve been able to analyze the logs.

Hi @pebbles_are_life ,

This should be fixed in the latest Roon release, but please do let us know if you are still seeing issues, thanks!

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.