[中] 导出时 RenderJob 在 UI 线程构造
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 62/100
Research direction
Start in windows/birdlock/app/state.py at export_to() (around line 1406) and compare it with _rebuild_now(), which already shows the background-thread pattern; read how on_main is used elsewhere to publish state back to the UI. The first step is confirming which of RenderJob's steps (plan, compose_plan, deflicker_gains, project_frames, arrange) run in the constructor and need the worker thread. Done means clicking export on a long project no longer blocks the window, with status updates marshalled through on_main; the maintainer notes this was not reproduced on Windows, so a manual check is part of finishing.
Written by the indexing model from the issue text.
Description
位置:windows/birdlock/app/state.py:1406
现象:export_to() 在 self.stop() 后直接 RenderJob(...),而普通设置变化走 _rebuild_now() 的后台线程。RenderJob 会执行 plan、compose_plan(含防抖与 motion 解析)、deflicker_gains、project_frames、arrange,长视频点击「导出」时主线程会卡住。
复现:打开长视频工程,点击导出,观察窗口无响应时间。
建议:把构造移入 worker 线程,完成后经 on_main 更新状态。
来源:2026-11-15 全仓只读审计,PR #7 未包含此项。 未在 Windows 实机复现,复现路径由代码审计推得。
- Dominant language
- Swift
- Stars
- 2
- Forks
- 2
- Avg merge
- 1h 11m
- Merged PRs (30d)
- 2
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cyandee/BirdLock
-
Difficulty 2/5 Under an hour Newbie friendliness 62/100
-
Difficulty 1/5 Under an hour Newbie friendliness 80/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100