New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
editing several layers in geopackage - database is locked #23676
Comments
Author Name: Even Rouault (@rouault) I tried with master on Linux with the attached DB and couldn't reproduce the issue (I'm attaching the simple DB I used for reference). Normally locking issues should have been fixed in 2.18.0 per #0497e4a454c7ad689a0fc7b767208f95d53266b0. Can you have provide a reproducable procedure + test DB ?
|
Author Name: Jochen Huber (@huber-j) I tried again with the sample DB you supplied and still experienced the same problem. Open QGIS, create a new project, add all layers from the DB, edit the geometry of one layer and save, edit the geometry of the second layer -> saving fails.
So this seems to be a problem which only occurs when accessing a network share via DFS (which is the standard case in our company). Interestingly, there is no problem with Spatialite DBs, so there seems to be a difference in how QGIS accesses Geopackage DBs vs. Spatialite DBs. |
Author Name: Jérôme Guélat (Jérôme Guélat) We are also experiencing this problem with QGIS 2.18.3 (OGR/GDAL 2.1.3) on Windows. |
Author Name: Ger CO (Ger CO) Same here on Win 7 and qgis 2.18.3 |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Even Rouault (@rouault) Can anyone retry with QGIS master ? Changes done in 8f3d44d should likely fix that
|
Author Name: Giovanni Manghi (@gioman)
|
Have this bug today. Geopackage on a network share, several layers edited. Last edit cannot be saved, "database is locked". Bug occured on 3.4.1 and 3.6.3. |
Author Name: Jochen Huber (@huber-j)
Original Redmine Issue: 15754
Affected QGIS version: 2.18.0
Redmine category:data_provider/ogr
In a QGIS project with several layers from a single geopackage database, the following problem frequently occurs:
Switch layer to editing mode, do geometry edits, save edits, deactivate layer editing mode.
Switch second layer to editing mode, do geometry edits, try to save edits -> Database provider errors (OGR) e.g. "failed to execute insert: database is locked".
After closing QGIS and reopening the same project, the second layer can be edited and the edits are successfully saved, but the problem occurs again when another layer from the same geopackage is edited.
Maybe this problem is related to the one in #23283.
The text was updated successfully, but these errors were encountered: