Bug report #16764

Crash when CSV file geometry column name has changed

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

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


Sample file:



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.


#1 Updated by Giovanni Manghi over 5 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 5 years ago

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

#3 Updated by Giovanni Manghi over 5 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 5 years ago

  • Priority changed from Low to High

Dmitri Lebedev wrote:

Here are two videos with the bug reproduced



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

#6 Updated by Giovanni Manghi over 5 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