Wulf2k / DaS-PC-MPChan

77 stars 30 forks source link

Linux/Wine/Mono: SortableBindingList functions crash with index-out-of-range exceptions #139

Open gammaleak opened 6 years ago

gammaleak commented 6 years ago

Periodically, while DSCM runs and adds/removes new online players to its node list, invalid index values will end up getting passed to OnListChanged() and InsertItem() inside the SortableBindingList.ReplaceSorted() and SortableBindingList.InsertSorted() functions respectively. This happens usually within 1-5 minutes of playing the game online, though it does seem to stabilize and behave a little bitter better once your node list fills up (likely because there isn't as much change in activity).

The randomness may indicate some kind of race condition failing or inconsistency in states between threads.

Again, this may just be an upstream Mono issue, but there's at least some chance it really is exposing a problem with the program logic.