Windows: sync fails with [WinError 32] when remote user deletes a GeoPackage that is open in QGIS
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- python
- Ambito
- desktop, operating-systems
Direzione di ricerca
Inizia riproducendo lo scenario di sincronizzazione Windows dell'issue e segui la gestione della pull-action del plugin per i file GeoPackage eliminati mentre il layer rimane aperto in QGIS. Il lavoro è completato quando il caso del file bloccato non produce più un errore client non gestito: il layer viene scaricato prima dell'eliminazione oppure l'utente riceve un'istruzione chiara per chiuderlo.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Python
- Stelle
- 45
- Fork
- 21
- Merge medio
- 3g 13h
- PR unite (30g)
- 2
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di MerginMaps/qgis-plugin
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
MerginMaps/qgis-plugin#953 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
MerginMaps/qgis-plugin#848 · 1 commento ·
-
Project history and Remove locally fail in projects with long paths on Windows (> 260 characters)Apertabug windows
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
MerginMaps/qgis-plugin#967 ·
-
View changes and schema check use the wrong base copy for GeoPackages in subfoldersForse già presa @harminius l’ha presa 6 giorni fa. Apertabug
MerginMaps/qgis-plugin#963 · 1 assegnatario ·
-
Error when syncing project.Forse già presa @harminius l’ha presa 7 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 54/100
MerginMaps/qgis-plugin#960 · 2 commenti · 1 assegnatario ·
Tutte le issue di MerginMaps/qgis-plugin
Issue simili
-
automated endpoint-dead needs-curation
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
almanac-data/climate-almanac#138 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
OceanDataTools/openrvdas#760 ·
I maintainer di solito rispondono entro 1 giorno
-
level/subtask type/enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
wazuh/wazuh-virtual-machines#1091 ·
I maintainer di solito rispondono entro 1 giorno
-
Python: Bug: ChatMessageContent.from_element drops AudioContent and BinaryContent into raw TextContentForse già presa @halcyon-past l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
microsoft/semantic-kernel#14824 · 1 commento ·
I maintainer di solito rispondono entro 3 giorni
-
help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
stack314/django-neolith#142 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno