-
-
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
Converting offline twice within the same instance causing unusable offline state #18945
Comments
Author Name: Giovanni Manghi (@gioman) On Linux I can't confirm the error messages and the offline db in a unusable state, but I can confirm that overwriting an already existing offline db with a new one causes strange things to happen (the most obvious is the loss of features). If each time layer(s) are placed off-line is used a new offline db (no overwriting) then things are ok.
|
Author Name: Jürgen Fischer (@jef-n)
|
Author Name: Jürgen Fischer (@jef-n)
|
Author Name: Jürgen Fischer (@jef-n)
|
Author Name: Jürgen Fischer (@jef-n)
|
Author Name: Giovanni Manghi (@gioman) found that this is a regression since qgis 2.0.1, where overwriting the already existing offline db worked without issues. Moreover now on QGIS master on Linux it causes a crash
|
Author Name: Jürgen Fischer (@jef-n)
|
Author Name: Matthias Kuhn (@m-kuhn)
Comments?
|
Author Name: Giovanni Manghi (@gioman) Matthias Kuhn wrote:
nothing special, adding/editing one feature.
it seems to me a good plan :)
|
Author Name: Drew Nix (Drew Nix) What about a fail-back as well (to a proper online state) if converting offline fails? -- happy to see some activity here ;) |
Author Name: Alessandro Pasotti (@elpaso)
|
Author Name: Anónimo (Anónimo) Fixed in changeset "f045492ed54a528263444824e7bbf3317d6d80e2".
|
Author Name: Drew Nix (Drew Nix)
Original Redmine Issue: 10537
Affected QGIS version: master
Redmine category:c++_plugins/offline_editing
Assignee: Alessandro Pasotti
Problem Description:
Converting offline twice within the same running project instance causes unusable offline state.
Problem Result:
After which the "Convert to Offline Project" is grayed out. The project will no longer synchronize and the project is stuck in an Offline State.
If the project is saved, upon opening the same scenario applies.
The only fix to this is to open the project file in a text editor and delete the offline information and save the file. This is impossible for most of our users.
Steps to reproduce:
Open Qgis
Add PostGIS vector layer
Database > Offline Editing > Convert to Offline Project
Offline data: C:/OSGEO4W/bin/offline.sqlite
Select PostGIS vector layer
Database > Offline Editing > Syncronize
Database > Offline Editing > Convert to Offline Project
Offline data: C:/OSGEO4W/bin/offline.sqlite (Same dataset)
Errors:
table 'tog_indices' already exists
table 'log_layer_ids' already exists
table 'log_fids' already exists
table 'log_added_attrs' already exists
table 'log_added_features' already exists
table 'log_removed_features' already exists
table 'log_feature_updates' already exists
table 'log_geometry_updates' already exists
table '<PostGIS_LAYER>' already exists
The text was updated successfully, but these errors were encountered: