CompositingRenderer.Update: Collection was modified
See original GitHub issueDescribe 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:
- Enable
UseWglin CC.NetCore - Build and run
- Navigate to OpenGL page
- Drag “Disco”
Expected behavior No exception should be thrown
Desktop (please complete the following information):
- OS: Windows
- Version: build from master
Issue Analytics
- State:
- Created a year ago
- Reactions:3
- Comments:6 (6 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Is there any schedule for 11.0-preview2?
Y this issue is fixed in master