Bug report #17636
QGIS crashes when a layer is removed while loading the attribute table
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
[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 about 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.
#3 Updated by Alessandro Pasotti about 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 about 7 years ago
- Status changed from In Progress to Closed
- % Done changed from 0 to 100
Applied in changeset qgis|e479b715947b7c518efb0864fbf2ecf6c94378c8.
#5 Updated by Giovanni Manghi almost 7 years ago
- Resolution set to fixed/implemented