Bug report #12312

QGIS master crashed when adding a column to a layer with a joined csv

Added by Giovanni Manghi over 4 years ago. Updated over 4 years ago.

Status:Closed
Priority:Severe/Regression
Assignee:-
Category:Vectors
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed/implemented
Crashes QGIS or corrupts data:Yes Copied to github as #:20490

Description

pick a shapefile, add csv table to project and join it to shape. Open the field calculator and try add a new column and fill it with a whatever value.

[email protected]:~/git/naturalgis-web-site > qgis
Warning: loading of qgis translation failed [/usr/share/qgis/i18n//qgis_en_US]
Warning: loading of qt translation failed [/usr/share/qt4/translations/qt_en_US]
Warning: Bus::open: Can not get ibus-daemon's address.
IBusInputContext::createInputContext: no connection to ibus-daemon
Fatal: ASSERT: "attrs.size() == idx" in file /tmp/buildd/qgis-2.9.0+git20150302+74ac7f0+20trusty/src/gui/qgsattributeform.cpp, line 280
Stacktrace (piped through c++filt):
/usr/bin/qgis.bin[0x509bf0]
/usr/bin/qgis.bin(myMessageOutput(QtMsgType, char const*)+0x38)[0x509cf8]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(qt_message_output(QtMsgType, char const*)+0x21)[0x7f6b288e2bb1]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x70ff9)[0x7f6b288e2ff9]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(qFatal(char const*, ...)+0x94)[0x7f6b288e3804]
/usr/lib/libqgis_gui.so.2.9.0(QgsAttributeForm::onAttributeAdded(int)+0x69)[0x7f6b29483199]
/usr/lib/libqgis_gui.so.2.9.0(+0x366e9f)[0x7f6b29572e9f]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QMetaObject::activate(QObject*, QMetaObject const*, int, void**)+0x2da)[0x7f6b28a0387a]
/usr/lib/libqgis_core.so.2.9.0(QgsVectorLayer::attributeAdded(int)+0x31)[0x7f6b29e4a1f1]
/usr/lib/libqgis_core.so.2.9.0(+0x524884)[0x7f6b29e4a884]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QMetaObject::activate(QObject*, QMetaObject const*, int, void**)+0x2da)[0x7f6b28a0387a]
/usr/lib/libqgis_core.so.2.9.0(QgsVectorLayerEditBuffer::attributeAdded(int)+0x31)[0x7f6b29e4afe1]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QUndoStack::push(QUndoCommand*)+0x23)[0x7f6b283bec53]
/usr/lib/libqgis_core.so.2.9.0(QgsVectorLayerEditBuffer::addAttribute(QgsField const&)+0x125)[0x7f6b29d20265]
/usr/bin/qgis.bin(QgsFieldCalculator::accept()+0xd40)[0x5e7fb0]
/usr/bin/qgis.bin[0x827324]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QMetaObject::activate(QObject*, QMetaObject const*, int, void**)+0x2da)[0x7f6b28a0387a]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QMetaObject::activate(QObject*, QMetaObject const*, int, void**)+0x2da)[0x7f6b28a0387a]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QAbstractButton::clicked(bool)+0x32)[0x7f6b283d70d2]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x57b9d3)[0x7f6b2813a9d3]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x57cb43)[0x7f6b2813bb43]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QAbstractButton::mouseReleaseEvent(QMouseEvent*)+0x6c)[0x7f6b2813bc2c]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QWidget::event(QEvent*)+0xaca)[0x7f6b27dd850a]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QApplicationPrivate::notify_helper(QObject*, QEvent*)+0x8c)[0x7f6b27d88e2c]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QApplication::notify(QObject*, QEvent*)+0x3ad)[0x7f6b27d8f5dd]
/usr/lib/libqgis_core.so.2.9.0(QgsApplication::notify(QObject*, QEvent*)+0x5b)[0x7f6b29b6610b]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QCoreApplication::notifyInternal(QObject*, QEvent*)+0x6d)[0x7f6b289ef4dd]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool)+0x153)[0x7f6b27d8ed93]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x2449cb)[0x7f6b27e039cb]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QApplication::x11ProcessEvent(XEvent*)+0x1559)[0x7f6b27e03269]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x26bb02)[0x7f6b27e2ab02]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x254)[0x7f6b236ade04]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x49048)[0x7f6b236ae048]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x2c)[0x7f6b236ae0ec]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)+0x71)[0x7f6b28a1c7a1]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x26bbb6)[0x7f6b27e2abb6]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)+0x2f)[0x7f6b289ee0af]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)+0x175)[0x7f6b289ee3a5]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QDialog::exec()+0xcc)[0x7f6b2822ffec]
/usr/bin/qgis.bin(QgsAttributeTableDialog::on_mOpenFieldCalculator_clicked()+0x3a)[0x58af9a]
/usr/bin/qgis.bin[0x823fe8]
/usr/bin/qgis.bin(QgsAttributeTableDialog::qt_metacall(QMetaObject::Call, int, void**)+0x43)[0x824543]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QMetaObject::activate(QObject*, QMetaObject const*, int, void**)+0x4d8)[0x7f6b28a03a78]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QAbstractButton::clicked(bool)+0x32)[0x7f6b283d70d2]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x57b9d3)[0x7f6b2813a9d3]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x57cb43)[0x7f6b2813bb43]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QAbstractButton::mouseReleaseEvent(QMouseEvent*)+0x6c)[0x7f6b2813bc2c]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QToolButton::mouseReleaseEvent(QMouseEvent*)+0xa)[0x7f6b281f2a4a]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QWidget::event(QEvent*)+0xaca)[0x7f6b27dd850a]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QApplicationPrivate::notify_helper(QObject*, QEvent*)+0x8c)[0x7f6b27d88e2c]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QApplication::notify(QObject*, QEvent*)+0x3ad)[0x7f6b27d8f5dd]
/usr/lib/libqgis_core.so.2.9.0(QgsApplication::notify(QObject*, QEvent*)+0x5b)[0x7f6b29b6610b]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QCoreApplication::notifyInternal(QObject*, QEvent*)+0x6d)[0x7f6b289ef4dd]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool)+0x153)[0x7f6b27d8ed93]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x2449cb)[0x7f6b27e039cb]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QApplication::x11ProcessEvent(_XEvent*)+0x1559)[0x7f6b27e03269]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x26bb02)[0x7f6b27e2ab02]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x254)[0x7f6b236ade04]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x49048)[0x7f6b236ae048]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x2c)[0x7f6b236ae0ec]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)+0x71)[0x7f6b28a1c7a1]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x26bbb6)[0x7f6b27e2abb6]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)+0x2f)[0x7f6b289ee0af]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)+0x175)[0x7f6b289ee3a5]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QCoreApplication::exec()+0x89)[0x7f6b289f3b79]
/usr/bin/qgis.bin(main+0x1faf)[0x504eef]
/lib/x86_64-linux-gnu/libc.so.6(
_libc_start_main+0xf5)[0x7f6b2583fec5]
/usr/bin/qgis.bin[0x509638]
Aborted

History

#1 Updated by Giovanni Manghi over 4 years ago

  • Resolution set to fixed/implemented
  • Status changed from Open to Closed

seems fixed in qgis master-

Also available in: Atom PDF