[中] 导出时 RenderJob 在 UI 线程构造

Open
#24 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
62/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
desktop

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cyandee/BirdLock

All issues in cyandee/BirdLock

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.