-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
it is not possible to save a project in the geopackage #36832
Comments
Hi @pigreco, I've tested the procedure using QGIS 3.10.6 and QGIS 3.12.3 (standalone installers) on Windows 10 and it seems the bug is only in QGIS 3.12.3, while QGIS 3.10.6 stores the project into the GeoPackage without problem. |
I did the same test (profile not new) in 3.10.6 and with new geopackage , it works! But if I use an old geopackage, I can't save the project. For 3.12 it is not important, it will be out soon, but in the master the problem persists. Thanks for your interest. -- -- EDIT
|
other comments:
geopackage |
@pigreco with QGIS master on Linux I'm able to save a project in your GPKG https://github.com/qgis/QGIS/files/4705440/materiale_didattico.zip At the end of the operation the project shows in the QGIS Browser and loads as expected. |
@pigreco is this problem only on windows? |
i only use windows I update you |
It's working fine on Linux, so let's assume it's windows-only for now. |
I've tested in ubuntu 18.04 with 3.12.3-București and I can confirm that it works. |
@pigreco and it works fine also on master on Windows here... |
@pigreco and on 3.12/Windows too... |
I can't, maybe it's just my problem! |
@pigreco I would suggest having a completely clean Virtual Machine (you can download the Windows ISO from the MS site) and use to double check if what you are seeing on your work machine confirms or not. |
your suggestion is good, |
@pigreco you do much more difficult things with QGIS and databases... ;) |
Hi @pigreco, @elpaso, @gioman, as previously already reported, I can confirm the first described bug, following the described procedure with alaska.shp as layer, occurring on Windows 10 64 bit using QGIS 3.12.3 (standalone installer) with a new clean profile: It also occurs using QGIS 3.13.0-Master code revision 81abbbb May 29th 2020 (OSGeo4W installer): |
Then maybe the described procedure is not clear. Can you tell what are the steps to follow? |
I've just followed these #36832 (comment) very steps:
then the project is not saved and an error window is displayed with the following text:
|
@agiudiceandrea seen the error. What it makes the difference if is the connection to the GPKG is added manually or automatically as described in step 1. If the connection created in step1 is removed, then re-created manually then it works as expected. |
@agiudiceandrea pretty unlikely because that was exactly what I was testing (besides the shares paths). I'm more thinking at a side effect of other issues that I'm fixing now #36972 @gioman can you please clarify? I couldn't reproduce on windows master with the instructions above (I'm not using a network share either). |
I can confirm.
I think I've spotted your issue during the test in my previous screencast (here an excerpt) with 3.13-master (but not with 3.12.3, nor 3.10.6): Anyway, I can reproduce the original issue without using drag and drop and without importing any layer in the GeoPackage. Here a minimum set of steps to reproduce the bug:
then the project is not saved and an error window is displayed with the following text:
|
@elpaso is as @agiudiceandrea said, create a new database from the browser > it will auto-add a connection. At this point saving a project using this connection will fail. If you remove that connection and recreate it manually it will work. |
@agiudiceandrea and you were right ... it's a side effect of the network patch. I'm able to reproduce it now. |
Maybe changing
to errCause = _executeSql( uri, sql );
like is in
could fix the issue? |
@agiudiceandrea nope, the root of the issue is in Have a look to the settings file and you will see that depending on how you store the connections it is stored ad |
@agiudiceandrea anyway I'll check if that difference in _executeSql make sense. |
... in a particular sequence of connection creation, fixes qgis#36832
I'd really like some tests from the windows users on this patch:
The problems are due to the different ways windows uses to store paths, I put code in place to normalize it but there are no automated tests. |
how do i test ?? |
@pigreco wait for the nightly build please, MXE builds are unfortunately no longer available. |
Good morning, here is a video. |
... in a particular sequence of connection creation, fixes qgis#36832 (cherry picked from commit 2d3c36f)
Starting from a new profile in QGIS MASTER, I can't save the project in a newly created geopackage.
how to reproduce the problem
video demo master 3.13.55:
https://www.loom.com/share/1ff8fbc3e36a4a6888ce12ab35122ceb
OSGeo4W64
the problem is present in all versions 3.10, 3.12 and master
The text was updated successfully, but these errors were encountered: