GammaRay icon indicating copy to clipboard operation
GammaRay copied to clipboard

Crash when sorting by Incl. Total in Meta Objects view

Open iamsergio opened this issue 8 years ago • 3 comments

Goto to Meta Objects view, click a few times on Incl Total header to reverse the sorting. Then, click on some row, then click again a few times in "Incl Total", it crashes in:

QModelIndex RemoteModel::parent(const QModelIndex &index) const

on this line:

return createIndex(currentNode->parent->parent->children.indexOf(
                       currentNode->parent), 0, currentNode->parent);

I'm on Windows, msvc2015, gammaray master

iamsergio avatar Dec 13 '16 13:12 iamsergio

I've seen a lot of crashes there as well.

milianw avatar Dec 13 '16 16:12 milianw

Now with debug symbols:

gammaray_client.dll!GammaRay::RemoteModel::parent(const QModelIndex & index) Line 163 C++ Qt5Core.dll!QIdentityProxyModel::parent(const QModelIndex & child) Line 293 C++ Qt5Core.dll!QPersistentModelIndex::parent() Line 372 C++ Qt5Core.dll!QItemSelectionRange::isValid() Line 146 C++ Qt5Core.dll!QItemSelectionModel::isSelected(const QModelIndex & index) Line 1405 C++ Qt5Widgets.dll!QTreeView::drawRow(QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index) Line 1703 C++ Qt5Widgets.dll!QTreeView::drawTree(QPainter * painter, const QRegion & region) Line 1510 C++ Qt5Widgets.dll!QTreeView::paintEvent(QPaintEvent * event) Line 1340 C++

iamsergio avatar Dec 13 '16 17:12 iamsergio

HI, not sure if related to this issue, but for me the client crashes in the meta objects view too:

Thread 1 "gammaray-client" received signal SIGSEGV, Segmentation fault.
0x00007f4f69b70704 in GammaRay::RemoteModel::modelIndexForNode(GammaRay::RemoteModel::Node*, int) const ()
   from /usr/local/lib/gammaray/libexec/../../libgammaray_client.so.2.12.0(gdb) 

In case it helps, I'm running my application directly through GammaRay (Not attaching). This is the --version output:

GammaRay version 2.11.50 (revision: 2122337)
Copyright (C) 2010-2019 Klaralvdalens Datakonsult AB, a KDAB Group company, [email protected]
Protocol version 36
Broadcast version 2

Manu343726 avatar Feb 20 '20 09:02 Manu343726