Windows: sync fails with [WinError 32] when remote user deletes a GeoPackage that is open in QGIS
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- python
調査の方向性
まず issue にある Windows 同期シナリオを再現し、レイヤーが QGIS で開いたままになっている場合に、削除された GeoPackage ファイルに対する plugin の pull-action 処理を追跡します。ロックされたファイルのケースで未処理のクライアントエラーが発生しなくなれば完了です。削除前にレイヤーがアンロードされるか、ユーザーにレイヤーを閉じるよう明確な指示が表示されます。
索引モデルが issue の本文から書いたものです。
説明
Description
When a project is open in QGIS on Windows and another user (e.g. on macOS) deletes a GeoPackage file from the project, saves and syncs, the Windows client fails to apply the pull (delete) action and shows a client error instead. The GeoPackage file is locked by QGIS which prevents the plugin from deleting it during sync.
Error: Client error: Detail: Failed to apply pull actions: [WinError 32] The process cannot access the file because it is being used by another process
This issue was previously reported in #334 but was closed as duplicate. It appears to still be reproducible with current versions.
Environment
[x] PROD
Application (+ app version, build, operating system)
- QGIS: 3.40.15-Bratislava
- Mergin Maps Plugin version: TBD
- macOS: Tahoe 26.3 (syncing machine)
- Windows 11 (affected machine)
Steps to reproduce
- macOS: create a new project in Mergin Maps plugin with a GeoPackage layer
- Windows: download and open the project in Mergin Maps QGIS plugin
- macOS: delete the
.gpkgfile from the project, save and sync - Windows: sync the project in the Mergin Maps QGIS plugin → Client error appears
Actual results
Sync fails with [WinError 32] The process cannot access the file because it is being used by another process
Expected results
The plugin should handle the locked file gracefully — either close/unload the layer before deleting it during pull, or show a clear message asking the user to close the layer first.
Screenshots or logs
Conclusion
Created by Claude and supervised by a human test analyst.
- 主要言語
- Python
- スター
- 45
- フォーク
- 21
- 平均マージ
- 3日 13時間
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
MerginMaps/qgis-plugin のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
MerginMaps/qgis-plugin#953 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
MerginMaps/qgis-plugin#848 · コメント 1 件 ·
-
Project history and Remove locally fail in projects with long paths on Windows (> 260 characters)オープンbug windows
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
MerginMaps/qgis-plugin#967 ·
-
View changes and schema check use the wrong base copy for GeoPackages in subfolders対応中かも @harminius が 6 日前に担当しました。 オープンbug
MerginMaps/qgis-plugin#963 · 担当者 1 名 ·
-
Error when syncing project.対応中かも @harminius が 7 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 54/100
MerginMaps/qgis-plugin#960 · コメント 2 件 · 担当者 1 名 ·
MerginMaps/qgis-plugin の issue をすべて見る
似ている issue
-
bug(mcp): handle malformed and partial reranker responses safely対応中かも @KamilEjaz890 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
kubeflow/docs-agent#301 ·
メンテナーはふだん 4 日以内に返信
-
Update the demo docsオープン
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
pulp/pulp_workflow#78 ·
-
Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
pgadmin-org/pgadmin4#10797 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
gcivil-nyu-org/team5-mon-fall26#132 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 76/100
gcivil-nyu-org/team4-mon-fall26#291 ·
メンテナーはふだん 1 日以内に返信