Bcrdt's SingleThreadContext can throw ObjectDisposedException when a test ends
维护者通常 1 天内回复
@msynk 已经在做这个了。
开始于 2026年12月4日。
评估
这个 Issue 还没有评估数据。
描述
In All Utilities CI (https://github.com/bitfoundation/bitplatform/actions/runs/47434187171, job 145395007763, net11.0), CollaborationStackTests.An_edit_in_one_client_reaches_another failed in SingleThreadTestMethodAttribute.ExecuteAsync:
System.ObjectDisposedException: Cannot access a disposed object. Object name: 'System.Collections.Concurrent.BlockingCollection`1[...]'
at System.Collections.Concurrent.BlockingCollection`1.CheckDisposed()
at System.Collections.Concurrent.BlockingCollection`1.get_Count()
at System.Collections.Concurrent.BlockingCollection`1.CompleteAdding()
at Bit.Bcrdt.Tests.SingleThreadContext.Dispose() in SingleThreadContext.cs:line 120
SingleThreadContext.Run disposes its queue in a finally as soon as its consuming loop ends. CompleteAdding marks the queue complete before it reads Count, so the context's thread can see the queue complete and empty, leave the loop and dispose it while Dispose is still inside CompleteAdding on the test's thread. The test itself passed; the helper's teardown failed it.
- 主要语言
- C#
- 星标
- 1.4k
- 派生
- 264
- 平均合并
- 5 小时 25 分钟
- 30 天内合并 PR
- 447
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
bitfoundation/bitplatform 的其他 Issue
-
Project dependencies are outdated可能已有人在做 @yasmoradi 今天认领。 未关闭dependencies
难度 2/5 1-3 小时 新手友好度 65/100
bitfoundation/bitplatform#15616 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 63/100
bitfoundation/bitplatform#15606 ·
维护者通常 1 天内回复
-
The AutoReset E2E tests of BitFileInput and BitFileUpload open the second chooser before Firefox has closed the first可能已有人在做 @msynk 今天认领。 未关闭
bitfoundation/bitplatform#15625 · 已指派 1 人 ·
维护者通常 1 天内回复
-
An E2E test's retry runs on the Firefox instance whose page crashed on its first try可能已有人在做 @msynk 今天认领。 未关闭
bitfoundation/bitplatform#15624 · 已指派 1 人 ·
维护者通常 1 天内回复
-
The BitDatePicker look E2E test presses Escape before the year grid has the focus可能已有人在做 @msynk 今天认领。 未关闭
bitfoundation/bitplatform#15623 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 bitfoundation/bitplatform 的全部 Issue
相似的 Issue
-
XML grammar: only the closing --> of a comment gets the scope comment.block.xml可能已有人在做 @alexeyfala 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
danipen/TextMateSharp#145 · 2 条评论 ·
-
good first issue help wanted
难度 2/5 1-3 小时 新手友好度 85/100
Klyroo/klyroo-dashboard#12 ·
维护者通常 1 天内回复
-
CONTRIBUTING rules Node out in step 0, then tells client-side contributors to run node --test, which is what CI gates on可能已有人在做 @yadavraj2001 今天认领。 未关闭documentation good first issue
难度 1/5 1-3 小时 新手友好度 82/100
juandresrodca/AdminForge#73 · 1 条评论 ·
维护者通常 1 天内回复
-
[辞書] VIVANT未关闭要トリアージ 辞書
难度 1/5 1 小时以内 新手友好度 70/100
维护者通常 1 天内回复
-
enhancement good first issue
难度 1/5 1 小时以内 新手友好度 94/100
christian-raj/S-Aloha#504 ·