Bug report #17636

QGIS crashes when a layer is removed while loading the attribute table

Added by Alexandre Neto almost 7 years ago. Updated over 6 years ago.

Status:Closed
Priority:High
Assignee:Alessandro Pasotti
Category:Attribute table
Affected QGIS version:2.18.14 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:Yes Resolution:fixed/implemented
Crashes QGIS or corrupts data:Yes Copied to github as #:25533

Description

If you try to remove a layer while it's attribute table is still loading. QGIS Crashes.

To replicate:

- Get a layer with lots of features, and load it in QGIS
- Open the attribute table
- While it is still openning, remove the layer from the Layers panel.

I got this with a 1.5 Gb CSV from Geonames.

Associated revisions

Revision e479b715
Added by Alessandro Pasotti almost 7 years ago

[bugfix] Do not crash when layer is destroyed while loading

Fixes #17636 QGIS crashes when a layer is removed
while loading the attribute table

History

#1 Updated by Giovanni Manghi almost 7 years ago

  • Operating System deleted (Linux - ubuntu 16.04)
  • Affected QGIS version changed from master to 2.18.14
  • Priority changed from Normal to High

Confirmed here with a 2GB GPKG, on Windows. It affects also 2.18.14.

#2 Updated by Alessandro Pasotti almost 7 years ago

  • Assignee set to Alessandro Pasotti

looking ...

#3 Updated by Alessandro Pasotti almost 7 years ago

  • Status changed from Open to In Progress
  • Pull Request or Patch supplied changed from No to Yes

PR: https://github.com/qgis/QGIS/pull/5831

It has been quite a challenge ...

#4 Updated by Anonymous almost 7 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100

#5 Updated by Giovanni Manghi over 6 years ago

  • Resolution set to fixed/implemented

Also available in: Atom PDF