Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qgis crashes when try to identify a layer with duplicated fields #29937

Closed
qgib opened this issue May 22, 2019 · 15 comments · Fixed by #30100
Closed

Qgis crashes when try to identify a layer with duplicated fields #29937

qgib opened this issue May 22, 2019 · 15 comments · Fixed by #30100
Assignees
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption High Priority Map Tools Related to non-digitizing map tools Regression Something which used to work, but doesn't anymore

Comments

@qgib
Copy link
Contributor

qgib commented May 22, 2019

Author Name: KYLE FELIPE VIEIRA ROBERTO (KYLE FELIPE VIEIRA ROBERTO)
Original Redmine Issue: 22126
Affected QGIS version: 3.4.7
Redmine category:map_tools


User Feedback

Trying to use identify

Report Details

Crash ID: 2b12b3653d5ad5dafac8dd1f7b04fa880dcc89d2

Stack Trace

QgsFilledMarkerSymbolLayerWidget::symbolLayer :
QgsEditorWidgetWrapper::field :
QgsAttributeFormEditorWidget::QgsAttributeFormEditorWidget :
QgsAttributeForm::createWidgetFromDef :
QgsAttributeForm::createWidgetFromDef :
QgsAttributeForm::init :
QgsAttributeForm::QgsAttributeForm :
QgsDualView::init :
QgsRelationEditorWidget::updateUi :
QMetaObject::activate :
QgsCollapsibleGroupBoxBasic::collapsedStateChanged :
QgsCollapsibleGroupBoxBasic::showEvent :
QWidget::event :
QGroupBox::event :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QWidgetPrivate::show_helper :
QWidget::setVisible :
QWidgetPrivate::showChildren :
QWidgetPrivate::show_helper :
QWidgetPrivate::showChildren :
QWidgetPrivate::show_helper :
QWidget::setVisible :
QWidgetPrivate::showChildren :
QWidgetPrivate::show_helper :
QWidget::setVisible :
QWidgetPrivate::showChildren :
QWidgetPrivate::show_helper :
QWidget::setVisible :
QWidgetPrivate::showChildren :
QWidgetPrivate::show_helper :
QWidgetPrivate::showChildren :
QWidgetPrivate::show_helper :
QWidget::setVisible :
QWidgetPrivate::showChildren :
QWidgetPrivate::show_helper :
QWidget::setVisible :
QWidgetPrivate::showChildren :
QWidgetPrivate::show_helper :
QWidgetPrivate::showChildren :
QWidgetPrivate::show_helper :
QWidget::setVisible :
QWidgetPrivate::showChildren :
QWidgetPrivate::show_helper :
QWidget::setVisible :
QWidgetPrivate::showChildren :
QWidgetPrivate::show_helper :
QWidget::setVisible :
QWidgetPrivate::showChildren :
QWidgetPrivate::show_helper :
QWidget::setVisible :
QWidgetPrivate::showChildren :
QWidgetPrivate::show_helper :
QWidget::setVisible :
QDialog::setVisible :
QgsAttributeDialog::show :
QgsFeatureAction::viewFeatureForm :
QgsIdentifyResultsDialog::featureForm :
QgsIdentifyResultsDialog::show :
QgsMapToolIdentifyAction::identifyFromGeometry :
QMetaObject::activate :
QgsMapToolSelect::qt_static_metacall :
QgsMapToolSelect::setSelectionMode :
QgsMapToolIdentifyAction::canvasReleaseEvent :
QgsMapCanvas::mouseReleaseEvent :
QWidget::event :
QFrame::event :
QGraphicsView::viewportEvent :
QCoreApplicationPrivate::sendThroughObjectEventFilters :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QApplicationPrivate::sendMouseEvent :
QSizePolicy::QSizePolicy :
QSizePolicy::QSizePolicy :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QGuiApplicationPrivate::processMouseEvent :
QWindowSystemInterface::sendWindowSystemEvents :
QEventDispatcherWin32::processEvents :
TranslateMessageEx :
TranslateMessage :
QEventDispatcherWin32::processEvents :
qt_plugin_query_metadata :
QEventLoop::exec :
QCoreApplication::exec :
main :
BaseThreadInitThunk :
RtlUserThreadStart :

QGIS Info
QGIS Version: 3.4.7-Madeira
QGIS code revision: 5c56989
Compiled against Qt: 5.11.2
Running against Qt: 5.11.2
Compiled against GDAL: 2.4.1
Running against GDAL: 2.4.1

System Info
CPU Type: x86_64
Kernel Type: winnt
Kernel Version: 6.1.7601

@qgib
Copy link
Contributor Author

qgib commented May 23, 2019

Author Name: Giovanni Manghi (@gioman)


Please try with a new/clean QGIS profile, no 3rd party plugins installed.


  • crashes_corrupts_data was changed from 0 to 1
  • priority_id was changed from Normal to High
  • status_id was changed from Open to Feedback
  • category_id was changed from Unknown to Map Tools

@qgib qgib added Feedback Waiting on the submitter for answers Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Map Tools Related to non-digitizing map tools Crash/Data Corruption labels May 25, 2019
@zoran-cuckovic
Copy link

Same thing for me : QGIS 3.4.0 (on Windows) keeps freezing when I use Identify tool on rasters. It seems to launch a process each time I use the tool until it saturates the live memory.

@nyalldawson
Copy link
Collaborator

@zoran-cuckovic this was fixed in 3.4.7 - please update

@kylefelipe
Copy link

kylefelipe commented May 31, 2019

Hi guys! I found the issue...
I was using Drag & Drop Form, and on this form, i had a field that i need to show 2 times, at different parts, and this makes qgis crash.
So, i removed the duplicated field, and it works like a charm.
On version 2.18.x i did not have this issue.

Same happens on 3.4.8

@gioman
Copy link
Contributor

gioman commented Jun 3, 2019

was using Drag & Drop Form, and on this form, i had a field that i need to show 2 times, at different parts, and this makes qgis crash.
So, i removed the duplicated field, and it works like a charm.

@kylefelipe please attach a sample project+data that shows the problem.

@kylefelipe
Copy link

@gioman, Done.

sample_project.zip

Sources i have tested:
Postgis layers;
Spatialite/Sqlite layers;
Geopackage layers.

In all the same problem occurred

I made a test using a scratch layer and it woks fine.

test_scratch.zip

@gioman
Copy link
Contributor

gioman commented Jun 3, 2019

sample_project.zip

@kylefelipe this contains only a non spatial table, nothing can be used to identify anything.

@kylefelipe
Copy link

@gioman here is....
sample_project.zip

When open attribute table, it crashes to.

@gioman
Copy link
Contributor

gioman commented Jun 3, 2019

@gioman here is....
sample_project.zip

When open attribute table, it crashes to.

@kylefelipe same as before: the project opens (no crash) and has only 1 non-spatial table with no records in it (so also nothing to identify). Saving something in this not-spatial table also works ok.

@kylefelipe
Copy link

sample_2.zip

@kylefelipe
Copy link

A print!
image

@gioman
Copy link
Contributor

gioman commented Jun 3, 2019

sample_2.zip

this contains no data. @kylefelipe

@kylefelipe
Copy link

@gioman OMG
sample_project.zip

@gioman gioman removed the Feedback Waiting on the submitter for answers label Jun 3, 2019
@gioman
Copy link
Contributor

gioman commented Jun 3, 2019

@gioman OMG
sample_project.zip

good. This is confirmed to crash QGIS (master on Linux here) on identify: removing the duplicate fields from the form and... no crash.

@kylefelipe
Copy link

kylefelipe commented Jun 3, 2019

@gioman If we do the same, but using a scratch layer, it works like a charm.
Qgis 2.18.X it works well to...

@gioman gioman added the Regression Something which used to work, but doesn't anymore label Jun 3, 2019
@elpaso elpaso self-assigned this Jun 5, 2019
elpaso added a commit to elpaso/QGIS that referenced this issue Jun 5, 2019
@elpaso elpaso changed the title Qgis crashes when try to identify a layer Qgis crashes when try to identify a layer with duplicated fields Jun 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption High Priority Map Tools Related to non-digitizing map tools Regression Something which used to work, but doesn't anymore
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants