Segfault when trying to edit cylinder information

Pedro Neves nevesdiver at gmail.com
Tue Jun 13 12:38:46 PDT 2017


On 13-06-2017 19:14, Thiago Macieira wrote:
> type 'bt" when you get above.
>
Thiago, my bad ;-)


(gdb) bt
#0  0x00007fffef3b51a6 in strlen () at /usr/lib/libc.so.6
#1  0x00000000005a5c33 in QString::QString(char const*) 
(this=0x7fffffffcbd0, ch=0x1770 <error: Cannot access memory at address 
0x1770>) at /usr/include/qt/QtCore/qstring.h:659
#2  0x000000000072e14d in TankInfoModel::data(QModelIndex const&, int) 
const (this=0x10ae1f0, index=..., role=2) at 
/home/xxxx/Diveapps/subsurface/qt-models/tankinfomodel.cpp:76
#3  0x00007ffff3ae4e3d in  () at /usr/lib/libQt5Widgets.so.5
#4  0x00007ffff3ae5b99 in QComboBox::itemText(int) const () at 
/usr/lib/libQt5Widgets.so.5
#5  0x00007ffff3ae61b1 in  () at /usr/lib/libQt5Widgets.so.5
#6  0x00007ffff3a1f67d in QWidgetPrivate::adjustedSize() const () at 
/usr/lib/libQt5Widgets.so.5
#7  0x00007ffff3a2e16a in QWidget::adjustSize() () at 
/usr/lib/libQt5Widgets.so.5
#8  0x00007ffff3aea24d in QComboBox::setEditable(bool) () at 
/usr/lib/libQt5Widgets.so.5
#9  0x00000000006c0276 in ComboBoxDelegate::createEditor(QWidget*, 
QStyleOptionViewItem const&, QModelIndex const&) const (this=0x10ae1a0, 
parent=0x11eafa0, option=..., index=...)
     at 
/home/xxxxxxx/Diveapps/subsurface/desktop-widgets/modeldelegates.cpp:118
#10 0x00000000006c162a in TankInfoDelegate::createEditor(QWidget*, 
QStyleOptionViewItem const&, QModelIndex const&) const (this=0x10ae1a0, 
parent=0x11eafa0, option=..., index=...)
     at 
/home/xxxxxx/Diveapps/subsurface/desktop-widgets/modeldelegates.cpp:302
#11 0x00007ffff3c3eb90 in  () at /usr/lib/libQt5Widgets.so.5
#12 0x00007ffff3c3ed98 in  () at /usr/lib/libQt5Widgets.so.5
#13 0x00007ffff3c3efba in QAbstractItemView::edit(QModelIndex const&, 
QAbstractItemView::EditTrigger, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#14 0x00007ffff3c37b78 in QAbstractItemView::edit(QModelIndex const&) () 
at /usr/lib/libQt5Widgets.so.5
#15 0x00000000006c5df4 in TableView::edit(QModelIndex const&) 
(this=0x137f4d0, index=...) at 
/home/xxxxxxx/Diveapps/subsurface/desktop-widgets/tableview.cpp:134
#16 0x00000000006622ba in MainTab::editCylinderWidget(QModelIndex 
const&) (this=0x10c71d0, index=...) at 
/home/xxxxx/Diveapps/subsurface/desktop-widgets/tab-widgets/maintab.cpp:1460
#17 0x000000000068c184 in MainTab::qt_static_metacall(QObject*, 
QMetaObject::Call, int, void**) (_o=0x10c71d0, 
_c=QMetaObject::InvokeMetaMethod, _id=29, _a=0x7fffffffd420)
     at 
/home/xxxxx/Diveapps/subsurface/build/desktop-widgets/subsurface_interface_autogen/VKEPO7FSIR/moc_maintab.cpp:281
#18 0x00007fffeff2c465 in QMetaObject::activate(QObject*, int, int, 
void**) () at /usr/lib/libQt5Core.so.5
#19 0x00007ffff3c36f35 in QAbstractItemView::clicked(QModelIndex const&) 
() at /usr/lib/libQt5Widgets.so.5
#20 0x00007ffff3c3a03b in 
QAbstractItemView::mouseReleaseEvent(QMouseEvent*) () at 
/usr/lib/libQt5Widgets.so.5
#21 0x00007ffff3a31d68 in QWidget::event(QEvent*) () at 
/usr/lib/libQt5Widgets.so.5
#22 0x00007ffff3b112de in QFrame::event(QEvent*) () at 
/usr/lib/libQt5Widgets.so.5
#23 0x00007ffff3c42e6b in QAbstractItemView::viewportEvent(QEvent*) () 
at /usr/lib/libQt5Widgets.so.5
#24 0x00007fffefefd87c in 
QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, 
QEvent*) () at /usr/lib/libQt5Core.so.5
#25 0x00007ffff39f1445 in QApplicationPrivate::notify_helper(QObject*, 
QEvent*) () at /usr/lib/libQt5Widgets.so.5
#26 0x00007ffff39f924f in QApplication::notify(QObject*, QEvent*) () at 
/usr/lib/libQt5Widgets.so.5
#27 0x00007fffefefdb98 in QCoreApplication::notifyInternal2(QObject*, 
QEvent*) () at /usr/lib/libQt5Core.so.5
#28 0x00007ffff39f8222 in QApplicationPrivate::sendMouseEvent(QWidget*, 
QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) 
() at /usr/lib/libQt5Widgets.so.5
#29 0x00007ffff3a4c8db in  () at /usr/lib/libQt5Widgets.so.5
#30 0x00007ffff3a4ef4a in  () at /usr/lib/libQt5Widgets.so.5
#31 0x00007ffff39f146c in QApplicationPrivate::notify_helper(QObject*, 
QEvent*) () at /usr/lib/libQt5Widgets.so.5
#32 0x00007ffff39f8cf4 in QApplication::notify(QObject*, QEvent*) () at 
/usr/lib/libQt5Widgets.so.5
#33 0x00007fffefefdb98 in QCoreApplication::notifyInternal2(QObject*, 
QEvent*) () at /usr/lib/libQt5Core.so.5
#34 0x00007ffff073ea93 in 
QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) 
() at /usr/lib/libQt5Gui.so.5
#35 0x00007ffff0740575 in 
QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) 
() at /usr/lib/libQt5Gui.so.5
#36 0x00007ffff0718c0b in 
QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) 
() at /usr/lib/libQt5Gui.so.5
#37 0x00007fffe30ee1b0 in  () at /usr/lib/libQt5XcbQpa.so.5
#38 0x00007fffeb70ba47 in g_main_context_dispatch () at 
/usr/lib/libglib-2.0.so.0
#39 0x00007fffeb70bc78 in  () at /usr/lib/libglib-2.0.so.0
#40 0x00007fffeb70bd0c in g_main_context_iteration () at 
/usr/lib/libglib-2.0.so.0
#41 0x00007fffeff55e7f in 
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) 
() at /usr/lib/libQt5Core.so.5
#42 0x00007fffefefc21a in 
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at 
/usr/lib/libQt5Core.so.5
#43 0x00007fffeff04a74 in QCoreApplication::exec() () at 
/usr/lib/libQt5Core.so.5
#44 0x00000000005a6811 in run_ui() () at 
/home/xxxxxx/Diveapps/subsurface/subsurface-desktop-helper.cpp:46
#45 0x00000000005a570e in main(int, char**) (argc=1, 
argv=0x7fffffffe548) at 
/home/xxxxxx/Diveapps/subsurface/subsurface-desktop-main.cpp:113
(gdb)


Hope this helps...

Cheers:

Pedro



More information about the subsurface mailing list