Bug report #2025

QGIS crashes after editing shapefiles w/o dbf file

Added by zicke - over 14 years ago. Updated over 14 years ago.

Assignee:nobody -
Category:Data Provider
Affected QGIS version: Regression?:No
Operating System:RedHat Easy fix?:No
Pull Request or Patch supplied: Resolution:fixed
Crashes QGIS or corrupts data: Copied to github as #:12085


1. Load Shapefile
2. Toggle Editing
3. Select some features
4. Merge Selected Features
5. Toggle Editing -> Save
6. QGIS crashes

gdb backtrace is attached.

I'm using QGIS 1.4.0-Trunk (code revision 11822).

gdb_bt.txt Magnifier - gdb backtrace (5.56 KB) zicke -, 2009-10-21 12:34 AM

Associated revisions

Revision 4dd9ac6d
Added by Jürgen Fischer over 14 years ago

fix #2025

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11824 c8812cc2-4d05-0410-92ff-de0c093fc19c

Revision dc92ab0f
Added by Jürgen Fischer over 14 years ago

fix #2025

git-svn-id: http://svn.osgeo.org/qgis/trunk@11824 c8812cc2-4d05-0410-92ff-de0c093fc19c


#1 Updated by Marco Hugentobler over 14 years ago

Hm, it works without crash for me here. Could you add a sample dataset and a description which features you select exactly for merging?
From the backtrace, it seems there is an error writing to the dbf file. So I wonder if there is a problem related to the dbf file, e.g. file permission. Please also report your GDAL version.


#2 Updated by zicke - over 14 years ago

It was a dbf file problem since it wasn't existing. QGIS is able to load a shapefile w/o dbf file and it is possible to move vertex points etc. But QGIS crashes after trying to save the edits.


#3 Updated by Giovanni Manghi over 14 years ago

Please then consider changing the title of this ticket.

#4 Updated by Jürgen Fischer over 14 years ago

  • Resolution set to fixed
  • Status changed from Open to Closed

fixed in dc92ab0f (SVN r11825): shapes files without DBFs lack the capability ChangeAttributeValues, so the merge tool shouldn't work on them.

Also available in: Atom PDF