Repository navigation
fix(windows): 修复事件循环目标跨线程克隆导致的闪退 - #1312
Merged
H-Chris233 merged 6 commits intoOct 31, 2026
Merged
Conversation
Observe host gates, main dispatch, bridge handling, IME submission, recorder shutdown and lifecycle without changing business policies. Add a bounded typed session sink, independent health, remote-only tests and immutable Windows symbol provenance. Keep diagnostic artifacts separate from ordinary branch builds; do not claim a root-cause fix. Co-Authored-By: Claude Opus 5 <[email protected]>
Resolve E0616 from the opt-in production feature compilation in CI. Keep the run label internal to the diagnostic module hierarchy. Co-Authored-By: Claude Opus 5 <[email protected]>
Keep existing host coverage and observe capsule, mirror and layout tasks at the same main-queue boundary. Track real execution context and opaque producer thread labels; preserve behavior and the single diagnostic writer. Add deterministic tracer tests and classify the issue 1227 feedback against PR 1267 without claiming a crash fix. Co-Authored-By: Claude Opus 5 <[email protected]>
Vendor the pinned runtime-wry 2.12.2 source and keep Windows event-loop targets in owner-local storage. Transferable handles clone metadata only; retain callback and consuming-loop lifetimes. Preserve six diagnostic boundaries and observe pre-dispatch handle cloning for the A1 field experiment. Co-Authored-By: Claude Opus 5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
H-Chris233
approved these changes
Oct 31, 2026
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
摘要
Fixes #1266。
关联 #1261、#1227(相关 Windows 堆损坏/静默退出现场,不宣称全部报告具有同一根因)。
修复 Windows Tauri event-loop target 经跨线程 runtime handle 克隆时的所有权问题。提交者已收到用户反馈:使用
ee89696cb780ee464b75a8928bd1967bae4ccdcf修复构建后,原闪退问题不再复现,因此将已测试分支提交上游beta。这是用户反馈的现场验收;未提供新的观察时长、录音次数或转储,不补造这些数据,也不将所有无响应/原生崩溃归为同一原因。修复 / 新增 / 改进
tauri-runtime-wry 2.12.2,Windows event-loop target 仅由所属线程的 TLS registration 持有;跨线程 handle 只克隆安全元数据,不再跨线程复制 Tao target 内部的非原子Rc。EventLoopClosed,覆盖 consuming run 和 run iteration 生命周期。issue-1266-diagnosticsfeature 与 P1–P6 诊断边界,并增加真实 handle clone、派发来源/线程及父操作关联;普通构建不启用诊断 writer。兼容
测试计划
ee89696c修复构建后原闪退不再复现(由提交者转述,不夸大观察范围)。a89a4176d39b46425ecf147853fa687d2f977955对beta的合并结果通过上游自动触发的全部适用 CI:CI run 41176286989(attempt 2)。Windows/macOS、MSRV、Android、Harmony、Linux 测试/打包、原生胶囊与 Chromium/WebKit 门禁均成功;PR 不发布 Release,publish-linux-egui按设计跳过。tauri_coordinator_host.rs与 beta 的布局监听冲突,保留上游 handle-free timer、主线程取胶囊,以及本分支 P2LayoutDispatch观察。a89a4176修正,增加邻接函数/缺失边界 fixture,未削弱原断言;最终候选经独立限域审查,结果no bug found。.github/workflows/ci.yml中的跨平台编译、前端/契约、独立诊断、owner-thread、真实 Windows runtime 生命周期及符号格式测试。docs/research/issue-1266.md、docs/research/issue-1266-feedback-6416406209.md、docs/research/issue-1266-diagnostics.md、openless-all/app/src-tauri/vendor/tauri-runtime-wry/OPENLESS_PATCH.md。