VL.audio Errors

I’ve built vl.audio as @antokhio suggested on matrix to try and find where my error is coming from, and vs studio gives me this… Exception thrown: ‘System.ArgumentOutOfRangeException’ in System.Private.CoreLib.dll (I also get a The thread ‘.NET TP Worker’ (24256) has exited with code 0 (0x0). occasionally)

Debug console gives me this…

System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter ‘index’)at System.Collections.Generic.List`1.get_Item(Int32 index)at VL.Audio.MatrixMixerSignal.FillBuffers(Single buffer, Int32 offset, Int32 count) in D:_Git\VL.Audio\VL.Audio\src\Signals\Routing\MatrixMixerSignal.cs:line 39at VL.Audio.MultiChannelSignal.Read(Int32 offset, Int32 count) in D:_Git\VL.Audio\VL.Audio\src\Core\MultiChannelSignal.cs:line 109at VL.Audio.SingleSignal.FillBuffer(Single buffer, Int32 offset, Int32 count) in D:_Git\VL.Audio\VL.Audio\src\Core\MultiChannelSignal.cs:line 34at VL.Audio.AudioSignal.Read(Single buffer, Int32 offset, Int32 count) in D:_Git\VL.Audio\VL.Audio\src\Core\AudioSignal.cs:line 158at VL.Audio.VST.EffectHost.DoFillBuffers(Single buffers, Int32 offset, Int32 numSamples)at VL.Audio.VST.EffectHost.FillBuffers(Single buffers, Int32 offset, Int32 numSamples)at VL.Audio.MultiChannelSignal.Read(Int32 offset, Int32 count) in D:_Git\VL.Audio\VL.Audio\src\Core\MultiChannelSignal.cs:line 109at VL.Audio.SingleSignal.FillBuffer(Single buffer, Int32 offset, Int32 count) in D:_Git\VL.Audio\VL.Audio\src\Core\MultiChannelSignal.cs:line 34at VL.Audio.AudioSignal.Read(Single buffer, Int32 offset, Int32 count) in D:_Git\VL.Audio\VL.Audio\src\Core\AudioSignal.cs:line 158at VL.Audio.VST.EffectHost.DoFillBuffers(Single buffers, Int32 offset, Int32 numSamples)at VL.Audio.VST.EffectHost.FillBuffers(Single buffers, Int32 offset, Int32 numSamples)at VL.Audio.MultiChannelSignal.Read(Int32 offset, Int32 count) in D:_Git\VL.Audio\VL.Audio\src\Core\MultiChannelSignal.cs:line 109at VL.Audio.SingleSignal.FillBuffer(Single buffer, Int32 offset, Int32 count) in D:_Git\VL.Audio\VL.Audio\src\Core\MultiChannelSignal.cs:line 34at VL.Audio.AudioSignal.Read(Single buffer, Int32 offset, Int32 count) in D:_Git\VL.Audio\VL.Audio\src\Core\AudioSignal.cs:line 158at VL.Audio.MatrixMixerSignal.FillBuffers(Single buffer, Int32 offset, Int32 count) in D:_Git\VL.Audio\VL.Audio\src\Signals\Routing\MatrixMixerSignal.cs:line 43at VL.Audio.MultiChannelSignal.Read(Int32 offset, Int32 count) in D:_Git\VL.Audio\VL.Audio\src\Core\MultiChannelSignal.cs:line 109at VL.Audio.SingleSignal.FillBuffer(Single buffer, Int32 offset, Int32 count) in D:_Git\VL.Audio\VL.Audio\src\Core\MultiChannelSignal.cs:line 34at VL.Audio.AudioSignal.Read(Single buffer, Int32 offset, Int32 count) in D:_Git\VL.Audio\VL.Audio\src\Core\AudioSignal.cs:line 158at VL.Audio.MatrixMixerSignal.FillBuffers(Single buffer, Int32 offset, Int32 count) in D:_Git\VL.Audio\VL.Audio\src\Signals\Routing\MatrixMixerSignal.cs:line 43at VL.Audio.MultiChannelSignal.Read(Int32 offset, Int32 count) in D:_Git\VL.Audio\VL.Audio\src\Core\MultiChannelSignal.cs:line 109at VL.Audio.SingleSignal.FillBuffer(Single buffer, Int32 offset, Int32 count) in D:_Git\VL.Audio\VL.Audio\src\Core\MultiChannelSignal.cs:line 34at VL.Audio.AudioSignal.Read(Single buffer, Int32 offset, Int32 count) in D:_Git\VL.Audio\VL.Audio\src\Core\AudioSignal.cs:line 158at VL.Audio.MasterWaveProvider.Read(Byte buffer, Int32 offset, Int32 count) in D:_Git\VL.Audio\VL.Audio\src\Core\MasterWaveProvider.cs:line 165

I am not changing spread counts, I am just using oscillators, all gains have been min/maxed as have matrix mixers. Frequencies are sliding around and jumping between values, and gains can snap to 0, I think I’ve tried damping these as well. It also happens without the vst’s. It seems to be a fill buffer thing, but I’m not sure why this is an issue…

Any suggestions?

can you provide a patch that allows us to reproduce this?

SoundIssue.vl (124.4 KB)

This also demos an issue I had with track objects where objects are not removed when the tracking gets lost/ spread count changes…

But the patch shows the audio errors, I have it running into a fixed sized spread from the tracker, so the count never changes, but the values probably jump when trackers get removed. Its a dirty dirty patch as I tried to damp, and limit values, so look in horror and weep!

SoundIssue.vl (28.4 KB)

This is a minimal patch showing the issues. 20 oscillators, no change of gain or frequency, I get spikes in the level meters and occasion errors in the Debug window. It would be good if you can confirm that you see this too. ASIO and WASPI drivers.

@catweasel I can confirm the spikes and errors on the debug on 7 stable, I don’t see any errors on 6.7 stable.

A thing that I have noticed a few times now, working with buffers (oscillator is using them too I guess) is a fluctuation of the buffer size, my sampling rate is on 48000 vvvv then assumes that the buffer size should be 480 samples but I have noticed that this changes randomly and unexpectedly (usually gets doubled - 960 samples and half of the signal is just dead) plus it always ignoring the settings of my Audio Interface where I can manually set the buffer size to different counts (ie 512 / 1024 etc) .

I suspect that buffer here can be the issue, but it is just a speculation.

@catweasel Are these spikes affecting your audio output? Are they audible?

The spikes aren’t, but when it throws an error it is. Also the errors I think cause memory to get used up, I’m not sure if you can turn off debug logging?

Confirmed. Please test with latest 7.1 preview 113 for a fix. The MatrixMixer node was the culprit and got reworked.

Also indeed (totally unrelated) the TrackObjects was broken for vvvv >= 7.0. so please also update the VL.TrackObjects pack to 0.0.5-alpha

I’m still getting vu meter spikes, and occasional pop, the longer its running the more it seems to occur, after a while the error reappears, but much less so. (thanks for the track objects, that seems to be fine now :) )

SoundIssue-Application_2025.11.25-16.08.24

ah right, forgot to comment on the vu meter spikes: can also confirm, though since they are not audible they looked more like visual glitches in the tooltip. can you confirm that they are gone if you’re not using the Gain node upstream?

Spikes do seem to be gone without the gain node, but still getting errors, index out of range, (and clicks when they occur) A picture to show the timing, still in matrix mixer

hm.. i opened your simplified SoundIssue.vl and left it running unattended for 10min now. still the visual spikes in the tooltip, but no audible errors or errors in the log. anything special i have to do?

Not for me, both asio and waspi both throw errors every now and then. I’ve tried getting the latest vl.audio -pr and it stays the same. I am just using the built in realtek sound card, are you using something fancier? I’ll try and dig out a usb card…

same. just built-in realtek. tested wasapi only.

Cheap Behringer USB, took a minute or 2 before the first error, but then looks like less errors, but once a minute or so.

Should I be using the latest -pr of vl audio, or the bundled 133 version? Both give me issues though…

Ah! I am using win10, just booting up win11

7.1 preview 113 has latest vl.audio. no need to install anything extra.

Looks like a win10 issue then. 11 seems fine. I still use 10 a lot though, so it would be good to fix for that too.

we’ve also seen the argumentoutofrange exception a lot. no repro or pattern, tough :(

Are you running win10 or 11?

win 11. not sure if I’ve seen it also under win 10.