Crash after requesting context menu (after reopening the project)

Evgeniy Ivanov powerfox at kde.ru
Mon Jul 28 17:05:42 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,
After I reopen the project and request context menu in the projects view
I get crash. Everything is ok, only context menu crashes KDevelop.
It's a new behavior, so it isn't look affected by my changes (I do
everything in a safe place).
So I do:
void DistributedVersionControlPlugin::checkoutFinished(KJob* _checkoutJob)
{
    DVCSjob* checkoutJob = dynamic_cast<DVCSjob*>(_checkoutJob);
    KDevelop::IProject* curProject =
core()->projectController()->findProjectForUrl(KUrl(checkoutJob->getDirectory()
));
    KUrl projectFile = curProject->projectFileUrl();
    qDebug() << "projectFile is " << projectFile << " JobDir is "
<<checkoutJob->getDirectory();
    qDebug() << "Project will be closed and open";
    core()->projectController()->closeProject(curProject);
    core()->projectController()->openProject(projectFile);

I get new project opened, but context menus...
Here bt:


#0  0xb5d649d9 in KDevelop::IPlugin::core (this=0x852e0a8) at
/workspace/gsoc/kdevplatform/interfaces/iplugin.cpp:181
181         return d->core;
(gdb) bt
#0  0xb5d649d9 in KDevelop::IPlugin::core (this=0x852e0a8) at
/workspace/gsoc/kdevplatform/interfaces/iplugin.cpp:181
#1  0xb5d649fb in KDevelop::IPlugin::extensionManager (this=0x852e0a8)
at /workspace/gsoc/kdevplatform/interfaces/iplugin.cpp:186
#2  0xb7d73973 in
KDevelop::IPlugin::extension<KDevelop::IBuildSystemManager> (this=0x852e0a8)
    at /workspace/gsoc/kdevplatform/interfaces/iplugin.h:181
#3  0xb7d715e1 in KDevelop::Project::buildSystemManager (this=0x84f65e8)
at /workspace/gsoc/kdevplatform/shell/project.cpp:446
#4  0xb2a8c0f1 in Veritas::CoveragePlugin::contextMenuExtension
(this=0x8349e68, context=0xbf9989f8)
    at /workspace/gsoc/kdevplatform/veritas/coverage/coverageplugin.cpp:96
#5  0xb7d59212 in
KDevelop::PluginController::queryPluginsForContextMenuExtensions
(this=0x81a0900, context=0xbf9989f8)
    at /workspace/gsoc/kdevplatform/shell/plugincontroller.cpp:484
#6  0xb1c9c25c in ProjectTreeView::popupContextMenu (this=0x84fdd30,
pos=@0xbf9995f4)
    at
/workspace/gsoc/kdevplatform/plugins/projectmanagerview/projecttreeview.cpp:189
#7  0xb1c9d17b in ProjectTreeView::qt_metacall (this=0x84fdd30,
_c=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbf998c0c)
    at
/workspace/gsoc/kdevplatform/plugins/projectmanagerview/projecttreeview.moc:74
#8  0xb737fda6 in QMetaObject::activate (sender=0x84fdd30,
from_signal_index=4, to_signal_index=4, argv=0xbf998c0c)
    at kernel/qobject.cpp:3010
#9  0xb7380359 in QMetaObject::activate (sender=0x84fdd30, m=0xb6a41c68,
local_signal_index=0, argv=0xbf998c0c) at kernel/qobject.cpp:3080
#10 0xb618a27a in QWidget::customContextMenuRequested (this=0x84fdd30,
_t1=@0xbf9995f4) at .moc/debug-shared/moc_qwidget.cpp:348
#11 0xb61993da in QWidget::event (this=0x84fdd30, event=0xbf9995e4) at
kernel/qwidget.cpp:7086
#12 0xb6588d9c in QFrame::event (this=0x84fdd30, e=0xbf9995e4) at
widgets/qframe.cpp:657
#13 0xb66378f1 in QAbstractScrollArea::viewportEvent (this=0x84fdd30,
e=0xbf9995e4) at widgets/qabstractscrollarea.cpp:941
#14 0xb66ff75b in QAbstractItemView::viewportEvent (this=0x84fdd30,
event=0xbf9995e4) at itemviews/qabstractitemview.cpp:1426
#15 0xb67420c4 in QTreeView::viewportEvent (this=0x84fdd30,
event=0xbf9995e4) at itemviews/qtreeview.cpp:1254
#16 0xb663a9d2 in QAbstractScrollAreaPrivate::viewportEvent
(this=0x84fe350, event=0xbf9995e4) at widgets/qabstractscrollarea_p.h:102
#17 0xb663aa00 in QAbstractScrollAreaFilter::eventFilter
(this=0x84ff310, o=0x84ff3c8, e=0xbf9995e4)
    at widgets/qabstractscrollarea_p.h:113
#18 0xb73652f0 in QCoreApplicationPrivate::sendThroughObjectEventFilters
(this=0x80d5550, receiver=0x84ff3c8, event=0xbf9995e4)
    at kernel/qcoreapplication.cpp:694
#19 0xb612d06c in QApplicationPrivate::notify_helper (this=0x80d5550,
receiver=0x84ff3c8, e=0xbf9995e4) at kernel/qapplication.cpp:3768
#20 0xb612e4bc in QApplication::notify (this=0xbf999eec,
receiver=0x84ff3c8, e=0xbf9995e4) at kernel/qapplication.cpp:3586
#21 0xb787f58b in KApplication::notify (this=0xbf999eec,
receiver=0x84ff3c8, event=0xbf9995e4)
    at /home/kde-devel/kde/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:311
#22 0xb73677af in QCoreApplication::notifyInternal (this=0xbf999eec,
receiver=0x84ff3c8, event=0xbf9995e4)
    at kernel/qcoreapplication.cpp:587
#23 0xb613b375 in QCoreApplication::sendSpontaneousEvent
(receiver=0x84ff3c8, event=0xbf9995e4)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#24 0xb61bee3e in QETWidget::translateMouseEvent (this=0x816cb70,
event=0xbf999bd0) at kernel/qapplication_x11.cpp:4139
#25 0xb61bfc35 in QApplication::x11ProcessEvent (this=0xbf999eec,
event=0xbf999bd0) at kernel/qapplication_x11.cpp:3133
#26 0xb61edd03 in x11EventSourceDispatch (s=0x80d86c0, callback=0,
user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:148
#27 0xb582c2d9 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#28 0xb582f85b in ?? () from /usr/lib/libglib-2.0.so.0
#29 0xb582f9d8 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#30 0xb739d71a in QEventDispatcherGlib::processEvents (this=0x80d3728,
flags={i = -1080451688}) at kernel/qeventdispatcher_glib.cpp:325
#31 0xb61ed398 in QGuiEventDispatcherGlib::processEvents
(this=0x80d3728, flags={i = -1080451640})
    at kernel/qguieventdispatcher_glib.cpp:204
#32 0xb7363e1c in QEventLoop::processEvents (this=0xbf999e48, flags={i =
- -1080451584}) at kernel/qeventloop.cpp:149
#33 0xb736405a in QEventLoop::exec (this=0xbf999e48, flags={i =
- -1080451504}) at kernel/qeventloop.cpp:200
#34 0xb7368129 in QCoreApplication::exec () at
kernel/qcoreapplication.cpp:845
#35 0xb612cda8 in QApplication::exec () at kernel/qapplication.cpp:3304
#36 0x0804ea8d in main (argc=-1208518896, argv=0x81490b0) at
/workspace/gsoc/kdevelop4/src/main.cpp:209



- --
Cheers, Evgeniy.
Key ID: 0x1FE567A3
Key fingerprint: F316 B5A1 F6D2 054F CD18 B74A 9540 0ABB 1FE5 67A3

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iEYEARECAAYFAkiN/GYACgkQlUAKux/lZ6NZEgCfddEnNGLSl6ROg3PUf7Huz3gz
GxkAoNDgeEyciwvClDKWX0F31Ewhqn/W
=G1x8
-----END PGP SIGNATURE-----




More information about the KDevelop-devel mailing list