Bug report #16764

Crash when CSV file geometry column name has changed

Added by Dmitri Lebedev over 7 years ago. Updated over 7 years ago.

Status:Closed
Priority:High
Assignee:-
Category:Data Provider/Delimited Text
Affected QGIS version:2.18.9 Regression?:No
Operating System:Ubuntu 16.10 Easy fix?:No
Pull Request or Patch supplied:No Resolution:not reproducable
Crashes QGIS or corrupts data:Yes Copied to github as #:24663

Description

Sample file:

v1.csv:

id,lat,lon
1,54.83628,83.10048
2,55.91632,92.73503
3,51.84132,104.87926

1. Save this as a CSV file in a text editor.
2. Open QGIS and add this file as a CSV layer.
3. Go back to the editor, change `lat` or `lon` to anything.
4. Switch back to QGIS. It vanishes immediately.

This is only what I managed to reproduce systematically.

If you change the content of the entire CSV file, QGIS may occupy 100% of a core indefinitely, untill I kill the process.

This crash is a problem in a workflow with tools like scripts and makefiles, where I change the way a CSV file is generated, and I may change the file without noticing. And having QGIS crash completely destroys all other work done in it.

I suggest that QGIS at least ignore the new CSV file content.

History

#1 Updated by Giovanni Manghi over 7 years ago

  • Status changed from Open to Feedback
  • Priority changed from Normal to Low

I'm on ubuntu 16.04 with qgis 2.18.10 and I cannot replicate. Tested loading table as such and also as a point layer.

#2 Updated by Dmitri Lebedev over 7 years ago

@Giovanni Manghi: did you add it as a delimited text layer?

#3 Updated by Giovanni Manghi over 7 years ago

Dmitri Lebedev wrote:

@Giovanni Manghi: did you add it as a delimited text layer?

yes, then edited with kate/nano, and in QGIS nothing happened (it also does not automatically updates the fields names or values, but that is expected I guess).

#5 Updated by Giovanni Manghi over 7 years ago

  • Priority changed from Low to High

Dmitri Lebedev wrote:

Here are two videos with the bug reproduced

freezing:
https://drive.google.com/file/d/0B5R_qTMesoBVaGg5amdIcWlNVHc/view?usp=sharing

disappearing:
https://drive.google.com/file/d/0B5R_qTMesoBVTU9WZUVkX3E4TmM/view?usp=sharing

yeah did exactly that, no issues here. Waiting to see if others can confirm or not.

#6 Updated by Giovanni Manghi over 7 years ago

  • Resolution set to not reproducable
  • Status changed from Feedback to Closed

Closed for lack of feedback, please reopen if necessary.

Also available in: Atom PDF