Crash with InvalidOperationException in mscorlib

Roon Core Machine

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

Roon Version: 2.0 (build 1182) production (64bit)
OS Version: Windows 11
CPU: i7-1260P, 32Gb RAM

Networking Gear & Setup Details

Connected Audio Devices

Linn Akurate DSM

Number of Tracks in Library

Description of Issue

Streaming from Tidal to Linn DSM suddenly stops and the Roon application disappears. Log shows InvalidOperationException in mscorlib.dll.

Restarting the application solves the problem. This has happened a couple of times. Also last year using Qobuz (different computer, same DSM)

See Sudden crash with InvalidOperationException in mscorlib

   Exception Source:      mscorlib
   Exception Type:        System.InvalidOperationException
   Exception Target Site: ThrowHelper.ThrowInvalidOperationException
   Exception Message:     Collection was modified; enumeration operation may not execute.
   Exception Data:        none

   --[ Stack Trace ]------------
   System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
       mscorlib.dll, IL 16, N 60
   System.Collections.Generic.List`1/Enumerator.MoveNextRare()
       mscorlib.dll, IL 19, N 14242071
   System.Linq.Enumerable/d__25`1.MoveNext()
       System.Core.dll, IL 121, N 395
   System.Linq.Enumerable.Any(IEnumerable`1 source, Func`2 predicate)
       System.Core.dll, IL 57, N 118
   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__DisplayClass23_0.b__1()
       RoonBase.DLL, IL 2, N 47
   ThreadUtil._WorkerThread()
       Base.DLL, IL 182, N 295
   System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       mscorlib.dll, IL 121, N 264
   System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       mscorlib.dll, IL 9, N 21
   System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       mscorlib.dll, IL 52, N 85
   System.Threading.ThreadHelper.ThreadStart()
       mscorlib.dll, IL 42, N 85

Hi @Henrik_Edstrom ,

Thanks for the report here.

We’ve gone ahead and enabled a deeper diagnostics mode for your account, can you please reboot your Roon Core when you have a chance, and then please let me know the time + date when you next see this crash occur on your end?

Also, can you please post the exception message you get, just to check if it is indeed the same as before? Thanks!

1 Like

Roon’s been working for me for the last two weeks but now it just happened again.

01/31 16:52:41 Info:
Local Time: 01/31/2023 16:52:41 +01:00
Device Serial Number: 3C5ED443-061A-4E0A-AF62-06E93E41D2AA
User Id: 8aebd642-ac60-4fa2-81ba-cba9002f5060
Roon Version: 2.0 (build 1193) production
OS Version: Windows 11
Application Domain: Roon.exe
Assembly Codebase: file:///C:/Users/HenrikEdström/AppData/Local/Roon/Application/Roon.exe
Assembly Full Name: Roon, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
CPU0 Description: Intel64 Family 6 Model 154 Stepping 3 2100 MHz (64-bit)
CPU0 Num Cores: Physical: 12 Logical: 16
GPU0 Description: Intel(R) Iris(R) Xe Graphics 1024 MB
GPU0 Video Mode: 3840 x 2400 x 4294967296 colors
GPU0 Driver Version: 31.0.101.3959
SCREEN0 Name: \.\DISPLAY1 SCREEN0 Bounds: 1920,0 3840x2400
SCREEN1 Name: \.\DISPLAY2 (primary)SCREEN1 Bounds: 0,0 1920x1200
Exception Source: mscorlib
Exception Type: System.InvalidOperationException
Exception Target Site: ThrowHelper.ThrowInvalidOperationException
Exception Message: Collection was modified; enumeration operation may not execute.
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 14242071 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__DisplayClass23_0.b__1()
RoonBase.DLL, IL 2, N 47
ThreadUtil._WorkerThread()
Base.DLL, IL 182, N 295
System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
mscorlib.dll, IL 121, N 264
System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
mscorlib.dll, IL 9, N 21
System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
mscorlib.dll, IL 52, N 85
System.Threading.ThreadHelper.ThreadStart()
mscorlib.dll, IL 42, N 85

Note that it happened on Roon 1193. I just got 1202, will report if it still happens. Thanks.

1 Like

Same crash again just now. This time with build build 1202.

Hi @Henrik_Edstrom ,

I wanted to follow up on your case - I activated diagnostics for your Core and I’m not seeing any more crashes with those traces. Can you confirm if the system has been stable?

Hi! It happened again. Build 1234 to Linn DSM.
Roon client and server on same computer. I think it always happens when also doing something else on the computer. However that’s usually when I use Roon so it might not be relevant.

Hi @Henrik_Edstrom ,

I recently spoke to the team about this and have put in an investigation ticket regarding this. If you are still seeing this at the present time, can you please let us know the exact local time + date of the next crash? I would like to attach a new log set from your Core to the investigation ticket, thanks!

Hi @Henrik_Edstrom ,

Our latest Roon release contained a bug fix in this area. Have you still experienced further crashes recently?

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