1

Has anyone experience regular corruption of Shapefiles when saving edits in QGIS?

Since testing the new LTR, we have had regular occurrences of the Shapefile being corrupted, and "_packed" SHP and SHX components appear in the file folder.

I have updated Bug Report #14711 with some details, but so far have no feedback or comment. We were hoping to rollout to the rest of the organisation, but with the current level of file corruption occurring, we cannot risk wider use.

I can reproduce the corruption by having a duplicate copy of the Shapefile open in the QGIS project - NOT in edit mode, just open. I can do the exact same thing with duplicate versions open in previous versions with no corruption at all. I have also seen attributes disappear or change as I saved edits with the attribute table open, indicating some mix-up with record count in the DBF and the SHX components.

If anyone else has experience similar issues and been able to resolve we would love to hear so that we can continue with the planned roll-out of the new LTR that has so many other improvements.

QGIS version = 2.14.4 (LTR)

Shapefile location = both local C drive and network locations

  • Can you provide a sample shapefile that will definitely go crazy while editing? Maybe you should link from the ticket back here. – AndreJ Jul 25 '16 at 6:11
  • I can't reproduce this in 2.14.1 or 2.16.0, shape tested with FME. I have had some similar issues in the past but not very frequent and not sure what version. – nielsgerrits Jul 25 '16 at 6:39
  • Opening two copies of the same shapefile feels like a bad idea but you must have a reason. Could you explain? – user30184 Jul 25 '16 at 8:09
  • I was able to reproduce it repeating in testing with new shapefiles every time (to ensure it wasn't related to existing data).... steps taken were (1) create new shapefile, make editable and add a few new features (2) save edits and stop editing (3) duplicate later, neither versions are currently editable (4) make one editable, and make some changes, move/add vertice, add or delete feature (even just one of the above) (4) saves edits.... bang shapefile corrupted and error message on screen (check issue tracker for message... I'm not at my PC now!) Happened for lines and polygons in a new prj – Jamie Jul 25 '16 at 8:14
  • As to why we sometimes have multiple versions open... we have some very complex templates for producing plansets. Some plans require a few features to be 'highlighted' above others, so we often have the original full layer at the bottom, a 'whitewash' layer above and then a highlighted feature layer above that with just some features showing. For SOME plans the same look could be achieve through styling of the the one layer alone, but that was a very very simplified summary of the project, we often need to bring the highlighted features above other layers, so it needs to be a duplicate. – Jamie Jul 25 '16 at 8:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.