decentraland / decentraland/unity-explorer

System.InvalidOperationException: Collection was modified; enumeration operation may not execute.

Open
#10,063 3 comments 0 reactions 0 assignees View on GitHub
1-high bug duplicate sentry ui
Dominant language
C#
Stars
23
Forks
17
Avg merge
2d 16h
Merged PRs (30d)
101

Description

Sentry Issue: [UNITY-EXPLORER-P8P](https://decentraland.sentry.io/issues/7509711356/)

```
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
File "il2cpp-codegen.h", line 792, in IsParticipantOnline
File "DCL.Social__20.cpp", line 28516, in IsParticipantOnline
File "DCL.Social__20.cpp", line 28127, in OnGetItemByIndex
File "superscrollview.runtime.cpp", line 17722, in RefreshAllShownItemWithFirstIndex
File "il2cpp-codegen.h", line 792, in RefreshVisibleElements
...
(11 additional frame(s) were not displayed)
```
This issue was automatically created by Sentry via [Explorer Alpha Github Issue Creation](https://sentry.io/organizations/decentraland/monitors/alerts/3130340/)

Contributor guide

Open the contributing guide

Research direction

Start with the Sentry trace and inspect the source behind IsParticipantOnline, OnGetItemByIndex, and RefreshVisibleElements. Determine which collection is being changed during enumeration, reproduce the failure if possible, and verify that the participant refresh path no longer raises this exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, unity
Domain
desktop-dev, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.