Chart.combine sometimes results in "Collection was modified; enumeration operation may not execute."
未關閉
還沒有人認領這個 Issue。
Status: Needs Repro
- 主要語言
- F#
- 星號
- 860
- 分支
- 99
- 平均合併
- 22 分鐘
- 30 天內合併 PR
- 1
描述
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.KeyCollection.Enumerator.MoveNext()
at <StartupCode$DynamicObj-FSC472>.$DynamicObj.GetProperties@81.GenerateNext(IEnumerable`1& next)
at Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase`1.MoveNextImpl()
at Microsoft.FSharp.Collections.SeqModule.ToList[T](IEnumerable`1 source)
at DynamicObj.DynamicObj.GetProperties(Boolean includeInstanceProperties)
at DynamicObj.DynObj.combine(DynamicObj first, DynamicObj second)
at DynamicObj.DynObj.combine(DynamicObj first, DynamicObj second)
at DynamicObj.DynObj.combine(DynamicObj first, DynamicObj second)
at Plotly.NET.GenericChart.combineLayouts@243(Layout first, Layout second)
at Plotly.NET.GenericChart.combine@309.Invoke(GenericChart acc, GenericChart elem)
The sequences of data I'm feeding it are from immutable lists; so I don't think it's a problem with the way I'm calling Plotly.NET.
I can try again (with the same data) and usually it is successful. Seems to be a sporadic issue. Very odd.
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從經過 DynamicObj.GetProperties、DynObj.combine、GenericChart.combineLayouts 和 GenericChart.combine 的堆疊追蹤開始;該 issue 未指出原始檔案或測試。重現組合圖表時間歇性發生的例外,然後驗證圖表組合不再引發 collection-modified 錯誤,並在現有該路徑測試所在的位置新增回歸涵蓋範圍。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- fsharp
- 領域
- data-visualization
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100