question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CompositingRenderer.Update: Collection was modified

See original GitHub issue

Describe the bug

Unhandled exception. System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
   at System.Collections.Generic.HashSet`1.Enumerator.MoveNext()
   at Avalonia.Rendering.Composition.CompositingRenderer.Update() in E:\source\repos\Avalonia\src\Avalonia.Base\Rendering\Composition\CompositingRenderer.cs:line 195
   at Avalonia.Threading.JobRunner.RunJobs(Nullable`1 ) in E:\source\repos\Avalonia\src\Avalonia.Base\Threading\JobRunner.cs:line 38
   at Avalonia.Win32.Win32Platform.WndProc(IntPtr , UInt32 , IntPtr , IntPtr ) in E:\source\repos\Avalonia\src\Windows\Avalonia.Win32\Win32Platform.cs:line 296
   at Avalonia.Win32.Interop.UnmanagedMethods.DispatchMessage(MSG& )
   at Avalonia.Win32.Win32Platform.RunLoop(CancellationToken ) in E:\source\repos\Avalonia\src\Windows\Avalonia.Win32\Win32Platform.cs:line 223
   at Avalonia.Threading.Dispatcher.MainLoop(CancellationToken ) in E:\source\repos\Avalonia\src\Avalonia.Base\Threading\Dispatcher.cs:line 61
   at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.Start(String[] ) in E:\source\repos\Avalonia\src\Avalonia.Controls\ApplicationLifetimes\ClassicDesktopStyleApplicationLifetime.cs:line 120
   at ControlCatalog.NetCore.Program.Main(String[] ) in E:\source\repos\Avalonia\samples\ControlCatalog.NetCore\Program.cs:line 103

To Reproduce Steps to reproduce the behavior:

  1. Enable UseWgl in CC.NetCore
  2. Build and run
  3. Navigate to OpenGL page
  4. Drag “Disco”

Expected behavior No exception should be thrown

Desktop (please complete the following information):

  • OS: Windows
  • Version: build from master

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:3
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
hez2010commented, Oct 3, 2022

Is there any schedule for 11.0-preview2?

1reaction
Gillibaldcommented, Oct 3, 2022

Y this issue is fixed in master

Read more comments on GitHub >

github_iconTop Results From Across the Web

C# Collection was modified; enumeration operation may ...
Any collection that you iterate over with foreach may not be modified during iteration. So while you're running a foreach over rankings, ...
Read more >
Collection was modified; enumeration operation may not ...
I saw a tutorial for a shotgun script that I didn't know how to do, and I have limited c# knowledge. I have...
Read more >
Why the error Collection was modified enumeration ...
This error occurs when a looping process is being running on a collection (Ex: List) and the collection is modified (data added or...
Read more >
enumeration operation may not execute." during refresh C# ...
The "Collection was modified" exception means that one thread is looping over a collection, which is at the same time modified in another ......
Read more >
Update DataTable: Collection was modified; enumeration ...
Hi Team, I am in particular trying to use LinQ to update a Datatable with name InputFileDT. My Aim is to update column...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found