Qt5: Crash when typing on the plot window's search

Issue #2131 resolved
Louise Poubel
created an issue

backtrace:

Thread 1 "gzclient" received signal SIGSEGV, Segmentation fault.
0x00007ffff6b9b4e3 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
(gdb) bt
#0  0x00007ffff6b9b4e3 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#1  0x00007ffff6b911d6 in QVariant::toString() const ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007ffff73d9730 in gazebo::gui::SearchModel::filterAcceptsRow (
    this=0x5f8be60, _srcRow=1, _srcParent=...)
    at /home/louise/code/gazeboA/gazebo/gui/plot/Palette.cc:321
#3  0x00007ffff6b1e60a in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff6b205f8 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff6b7dd2a in QMetaObject::activate(QObject*, int, int, void**) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ffff6bf9e2c in QAbstractItemModel::dataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007ffff1761182 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#8  0x00007ffff17619b4 in QStandardItem::setData(QVariant const&, int) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#9  0x00007ffff1764dd9 in QStandardItemModel::setData(QModelIndex const&, QVariant const&, int) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#10 0x00007ffff73d97df in gazebo::gui::SearchModel::filterAcceptsRow (
    this=0x5f8be60, _srcRow=1, _srcParent=...)
    at /home/louise/code/gazeboA/gazebo/gui/plot/Palette.cc:328
#11 0x00007ffff6b1e60a in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007ffff6b205f8 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#13 0x00007ffff6b7dd2a in QMetaObject::activate(QObject*, int, int, void**) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007ffff6bf9e2c in QAbstractItemModel::dataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#15 0x00007ffff1761182 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#16 0x00007ffff17619b4 in QStandardItem::setData(QVariant const&, int) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#17 0x00007ffff1764dd9 in QStandardItemModel::setData(QModelIndex const&, QVariant const&, int) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#18 0x00007ffff73d992d in gazebo::gui::SearchModel::filterAcceptsRow (
    this=0x5f8be60, _srcRow=1, _srcParent=...)
    at /home/louise/code/gazeboA/gazebo/gui/plot/Palette.cc:346
#19 0x00007ffff6b1e60a in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00007ffff6b205f8 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#21 0x00007ffff6b7dd2a in QMetaObject::activate(QObject*, int, int, void**) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x00007ffff6bf9e2c in QAbstractItemModel::dataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#23 0x00007ffff1761182 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#24 0x00007ffff17619b4 in QStandardItem::setData(QVariant const&, int) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#25 0x00007ffff1764dd9 in QStandardItemModel::setData(QModelIndex const&, QVariant const&, int) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#26 0x00007ffff73d97df in gazebo::gui::SearchModel::filterAcceptsRow (
    this=0x5f8be60, _srcRow=1, _srcParent=...)
    at /home/louise/code/gazeboA/gazebo/gui/plot/Palette.cc:328
#27 0x00007ffff6b1e60a in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#28 0x00007ffff6b205f8 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#29 0x00007ffff6b7dd2a in QMetaObject::activate(QObject*, int, int, void**) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#30 0x00007ffff6bf9e2c in QAbstractItemModel::dataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#31 0x00007ffff1761182 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#32 0x00007ffff17619b4 in QStandardItem::setData(QVariant const&, int) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#33 0x00007ffff1764dd9 in QStandardItemModel::setData(QModelIndex const&, QVariant const&, int) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#34 0x00007ffff73d992d in gazebo::gui::SearchModel::filterAcceptsRow (
    this=0x5f8be60, _srcRow=1, _srcParent=...)
    at /home/louise/code/gazeboA/gazebo/gui/plot/Palette.cc:346
#35 0x00007ffff6b1e60a in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#36 0x00007ffff6b205f8 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#37 0x00007ffff6b7dd2a in QMetaObject::activate(QObject*, int, int, void**) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#38 0x00007ffff6bf9e2c in QAbstractItemModel::dataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#39 0x00007ffff1761182 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#40 0x00007ffff17619b4 in QStandardItem::setData(QVariant const&, int) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#41 0x00007ffff1764dd9 in QStandardItemModel::setData(QModelIndex const&, QVariant const&, int) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#42 0x00007ffff73d97df in gazebo::gui::SearchModel::filterAcceptsRow (
    this=0x5f8be60, _srcRow=1, _srcParent=...)
    at /home/louise/code/gazeboA/gazebo/gui/plot/Palette.cc:328
#43 0x00007ffff6b1e60a in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#44 0x00007ffff6b205f8 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#45 0x00007ffff6b7dd2a in QMetaObject::activate(QObject*, int, int, void**) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#46 0x00007ffff6bf9e2c in QAbstractItemModel::dataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

Comments (3)

  1. Mohamd Ayman

    well after some investigation, the problem seems to come from searchTopicsModel and searchModelsModel in the Palette.cc in the UpdateSearch function -if you comment it doesn't break-,

      1527 this->dataPtr->searchTopicsModel->SetSearch(_search);
      1528 this->dataPtr->searchModelsModel->SetSearch(_search);
    

    while there seems to be no problem with the searchSimModel

      1529 this->dataPtr->searchSimModel->SetSearch(_search);
    

    Hope this helps.

  2. Log in to comment