Bug report #20893

QGIS crash using virtual layer in a layout

Added by Stephan Burges over 5 years ago. Updated over 5 years ago.

Status:Closed
Priority:High
Assignee:Julien Cabieces
Category:Map Composer/Printing
Affected QGIS version:3.4.3 Regression?:No
Operating System:WIN 7 64bit Easy fix?:No
Pull Request or Patch supplied:Yes Resolution:
Crashes QGIS or corrupts data:Yes Copied to github as #:28712

Description

QGIS crashes when I use a virtuallayer in a print-layout. It is possible to work in the project (create virtual layer, create the report with the vl, change some things, etc.. Storing and closing the project is ok, but opening again crashes QGIS.

Crash.zip (322 KB) Stephan Burges, 2018-12-29 12:34 PM

Crash_2.zip (43.3 KB) Stephan Burges, 2019-01-01 09:12 PM

Associated revisions

Revision bdf77ac7
Added by Julien Cabieces over 5 years ago

fixes #20893 : Update virtual layer when referenced layer update its fields

Revision 8ce8ee0b
Added by Julien Cabieces over 5 years ago

fixes #20893 : Update virtual layer when referenced layer update its fields

History

#1 Updated by Giovanni Manghi over 5 years ago

  • Priority changed from Normal to High
  • Category changed from Virtual Layers to Map Composer/Printing

I'm not even able to open this project, crashes QGIS on start.

#2 Updated by Stephan Burges over 5 years ago

Giovanni Manghi wrote:

I'm not even able to open this project, crashes QGIS on start.

Attached is a "cleaned" copy of the project and a hardcopy of the project opened with XML-Editor (Easy-XML-Editor). In the editor I have deleted the last layout (marked in the hardcopy). Without this layout you should be able to open the project...
Therefore the bug might be located in this section

#3 Updated by Julien Cabieces over 5 years ago

  • Assignee set to Julien Cabieces
  • Pull Request or Patch supplied changed from No to Yes

The problem comes from the fact that your virtuallayer is based on a joined layer.

Proposed PR correcting the issue : https://github.com/qgis/QGIS/pull/8940

#4 Updated by Julien Cabieces over 5 years ago

  • % Done changed from 0 to 100
  • Status changed from Open to Closed

Also available in: Atom PDF