-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Crash after bulk change of attribute value in shapefile #19699
Comments
Author Name: Giovanni Manghi (@gioman) notes: it affects also master it corrupts the data (qgis crashes when trying to reopen the shape) it affects also the field calculator it does not happens on qgis 2.2
|
Author Name: Salvatore Larosa (@slarosa) ogr (1.11.0) is crashing too:
this should be addressed to gdal bug tracker unless it was already fixed. I am getting the crash on 2.2, 2.4, master and 1.8 Giovanni your 2.2 which gdal version was compiled with?
|
Author Name: Giovanni Manghi (@gioman)
I tested on my Windows VM, so I tested qgis 2.2 installed with the standalone installer (and of course the gdal version it was shipped with it).
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Giovanni Manghi (@gioman) I confirm the regression (it is also affected the field calculator).
|
Author Name: Jürgen Fischer (@jef-n) Giovanni Manghi wrote:
ogrinfo shows it's a @3d Line string@ shape with all Z coordinate @too_big@. After the update, QGIS built with 1.11.1 crashes when reading the file, but so does ogrinfo 1.11.1. ogrinfo 1.10.1 however still lists it (although all Z coordinates are reported 0 after the update) and QGIS built against 1.10.1 also shows it. Smells like a GDAL regression, although I just tried 2.0.1 and didn't build master against 1.10.1.
|
Author Name: Giovanni Manghi (@gioman) Jürgen Fischer wrote:
should we close this? |
Author Name: Jürgen Fischer (@jef-n)
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Sandro Santilli (@strk) Still happens as of 69cb0c4 (2.14-pre) built and running against GDAL 1.11.1 Backtrace:
|
Author Name: Sandro Santilli (@strk)
|
Author Name: Sandro Santilli (@strk) Filed GDAL ticket here: https://trac.osgeo.org/gdal/ticket/6317 |
Author Name: Sandro Santilli (@strk) GDAL is responsible for the crash on reading, but I still don't know who's responsible for corruption on writing |
Author Name: Sandro Santilli (@strk) So the GDAL bug is that the M values are dropped when updating XYM geometries, but the output is still advertised as containing them, which makes the reader crash. Note that if the input is an XYZM shapefile the M is dropped anyway. |
Author Name: Even Rouault (@rouault) Will be fixed in upcoming GDAL 1.11.4 & 2.0.2 |
Author Name: Sandro Santilli (@strk) I confirm current GDAL trunk fixes the issue. A workaround is not trival, maybe we should just refuse to allow editing of XYM input shapefiles IFF GDAL version is known to be broken, and be noisy about it.
|
Author Name: Sandro Santilli (@strk) So now that I finally got it I'll leave a note here: A lot of work for a workaround (would imply designing an interface to let the user know what we're doing with her data etc.). |
Author Name: Sandro Santilli (@strk) closing as fixed upstream -- remember that the M value is still lost, if you want to retain it it'd still take a refactoring in OGR.
|
Author Name: Dieter De Paepe (@DieterDePaepe)
Original Redmine Issue: 11422
Affected QGIS version: master
Redmine category:data_provider/ogr
Assignee: Sandro Santilli
Following the following steps will crash QGIS:
This probably has something to do with the shapefile itself, as resaving the file removes the issue.
The text was updated successfully, but these errors were encountered: