Problem with git plugin

Hamish Rodda rodda at kde.org
Mon Jun 23 03:34:23 UTC 2008


Hi,


I recently found that my kdevelop build doesn't show a context menu for the 
project view any more.  On debugging, I find that the git plugin tries to 
decide if it's going to provide a context menu extension, which causes a job 
to be executed and a new event loop created, so the execution seems to 
disappear into queryPluginsForContextMenuExtensions and never return.


Could this bug be only affecting me because I don't have git installed?  If 
so, can the bug be fixed please...


(please ignore the line number in projecttreeview.cpp, it's wrong, i added 
debugging calls)


#0  0x00007ff31799ac76 in poll () from /lib/libc.so.6
#1  0x00007ff317239366 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007ff3172399af in g_main_context_iteration () from 
/usr/lib/libglib-2.0.so.0
#3  0x00007ff31e953f5c in QEventDispatcherGlib::processEvents (this=0x662a80, 
flags=@0x7fff26e595e0) at kernel/qeventdispatcher_glib.cpp:325
#4  0x00007ff318647de7 in QGuiEventDispatcherGlib::processEvents 
(this=0x662a80, flags=@0x7fff26e59640) at 
kernel/qguieventdispatcher_glib.cpp:204
#5  0x00007ff31e922e84 in QEventLoop::processEvents (this=0x7fff26e596f0, 
flags=@0x7fff26e596c0) at kernel/qeventloop.cpp:149
#6  0x00007ff31e923080 in QEventLoop::exec (this=0x7fff26e596f0, 
flags=@0x7fff26e59700) at kernel/qeventloop.cpp:196
#7  0x00007ff31d422ad1 in KJob::exec (this=<value optimized out>) at 
/opt/kde4/src/kdelibs/kdecore/jobs/kjob.cpp:194
#8  0x00007ff30fe61fdb in GitProxy::isValidDirectory (this=0x9eefc0, 
dirPath=@0x7fff26e59890) at 
/opt/kde4/src/kdevplatform/plugins/git/gitproxy.cpp:66
#9  0x00007ff30fe5e211 in GitPlugin::isVersionControlled (this=<value 
optimized out>, localLocation=@0xa) at 
/opt/kde4/src/kdevplatform/plugins/git/gitplugin.cpp:426
#10 0x00007ff30fe5ed8d in GitPlugin::contextMenuExtension (this=0x95aa10, 
context=0x7fff26e59d50) at 
/opt/kde4/src/kdevplatform/plugins/git/gitplugin.cpp:213
#11 0x00007ff31d0ea1b0 in 
KDevelop::PluginController::queryPluginsForContextMenuExtensions 
(this=0x80c680, context=0x7fff26e59d50) at 
/opt/kde4/src/kdevplatform/shell/plugincontroller.cpp:468
#12 0x00007ff3115bc83b in ProjectTreeView::popupContextMenu (this=0x7cf0e0, 
pos=@0x7fff26e5b0c8) at 
/opt/kde4/src/kdevplatform/plugins/projectmanagerview/projecttreeview.cpp:184
#13 0x00007ff3115be2cb in ProjectTreeView::qt_metacall (this=0x7cf0e0, 
_c=QMetaObject::InvokeMetaMethod, _id=-516, _a=0x7fff26e5a2c0) at 
/opt/kde4/build/kdevplatform/plugins/projectmanagerview/projecttreeview.moc:74
#14 0x00007ff31e93a79d in QMetaObject::activate (sender=0x7cf0e0, 
from_signal_index=4, to_signal_index=4, argv=0x7fff26e5a2c0) at 
kernel/qobject.cpp:3007
#15 0x00007ff31e93ac01 in QMetaObject::activate (sender=0x7cf0e0, 
m=0x7ff318fbea60, local_signal_index=0, argv=0x7fff26e5a2c0) at 
kernel/qobject.cpp:3080
#16 0x00007ff3185f3bb3 in QWidget::customContextMenuRequested (this=0x7cf0e0, 
_t1=@0x7fff26e5b0c8) at .moc/debug-shared/moc_qwidget.cpp:348
#17 0x00007ff318600032 in QWidget::event (this=0x7cf0e0, event=0x7fff26e5b0b0) 
at kernel/qwidget.cpp:7086
#18 0x00007ff31894a11f in QFrame::event (this=0x7cf0e0, e=0x7fff26e5b0b0) at 
widgets/qframe.cpp:657
#19 0x00007ff3189d6d78 in QAbstractScrollArea::viewportEvent (this=0x7cf0e0, 
e=0x7fff26e5b0b0) at widgets/qabstractscrollarea.cpp:941
#20 0x00007ff318a71b85 in QAbstractItemView::viewportEvent (this=0x7cf0e0, 
event=0x7fff26e5b0b0) at itemviews/qabstractitemview.cpp:1426
#21 0x00007ff318aa9ab8 in QTreeView::viewportEvent (this=0x7cf0e0, 
event=0x7fff26e5b0b0) at itemviews/qtreeview.cpp:1254
#22 0x00007ff3189d9604 in QAbstractScrollAreaPrivate::viewportEvent 
(this=0x1271620, event=0x7fff26e5b0b0) at widgets/qabstractscrollarea_p.h:102
#23 0x00007ff3189d9644 in QAbstractScrollAreaFilter::eventFilter 
(this=0x89b700, o=0x7cf3f0, e=0x7fff26e5b0b0) at 
widgets/qabstractscrollarea_p.h:113
#24 0x00007ff31e924277 in 
QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x6666b0, 
receiver=0x7cf3f0, event=0x7fff26e5b0b0) at kernel/qcoreapplication.cpp:694
#25 0x00007ff3185a63b6 in QApplicationPrivate::notify_helper (this=0x6666b0, 
receiver=0x7cf3f0, e=0x7fff26e5b0b0) at kernel/qapplication.cpp:3768
#26 0x00007ff3185a76cd in QApplication::notify (this=0x7fff26e5bf70, 
receiver=0x7cf3f0, e=0x7fff26e5b0b0) at kernel/qapplication.cpp:3586
#27 0x00007ff31cce288b in KApplication::notify (this=0x7fff26e5bf70, 
receiver=0x7cf3f0, event=0x7fff26e5b0b0) at 
/opt/kde4/src/kdelibs/kdeui/kernel/kapplication.cpp:311
#28 0x00007ff31e925d3a in QCoreApplication::notifyInternal 
(this=0x7fff26e5bf70, receiver=0x7cf3f0, event=0x7fff26e5b0b0) at 
kernel/qcoreapplication.cpp:583
#29 0x00007ff3185b22ff in QCoreApplication::sendSpontaneousEvent 
(receiver=0x7cf3f0, event=0x7fff26e5b0b0) at 
../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#30 0x00007ff31861ed1c in QETWidget::translateMouseEvent (this=0x787bb0, 
event=0x7fff26e5baf0) at kernel/qapplication_x11.cpp:4139
#31 0x00007ff31861c510 in QApplication::x11ProcessEvent (this=0x7fff26e5bf70, 
event=0x7fff26e5baf0) at kernel/qapplication_x11.cpp:3133
#32 0x00007ff3186485d5 in x11EventSourceDispatch (s=0x669db0, callback=0, 
user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:148
#33 0x00007ff317236262 in g_main_context_dispatch () from 
/usr/lib/libglib-2.0.so.0
#34 0x00007ff317239516 in ?? () from /usr/lib/libglib-2.0.so.0
#35 0x00007ff3172399af in g_main_context_iteration () from 
/usr/lib/libglib-2.0.so.0
#36 0x00007ff31e953f5c in QEventDispatcherGlib::processEvents (this=0x662a80, 
flags=@0x7fff26e5bd70) at kernel/qeventdispatcher_glib.cpp:325
#37 0x00007ff318647de7 in QGuiEventDispatcherGlib::processEvents 
(this=0x662a80, flags=@0x7fff26e5bdd0) at 
kernel/qguieventdispatcher_glib.cpp:204
#38 0x00007ff31e922e84 in QEventLoop::processEvents (this=0x7fff26e5be90, 
flags=@0x7fff26e5be50) at kernel/qeventloop.cpp:149
#39 0x00007ff31e923080 in QEventLoop::exec (this=0x7fff26e5be90, 
flags=@0x7fff26e5beb0) at kernel/qeventloop.cpp:196
#40 0x00007ff31e926584 in QCoreApplication::exec () at 
kernel/qcoreapplication.cpp:845
#41 0x00007ff3185a613c in QApplication::exec () at 
kernel/qapplication.cpp:3304
#42 0x0000000000406fa3 in main (argc=1, argv=0x7fff26e5cf28) at 
/opt/kde4/src/kdevelop/src/main.cpp:209

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20080623/301f22fa/attachment.html>


More information about the KDevelop-devel mailing list