Sudden crash with InvalidOperationException in mscorlib

Roon Core Machine

Running Roon as a single Windows application (no separate core).

Roon Version: 1.8 (build 913) stable
OS Version: Windows 10
CPU0 Description: Intel64 Family 6 Model 58 Stepping 9 3501 MHz (64-bit)

Networking Gear & Setup Details

Connected Audio Devices

Linn Akurate DSM

Number of Tracks in Library

Description of Issue

Streaming from Qobuz to Linn DSM suddenly stops and the Roon application has just disappeared. Log shows InvalidOperationException in mscorlib.dll.

Restarting the application solves the problem. This has happened a couple of times but not very regularly.

Exception Source: mscorlib
Exception Type: System.InvalidOperationException
Exception Target Site: ThrowHelper.ThrowInvalidOperationException
Exception Message: Mängden har ändrats. Det går inte att köra uppräkningsåtgärden.
Exception Data: none
–[ Stack Trace ]------------
System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
mscorlib.dll, IL 16, N 60
System.Collections.Generic.List1/Enumerator.MoveNextRare() mscorlib.dll, IL 19, N 14277867 System.Linq.Enumerable/<TakeIterator>d__251.MoveNext()
System.Core.dll, IL 121, N 102
System.Linq.Enumerable.Any(IEnumerable1 source, Func2 predicate)
System.Core.dll, IL 57, N 198
Sooloos.Broker.Transport.SongcastDirectZonePlayer._Locked_NotifyDeadReckoningTime(UInt32 seconds)
Roon.Broker.Core.DLL, IL 37, N 152
Sooloos.Broker.Transport.SongcastDirectZonePlayer/<>c__DisplayClass32_0.<_Locked_NotifyTransportIsPlaying>b__0()
Roon.Broker.Core.DLL, IL 130, N 235
Sooloos.CallingThread/<>c__DisplayClass22_0.b__1()
RoonBase.DLL, IL 2, N 47

This looks like a proper bug, something has modified a collection mid iteration. Computer says no…

Edit Here’s a slightly better explanation:

https://social.msdn.microsoft.com/Forums/en-US/aabf9fa1-30b0-45e4-9df3-33e4207815e4/getting-quotsysteminvalidoperationexception-at?forum=ApplicationInsights

Second Edit I forgot to say welcome @Henrik_Edstrom, pardon my manners…

1 Like

Hi @Henrik_Edstrom ,

Thanks for the report! Can you please confirm if you’re still seeing this in the latest Roon build? Are you using the latest .NET version? Do I understand correctly here, the issue only happens when streaming to the Linn device, but doesn’t when idle?

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