Opened 15 years ago

Closed 15 years ago

#2025 closed bug (fixed)

QGIS crashes after editing shapefiles w/o dbf file

Reported by: zicke Owned by: nobody
Priority: critical: causes crash or data corruption Milestone: Version 1.4.0
Component: Data Provider Version: Trunk
Keywords: Cc:
Must Fix for Release: Yes Platform: RedHat
Platform Version: Awaiting user input: no

Description

  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).

Attachments (1)

gdb_bt.txt (5.6 KB ) - added by zicke 15 years ago.
gdb backtrace

Download all attachments as: .zip

Change History (8)

by zicke, 15 years ago

Attachment: gdb_bt.txt added

gdb backtrace

comment:1 by hdus, 15 years ago

Must Fix for Release: NoYes

comment:2 by mhugent, 15 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.

Marco

comment:3 by zicke, 15 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.

Stefan

comment:4 by lutra, 15 years ago

Component: DigitisingData Provider
Milestone: Version 1.4.0

comment:5 by lutra, 15 years ago

Please then consider changing the title of this ticket.

comment:6 by zicke, 15 years ago

Summary: QGIS crashes after merging objects from shapefileQGIS crashes after editing shapefiles w/o dbf file

in reply to:  6 comment:7 by jef, 15 years ago

Resolution: fixed
Status: newclosed

fixed in r11824: shapes files without DBFs lack the capability ChangeAttributeValues, so the merge tool shouldn't work on them.

Note: See TracTickets for help on using tickets.