[GH-ISSUE #3257] [GUI] Desktop install: MTP download shows no progress ("0.0 / 0.0 GB"), and cancelling leaves mtp_fetch.py running as an orphan #1316

Closed
opened 2026-11-04 01:50:18 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @bext1998 on GitHub (Oct 19, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3257

Note: This issue was identified and analyzed with AI assistance (Claude). The root-cause observations below were reviewed by the reporter, but the AI-assisted analysis may contain inaccuracies, so please verify against logs before acting on it.

Versions: Strata Desktop 0.2.0-beta, Control/Engine 0.1.45.3 (windows-x86_64-cuda13), Windows 11 26300, RTX 3060 12 GB
Model: Swift 1.5 IQ2_XS, --data-dir G:\StrataLLM

Steps

  1. Install Swift 1.5 IQ2_XS from the Desktop app. Model download and iq_pack finish ([ok] model prepared).
  2. Step 6 runs tools/mtp_fetch.py fetch. The app shows "Preparing your model for Strata… IQ2_XS: 0.0 / 0.0 GB" with no progress for the ~5 GB MTP download.
  3. Assuming it is stuck, cancel (or close the app), then retry.

Actual

  • native-jobs.json reports the model part as done_gb:0,total_gb:0 for the whole MTP download.
  • After cancel, setup.py exits 1 (strata-mcp: setup ended with exit code 1), but its child mtp_fetch.py keeps writing. setup.log shows progress lines after the exit line, and mtp-manifest.json was written 4 minutes after the job was marked failed.
  • On retry, a new mtp_fetch appends to the same tensor file while the orphan is still running. The orphan then dies with
    OSError: [Errno 9] Bad file descriptor at mtp_fetch.py:285/288 (open(path, "ab") / f.write).
  • The job never reaches step 7, so no strata-*.json run config is written and Settings → Storage shows "No downloaded models" even though all GGUF shards are verified.

Expected

  • MTP download progress is shown (it already prints per-tensor % to stderr).
  • Cancel ends the whole process tree (proc_kill_tree uses taskkill /T /F, yet the grandchild survived here), or mtp_fetch holds a lock so two instances cannot append to the same file.
  • Storage indicates "downloaded, preparation incomplete" instead of "No downloaded models".

Workaround: Run the install again without cancelling. Shards (.done) and the pack are skipped, and the MTP tensors pass mtp_fetch.py verify.

Originally created by @bext1998 on GitHub (Oct 19, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3257 > **Note:** This issue was identified and analyzed with AI assistance (Claude). The root-cause observations below were reviewed by the reporter, but the AI-assisted analysis may contain inaccuracies, so please verify against logs before acting on it. **Versions:** Strata Desktop 0.2.0-beta, Control/Engine 0.1.45.3 (windows-x86_64-cuda13), Windows 11 26300, RTX 3060 12 GB **Model:** Swift 1.5 IQ2_XS, `--data-dir G:\StrataLLM` **Steps** 1. Install Swift 1.5 IQ2_XS from the Desktop app. Model download and iq_pack finish (`[ok] model prepared`). 2. Step 6 runs `tools/mtp_fetch.py fetch`. The app shows "Preparing your model for Strata… IQ2_XS: 0.0 / 0.0 GB" with no progress for the ~5 GB MTP download. 3. Assuming it is stuck, cancel (or close the app), then retry. **Actual** - `native-jobs.json` reports the model part as `done_gb:0,total_gb:0` for the whole MTP download. - After cancel, setup.py exits 1 (`strata-mcp: setup ended with exit code 1`), but its child `mtp_fetch.py` keeps writing. setup.log shows progress lines after the exit line, and `mtp-manifest.json` was written 4 minutes after the job was marked failed. - On retry, a new mtp_fetch appends to the same tensor file while the orphan is still running. The orphan then dies with `OSError: [Errno 9] Bad file descriptor` at `mtp_fetch.py:285/288` (`open(path, "ab")` / `f.write`). - The job never reaches step 7, so no `strata-*.json` run config is written and Settings → Storage shows "No downloaded models" even though all GGUF shards are verified. **Expected** - MTP download progress is shown (it already prints per-tensor % to stderr). - Cancel ends the whole process tree (`proc_kill_tree` uses `taskkill /T /F`, yet the grandchild survived here), or mtp_fetch holds a lock so two instances cannot append to the same file. - Storage indicates "downloaded, preparation incomplete" instead of "No downloaded models". **Workaround:** Run the install again without cancelling. Shards (`.done`) and the pack are skipped, and the MTP tensors pass `mtp_fetch.py verify`.
Author
Owner

@github-actions[bot] commented on GitHub (Oct 19, 2026):

Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

  • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".

Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

Details: CONTRIBUTING.md

<!-- gh-comment-id:6276721236 --> @github-actions[bot] commented on GitHub (Oct 19, 2026): Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing: - [ ] Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes". Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment `/reopen`. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@github-actions[bot] commented on GitHub (Oct 19, 2026):

Thanks, this follows the format now.

<!-- gh-comment-id:6276740189 --> @github-actions[bot] commented on GitHub (Oct 19, 2026): Thanks, this follows the format now.
Author
Owner

@Niko1221 commented on GitHub (Oct 20, 2026):

Thank you for tracing this so closely, it led straight to the fix. In 0.2.1 the draft-layer download shows progress, only one writer works per folder, and a cancel or a killed setup ends the whole process tree on Windows (the child is snapshotted and the fetch also ends with its parent).

This is in Strata 0.2.1: https://github.com/Niko1221/Strata/releases/tag/v0.2.1

<!-- gh-comment-id:6286727991 --> @Niko1221 commented on GitHub (Oct 20, 2026): Thank you for tracing this so closely, it led straight to the fix. In 0.2.1 the draft-layer download shows progress, only one writer works per folder, and a cancel or a killed setup ends the whole process tree on Windows (the child is snapshotted and the fetch also ends with its parent). This is in Strata 0.2.1: https://github.com/Niko1221/Strata/releases/tag/v0.2.1
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1316
No description provided.