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 in GammaRay::ObjectTypeFilterProxyModel<QItemSelectionModel>::filterAcceptsObject() #31

Closed
krf opened this issue Jan 28, 2013 · 4 comments
Assignees
Labels
Milestone

Comments

@krf
Copy link
Contributor

krf commented Jan 28, 2013

Crashed when debugging tomahawk (which uses a lot of threads)

BT when selection the Selection Models browser:
#0 0x00000004000000d4 in ?? ()
#1 0x00007ffff56a32a0 in QMetaObject::cast (this=0x7ffff6e81b40 QItemSelectionModel::staticMetaObject, obj=

0x1237900) at /home/krf/devel/src/qt/src/corelib/kernel/qmetaobject.cpp:274

#2 0x00007ffff446c864 in qobject_cast<QItemSelectionModel*> (object=0x1237900)

at /home/krf/devel/build/qt4.8-shared-debug/include/QtCore/../../../../src/qt/src/corelib/kernel/qobject.h:380

#3 0x00007ffff446ca66 in GammaRay::ObjectTypeFilterProxyModel::filterAcceptsObject (

this=0x17ad770, object=0x1237900) at /home/krf/devel/src/kdab/GammaRay/include/objecttypefilterproxymodel.h:109

#4 0x00007ffff446b71c in GammaRay::ObjectFilterProxyModelBase::filterAcceptsRow (this=0x17ad770, source_row=2216,

source_parent=...) at /home/krf/devel/src/kdab/GammaRay/include/objecttypefilterproxymodel.h:75

#5 0x00007ffff67eca3b in QSortFilterProxyModelPrivate::create_mapping (this=0x36edeb0, source_parent=...)

at /home/krf/devel/src/qt/src/gui/itemviews/qsortfilterproxymodel.cpp:327

#6 0x00007ffff67f1e70 in QSortFilterProxyModel::index (this=0x17ad770, row=0, column=0, parent=...)

at /home/krf/devel/src/qt/src/gui/itemviews/qsortfilterproxymodel.cpp:1659

#7 0x00007ffff6743940 in QAbstractItemView::setModel (this=0x36aed90, model=0x17ad770)

at /home/krf/devel/src/qt/src/gui/itemviews/qabstractitemview.cpp:664

#8 0x00007ffff6758c88 in QHeaderView::setModel (this=0x36aed90, model=0x17ad770)

at /home/krf/devel/src/qt/src/gui/itemviews/qheaderview.cpp:410

#9 0x00007ffff67942b5 in QTreeView::setModel (this=0x36cfdf0, model=0x17ad770)

at /home/krf/devel/src/qt/src/gui/itemviews/qtreeview.cpp:236

#10 0x00007ffff446be7b in GammaRay::SelectionModelInspector::SelectionModelInspector (this=0x36d6a50, probe=0x12ccdc0,

widget=0x1752490)
at /home/krf/devel/src/kdab/GammaRay/core/tools/selectionmodelinspector/selectionmodelinspector.cpp:40

#11 0x00007ffff442ea29 in GammaRay::StandardToolFactory<QItemSelectionModel, GammaRay::SelectionModelInspector>::createWidget (this=0x128d360, probe=0x12ccdc0, parentWidget=0x1752490)

at /home/krf/devel/src/kdab/GammaRay/include/toolfactory.h:117

#12 0x00007ffff43f5202 in GammaRay::MainWindow::toolSelected (this=0x1752490)

at /home/krf/devel/src/kdab/GammaRay/core/mainwindow.cpp:266

Probably related to thread-safety issues amongst our models

@munknex
Copy link

munknex commented Jan 30, 2013

This is what I get when trying to attach to QtCreator on mac:
$ gammaray
QProcess: Destroyed while process is still running.
/Users/***/Documents/tmp/GammaRay/build/40903: No such file or directory
No symbol table is loaded. Use the "file" command.
The history is empty.

@krf
Copy link
Contributor Author

krf commented Feb 28, 2013

@munknex: That's probably another issue. Try starting with "gammaray qtcreator" directly.

@krf
Copy link
Contributor Author

krf commented Nov 27, 2013

Still a problem. Just checked.

@ghost ghost assigned milianw Nov 27, 2013
krf added a commit that referenced this issue Mar 28, 2014
We might get null-pointers for the 'obj' var in some cases, this is due
the way the probe sends out model modification events. These are done in
the main-thread, and some of the object may have already been deleted in
another thread again, hence resulting in a null-pointer here.

This and other multi-threading-related issues should fix #31.

Related:
bc0aca9
@krf
Copy link
Contributor Author

krf commented Mar 28, 2014

Should be fixed in 2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants