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

Crash when joining a shape file to a csv file #15721

Closed
qgib opened this issue Oct 11, 2012 · 9 comments
Closed

Crash when joining a shape file to a csv file #15721

qgib opened this issue Oct 11, 2012 · 9 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Vectors Related to general vector layer handling (not specific data formats)

Comments

@qgib
Copy link
Contributor

qgib commented Oct 11, 2012

Author Name: Alister Hood (@AlisterH)
Original Redmine Issue: 6501
Affected QGIS version: master
Redmine category:vectors


In QGIS 1.8 I can open a csv file and a shape file and use the "Joins" tab in the properties dialog of each layer to join the other layer to it.

In QGIS master I can join a csv file to a shape file, but if I try to join a shape file to a csv file it crashes.

I have only tested in Windows, with OSGeo4W builds.


@qgib
Copy link
Contributor Author

qgib commented Oct 11, 2012

Author Name: Marco Hugentobler (@mhugent)


Could you share sample data?

@qgib
Copy link
Contributor Author

qgib commented Oct 11, 2012

Author Name: Marco Hugentobler (@mhugent)


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Oct 12, 2012

Author Name: Alister Hood (@AlisterH)


  • 4971 was configured as Addresses.zip

@qgib
Copy link
Contributor Author

qgib commented Oct 13, 2012

Author Name: Marco Hugentobler (@mhugent)


The join by attribute Address / Addresses works for me here without crash (kubuntu, developer version from yesterday). Didn't test on windows yet.

@qgib
Copy link
Contributor Author

qgib commented Oct 13, 2012

Author Name: Alister Hood (@AlisterH)


I just built master on Arch, and it crashes there:

Debug: src/core/qgsvectorlayer.cpp: 796: (drawRendererV2) Total features processed 3
Debug: src/core/qgsmaprenderer.cpp: 513: (render) Layer rendered without issues
Debug: src/core/qgsmaprenderer.cpp: 359: (render) Rendering at layer item owners20121014035344760
Debug: src/core/qgsmaprenderer.cpp: 367: (render) If there is a QPaintEngine error here, it is caused by an emit call
Debug: src/core/qgsmaprenderer.cpp: 384: (render) layer owners:  minscale:0  maxscale:1e+08  scaledepvis:0  extent:Empty
Debug: src/core/qgscoordinatetransform.cpp: 450: (transformBoundingBox) Entering transformBoundingBox...
Debug: src/core/qgscoordinatetransform.cpp: 498: (transformBoundingBox) Projected extent: 172.0680848364671363,-43.7086454622398648 : 172.1567415246000223,-43.6415194306657028
Debug: src/core/qgsmaprenderer.cpp: 403: (render)   extent 1: 172.0680848364671363,-43.7086454622398648 : 172.1567415246000223,-43.6415194306657028
Debug: src/core/qgsmaprenderer.cpp: 404: (render)   extent 2: Empty
Debug: src/core/qgsmaprenderer.cpp: 513: (render) Layer rendered without issues
Debug: src/core/qgsmaprenderer.cpp: 553: (render) Done rendering map layers
Debug: src/core/qgsvectorlayer.cpp: 327: (drawLabels) Starting draw of labels: Addresses20121014035340652
Debug: src/core/qgscoordinatetransform.cpp: 450: (transformBoundingBox) Entering transformBoundingBox...
Debug: src/core/qgscoordinatetransform.cpp: 498: (transformBoundingBox) Projected extent: 172.0680848364671363,-43.7086454622398648 : 172.1567415246000223,-43.6415194306657028
Debug: src/core/qgspallabeling.cpp: 1367: (drawLabeling) LABELING work:  0 ms ... labels# 0
Debug: src/core/qgspallabeling.cpp: 1520: (drawLabeling) LABELING draw:  0 ms
Debug: src/core/qgsmaprenderer.cpp: 631: (render) Rendering completed in (seconds): 0.019
Debug: src/app/qgscustomization.cpp: 776: (customizeWidget) objectName = QgsVectorLayerPropertiesBase event type = 17
Debug: src/app/qgscustomization.cpp: 778: (customizeWidget) QgsVectorLayerProperties x QDialog
Debug: src/app/qgscustomization.cpp: 776: (customizeWidget) objectName = QgsAddJoinDialogBase event type = 17
Debug: src/app/qgscustomization.cpp: 778: (customizeWidget) QgsAddJoinDialog x QDialog
Debug: src/providers/ogr/qgsogrprovider.cpp: 782: (nextFeature) Feature is null

Program received signal SIGSEGV, Segmentation fault.
0x0820d4ca in QgsLabelingGui::layerSettings() ()
(gdb) bt
#_0  0x0820d4ca in QgsLabelingGui::layerSettings() ()
#_1  0x0820dfdb in QgsLabelingGui::apply() ()
#_2  0x083db970 in ?? ()
#_3  0xb49152a5 in QDialog::accepted() () from /usr/lib/libQtGui.so.4
#_4  0xb4915388 in QDialog::done(int) () from /usr/lib/libQtGui.so.4
#_5  0xb4913c2a in QDialog::accept() () from /usr/lib/libQtGui.so.4
#_6  0xb49153ef in ?? () from /usr/lib/libQtGui.so.4
#_7  0xb4efab76 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#_8  0xb4826545 in QDialogButtonBox::accepted() () from /usr/lib/libQtGui.so.4
#_9  0xb4826688 in ?? () from /usr/lib/libQtGui.so.4
#_10 0xb4efab76 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#_11 0xb4aed95d in QAbstractButton::clicked(bool) () from /usr/lib/libQtGui.so.4
#_12 0xb47f541d in ?? () from /usr/lib/libQtGui.so.4
#_13 0xb47f5c6b in ?? () from /usr/lib/libQtGui.so.4
#_14 0xb47f5f26 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQtGui.so.4
#_15 0xb44340cf in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#_16 0xb47f52e2 in QAbstractButton::event(QEvent*) () from /usr/lib/libQtGui.so.4
#_17 0xb4895fe8 in QPushButton::event(QEvent*) () from /usr/lib/libQtGui.so.4
#_18 0xb43db02c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#_19 0xb43e0512 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#_20 0xb58d0ae1 in QgsApplication::notify(QObject*, QEvent*) () from /usr/lib/libqgis_core.so.1.9.0
#_21 0xb4ee28fe in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#_22 0xb43dbe94 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/libQtGui.so.4
#_23 0xb4464395 in ?? () from /usr/lib/libQtGui.so.4
#_24 0xb4463043 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#_25 0xb448c664 in ?? () from /usr/lib/libQtGui.so.4
#_26 0xb3a496e3 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#_27 0xb3a49a80 in g_main_context_iterate.isra.21 () from /usr/lib/libglib-2.0.so.0
#_28 0xb3a49b61 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#_29 0xb4f1463f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#_30 0xb448c24a in ?? () from /usr/lib/libQtGui.so.4
#_31 0xb4ee13dc in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#_32 0xb4ee16d1 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#_33 0xb4914b1d in QDialog::exec() () from /usr/lib/libQtGui.so.4
#_34 0x0813d22e in QgisApp::showLayerProperties(QgsMapLayer*) ()
#_35 0x0813d50c in QgisApp::layerProperties() ()
#_36 0x083cdcef in QgisApp::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) ()
#_37 0xb4efab76 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#_38 0xb43d400d in QAction::triggered(bool) () from /usr/lib/libQtGui.so.4
#_39 0xb43d42ac in QAction::activate(QAction::ActionEvent) () from /usr/lib/libQtGui.so.4
#_40 0xb4880f85 in ?? () from /usr/lib/libQtGui.so.4
#_41 0xb4888096 in ?? () from /usr/lib/libQtGui.so.4
#_42 0xb4888fe5 in QMenu::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQtGui.so.4
#_43 0xb44340cf in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#_44 0xb48894dc in QMenu::event(QEvent*) () from /usr/lib/libQtGui.so.4
#_45 0xb43db02c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#_46 0xb43e0512 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#_47 0xb58d0ae1 in QgsApplication::notify(QObject*, QEvent*) () from /usr/lib/libqgis_core.so.1.9.0
#_48 0xb4ee28fe in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#_49 0xb43dbe94 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/libQtGui.so.4
#_50 0xb446423f in ?? () from /usr/lib/libQtGui.so.4
#_51 0xb4463043 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#_52 0xb448c664 in ?? () from /usr/lib/libQtGui.so.4
#_53 0xb3a496e3 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#_54 0xb3a49a80 in g_main_context_iterate.isra.21 () from /usr/lib/libglib-2.0.so.0
#_55 0xb3a49b61 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#_56 0xb4f14621 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#_57 0xb448c24a in ?? () from /usr/lib/libQtGui.so.4
#_58 0xb4ee13dc in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#_59 0xb4ee16d1 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#_60 0xb4885887 in QMenu::exec(QPoint const&, QAction*) () from /usr/lib/libQtGui.so.4
#_61 0x0837682f in QgsLegend::handleRightClickEvent(QTreeWidgetItem*, QPoint const&) ()
#_62 0x083773a4 in QgsLegend::mousePressEvent(QMouseEvent*) ()
#_63 0xb4434379 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#_64 0xb483fc25 in QFrame::event(QEvent*) () from /usr/lib/libQtGui.so.4
#_65 0xb48d0513 in QAbstractScrollArea::viewportEvent(QEvent*) () from /usr/lib/libQtGui.so.4
#_66 0xb4970a7c in QAbstractItemView::viewportEvent(QEvent*) () from /usr/lib/libQtGui.so.4
#_67 0xb49bb0f7 in QTreeView::viewportEvent(QEvent*) () from /usr/lib/libQtGui.so.4
#_68 0xb48d2d06 in ?? () from /usr/lib/libQtGui.so.4
#_69 0xb4ee2a6e in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#_70 0xb43daffd in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#_71 0xb43e0512 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#_72 0xb58d0ae1 in QgsApplication::notify(QObject*, QEvent*) () from /usr/lib/libqgis_core.so.1.9.0
---Type <return> to continue, or q <return> to quit---
#_73 0xb4ee28fe in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#_74 0xb43dbe94 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/libQtGui.so.4
#_75 0xb4464395 in ?? () from /usr/lib/libQtGui.so.4
#_76 0xb4463043 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#_77 0xb448c664 in ?? () from /usr/lib/libQtGui.so.4
#_78 0xb3a496e3 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#_79 0xb3a49a80 in g_main_context_iterate.isra.21 () from /usr/lib/libglib-2.0.so.0
#_80 0xb3a49b61 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#_81 0xb4f14621 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#_82 0xb448c24a in ?? () from /usr/lib/libQtGui.so.4
#_83 0xb4ee13dc in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#_84 0xb4ee16d1 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#_85 0xb4ee696a in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#_86 0xb43d8eb4 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#_87 0x081048b6 in main ()


@qgib
Copy link
Contributor Author

qgib commented Oct 13, 2012

Author Name: Alister Hood (@AlisterH)


Marco Hugentobler wrote:

The join by attribute Address / Addresses works for me here without crash (kubuntu, developer version from yesterday). Didn't test on windows yet.

I'm not sure you understand my description of the problem. I can join the csv (Address field) to the shp (Addresses field). But it crashes if I try to join the shp (Addresses field) to the csv (Address field).

@qgib
Copy link
Contributor Author

qgib commented Oct 14, 2012

Author Name: Marco Hugentobler (@mhugent)


Ok, I see.
This was fixed in the meantime (the bugfix for #15722 fixed also this one).


  • status_id was changed from Feedback to Resolved

@qgib
Copy link
Contributor Author

qgib commented Nov 26, 2012

Author Name: Werner Macho (Werner Macho)


Tested with provided data in both join directions and it works
As this works for me I think we could close this (as it still shows up in the list of blockers - but as resolved)
or is it meant to show up?

@qgib
Copy link
Contributor Author

qgib commented Dec 13, 2012

Author Name: Giovanni Manghi (@gioman)


  • resolution was changed from to fixed
  • status_id was changed from Resolved to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Vectors Related to general vector layer handling (not specific data formats) labels May 24, 2019
@qgib qgib closed this as completed May 24, 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! Vectors Related to general vector layer handling (not specific data formats)
Projects
None yet
Development

No branches or pull requests

1 participant