Bug report #16302

Quick calculation bar causes QGIS crash when updating fields with aliases.

Added by Lukasz Debek over 2 years ago. Updated over 2 years ago.

Status:Closed
Priority:High
Assignee:-
Category:Attribute table
Affected QGIS version:2.18.4 Regression?:Yes
Operating System: Easy fix?:No
Pull Request or Patch supplied:Yes Resolution:
Crashes QGIS or corrupts data:Yes Copied to github as #:24212

Description

Using quick calculation bar for updating fields with aliases causes QGIS crash.
To reproduce the problem add a layer (checked with shapefiles and postgis layers), set an alias for any field and try to update values inside this field using the quick calculation bar.
Checked on QGIS 2.18.4 and 2.18.3 from OSGeo4W 64bit installer.

qcb.jpg (30.5 KB) Lukasz Debek, 2017-03-07 02:51 AM

alias_update.zip (979 KB) Saber Razmjooei, 2017-03-07 03:05 AM


Related issues

Related to QGIS Application - Bug report #16187: Expression Dialog causing minidump and crash when field a... Closed 2017-02-13

Associated revisions

Revision a0c6872f
Added by Matthias Kuhn over 2 years ago

Fix crash when using expression bar on aliased field

Fix #16302

Revision 477d1bdf
Added by Matthias Kuhn over 2 years ago

Fix crash when using expression bar on aliased field

Fix #16302

History

#1 Updated by Giovanni Manghi over 2 years ago

  • Status changed from Open to Feedback

sorry to ask, what do you mean with "quick calculator"?

#2 Updated by Saber Razmjooei over 2 years ago

  • Status changed from Feedback to Open

Hi Gio,

It is top of the attribute table.

#3 Updated by Giovanni Manghi over 2 years ago

  • Status changed from Open to Feedback

Saber Razmjooei wrote:

Hi Gio,

It is top of the attribute table.

then I cannot confirm.
Please attach sample project/data and expect operations that lead to the crash.

#4 Updated by Lukasz Debek over 2 years ago

Giovanni Manghi wrote:

sorry to ask, what do you mean with "quick calculator"?

I mean bar that shows up in attribute table when you start edit session.

#5 Updated by Giovanni Manghi over 2 years ago

  • Priority changed from High to Severe/Regression
  • Status changed from Feedback to Open

Lukasz Debek wrote:

Giovanni Manghi wrote:

sorry to ask, what do you mean with "quick calculator"?

I mean bar that shows up in attribute table when you start edit session.

right, then is confirmed.

#6 Updated by Saber Razmjooei over 2 years ago

  • Operating System deleted (Windows 7)
  • File alias_update.zip added
  • OS version deleted (x64)

Here is an example file:
Contin. column is aliased to Continent.

  1. Open the attribute for europe
  2. Make it editable
  3. Try to update Continent column

Segmentation fault in terminal.

I can also confirm it in master.

#7 Updated by Giovanni Manghi over 2 years ago

possibly related to #16187

#8 Updated by Giovanni Manghi over 2 years ago

  • Regression? set to Yes

#9 Updated by Giovanni Manghi over 2 years ago

  • Priority changed from Severe/Regression to High

#10 Updated by Giovanni Manghi over 2 years ago

  • Easy fix? set to No

#11 Updated by Matthias Kuhn over 2 years ago

  • Description updated (diff)

#12 Updated by Giovanni Manghi over 2 years ago

  • Pull Request or Patch supplied changed from No to Yes

#13 Updated by Anonymous over 2 years ago

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

#14 Updated by Matthias Kuhn over 2 years ago

  • Status changed from Closed to In Progress

Only applied to master yet

#15 Updated by Anonymous over 2 years ago

  • Status changed from In Progress to Closed

Also available in: Atom PDF