TcNo-Acc-Switcher icon indicating copy to clipboard operation
TcNo-Acc-Switcher copied to clipboard

An error has occurred. This application may no longer respond until reloaded.

Open Superwheat opened this issue 1 year ago • 6 comments

-09-09T10:26:38.233Z] Error: System.InvalidOperationException: Collection was modified; enumeration operation may not execute. at System.Collections.Generic.List`1.Enumerator.MoveNextRare() at TcNo_Acc_Switcher_Server.Shared.ContextMenu.ContextMenu.BuildRenderTree(RenderTreeBuilder __builder) in C:\projects\tcno-acc-switcher-qih5m\TcNo-Acc-Switcher-Server\Shared\ContextMenu\ContextMenu.razor:line 33 at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment, Exception& renderFragmentException)

Superwheat avatar Sep 09 '24 10:09 Superwheat

And then it fully stops working

Superwheat avatar Sep 09 '24 10:09 Superwheat

Not working on Steam at all. No changes in settings whatsoever.

Superwheat avatar Sep 09 '24 10:09 Superwheat

I have this problem too, I installed it today and it is happening from the time i installed it

emb3rcia avatar Oct 16 '24 17:10 emb3rcia

I also have this problem with Epic Games

vanquishes avatar Jan 08 '25 15:01 vanquishes

Looking at the Event Viewer I think this is exception in the Csharp code because you are attempting to modify a IEnumerable collection while its being used. Below is the exception I see when this error pops up

Unhandled exception in circuit ''.

Exception: 
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
   at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
   at TcNo_Acc_Switcher_Server.Shared.ContextMenu.ContextMenu.BuildRenderTree(RenderTreeBuilder __builder) in C:\projects\tcno-acc-switcher-qih5m\TcNo-Acc-Switcher-Server\Shared\ContextMenu\ContextMenu.razor:line 33
   at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment, Exception& renderFragmentException)

igloo15 avatar Feb 28 '25 04:02 igloo15

Same problem on freshly installed account switcher

blazor.server.js?1746385700:1 [2025-05-04T19:08:20.961Z] Information: Normalizing '_blazor' to 'http://localhost:36352/_blazor'.
blazor.server.js?1746385700:1 [2025-05-04T19:08:20.997Z] Information: WebSocket connected to ws://localhost:36352/_blazor?id=v5woABEjYdN-nTny6PS9FA.
blazor.server.js?1746385700:1  [2025-05-04T19:08:21.781Z] Error: System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
   at System.Collections.Generic.List`1.Enumerator.MoveNext()
   at TcNo_Acc_Switcher_Server.Shared.ContextMenu.ContextMenu.BuildRenderTree(RenderTreeBuilder __builder) in C:\projects\tcno-acc-switcher-qih5m\TcNo-Acc-Switcher-Server\Shared\ContextMenu\ContextMenu.razor:line 33
   at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment, Exception& renderFragmentException)
log @ blazor.server.js?1746385700:1
unhandledError @ blazor.server.js?1746385700:1
(anonymous) @ blazor.server.js?1746385700:1
_invokeClientMethod @ blazor.server.js?1746385700:1
_processIncomingData @ blazor.server.js?1746385700:1
Xt.connection.onreceive @ blazor.server.js?1746385700:1
s.onmessage @ blazor.server.js?1746385700:1
blazor.server.js?1746385700:1 [2025-05-04T19:08:21.782Z] Information: Connection disconnected.

anunknowperson avatar May 04 '25 19:05 anunknowperson