tab management in kdev master

Valentin Rusu kde at rusu.info
Mon Jul 18 21:38:08 UTC 2011


On 07/18/2011 10:45 PM, Aleix Pol wrote:
> Hi guys,
Hello,
> I'm getting weird behaviors when removing views in master, if I have
> two tabs and I remove one I get both removed and KDevelop in a weird
> wrong state.
Yep, I confirm that. Just compiled from master (b935485305dd) and after
restarting kdevelop :
- got the last session loaded, with lots of tabs open,
- clicked close on one of them => all of the closed
- expanded projet inside project manager, then double click a source
file to get this crash :


Thread 1 (Thread 0x7f9af58c4760 (LWP 7532)):

[KCrash Handler]

#6 0x00007f9af0daaa2a in operator<< (dbg=..., o=0x3a4ecf0) at
kernel/qobject.cpp:3673

#7 0x00007f9ad2e84afe in DocumentSwitcherPlugin::addView (this=0xc473c0,
view=0x3a4ecf0) at
/vrac2/kdesrc/4/trunk/extragear/kdevelop/kdevplatform/plugins/documentswitcher/documentswitcherplugin.cpp:270

#8 0x00007f9ad2e85c54 in DocumentSwitcherPlugin::qt_metacall
(this=0xc473c0, _c=QMetaObject::InvokeMetaMethod, _id=1,
_a=0x7fff495920f0) at
/vrac2/kdesrc/4/build/extragear/kdevelop/kdevplatform/plugins/documentswitcher/documentswitcherplugin.moc:91

#9 0x00007f9af0d945ff in QMetaObject::metacall (object=0xc473c0,
cl=QMetaObject::InvokeMetaMethod, idx=12, argv=0x7fff495920f0) at
kernel/qmetaobject.cpp:237

#10 0x00007f9af0da9455 in QMetaObject::activate (sender=0x7df350,
m=0x7f9af303f9a0, local_signal_index=5, argv=0x7fff495920f0) at
kernel/qobject.cpp:3280

#11 0x00007f9af2e0cfc9 in Sublime::MainWindow::viewAdded (this=0x7df350,
_t1=0x3a4ecf0) at
/vrac2/kdesrc/4/build/extragear/kdevelop/kdevplatform/sublime/mainwindow.moc:178

#12 0x00007f9af2e128b1 in Sublime::MainWindowPrivate::viewAdded
(this=0x7e27c0, index=0x7fe8e0, view=0x3a4ecf0) at
/vrac2/kdesrc/4/trunk/extragear/kdevelop/kdevplatform/sublime/mainwindow_p.cpp:431

#13 0x00007f9af2e0ccd2 in Sublime::MainWindow::qt_metacall
(this=0x7df350, _c=QMetaObject::InvokeMetaMethod, _id=13,
_a=0x7fff49592360) at
/vrac2/kdesrc/4/build/extragear/kdevelop/kdevplatform/sublime/mainwindow.moc:126

#14 0x00007f9af4c6d9dd in KDevelop::MainWindow::qt_metacall
(this=0x7df350, _c=QMetaObject::InvokeMetaMethod, _id=63,
_a=0x7fff49592360) at
/vrac2/kdesrc/4/build/extragear/kdevelop/kdevplatform/shell/mainwindow.moc:98

#15 0x00007f9af0d945ff in QMetaObject::metacall (object=0x7df350,
cl=QMetaObject::InvokeMetaMethod, idx=63, argv=0x7fff49592360) at
kernel/qmetaobject.cpp:237

#16 0x00007f9af0da9455 in QMetaObject::activate (sender=0x821500,
m=0x7f9af303ee40, local_signal_index=0, argv=0x7fff49592360) at
kernel/qobject.cpp:3280

#17 0x00007f9af2df86a3 in Sublime::Area::viewAdded (this=0x821500,
_t1=0x7fe8e0, _t2=0x3a4ecf0) at
/vrac2/kdesrc/4/build/extragear/kdevelop/kdevplatform/sublime/area.moc:115

#18 0x00007f9af2df6455 in Sublime::Area::addView (this=0x821500,
view=0x3a4ecf0, index=0x7fe8e0, after=0x0) at
/vrac2/kdesrc/4/trunk/extragear/kdevelop/kdevplatform/sublime/area.cpp:173

#19 0x00007f9af2df64ce in Sublime::Area::addView (this=0x821500,
view=0x3a4ecf0, after=0x0) at
/vrac2/kdesrc/4/trunk/extragear/kdevelop/kdevplatform/sublime/area.cpp:185

#20 0x00007f9af4cab764 in
KDevelop::DocumentControllerPrivate::openDocumentInternal
(this=0x9f0d50, doc=0x1ca7770, range=..., activationParams=...,
buddy=0x0) at
/vrac2/kdesrc/4/trunk/extragear/kdevelop/kdevplatform/shell/documentcontroller.cpp:478

#21 0x00007f9af4caa7dd in
KDevelop::DocumentControllerPrivate::openDocumentInternal
(this=0x9f0d50, inputUrl=..., prefName=..., range=..., encoding=...,
activationParams=..., buddy=0x0) at
/vrac2/kdesrc/4/trunk/extragear/kdevelop/kdevplatform/shell/documentcontroller.cpp:308

#22 0x00007f9af4ca453a in KDevelop::DocumentController::openDocument
(this=0x9ef100, inputUrl=..., range=..., activationParams=...,
encoding=..., buddy=0x0) at
/vrac2/kdesrc/4/trunk/extragear/kdevelop/kdevplatform/shell/documentcontroller.cpp:688

#23 0x00007f9ad3e7647d in OpenWithPlugin::openDefault (this=0xc14f30) at
/vrac2/kdesrc/4/trunk/extragear/kdevelop/kdevplatform/plugins/openwith/openwithplugin.cpp:156

#24 0x00007f9ad3e76bb9 in OpenWithPlugin::openFilesInternal
(this=0xc14f30, files=...) at
/vrac2/kdesrc/4/trunk/extragear/kdevelop/kdevplatform/plugins/openwith/openwithplugin.cpp:206

#25 0x00007f9acf46456a in KDevelop::IOpenWith::openFiles (files=...) at
/vrac2/kdesrc/4/trunk/extragear/kdevelop/kdevplatform/plugins/projectmanagerview/../openwith/iopenwith.h:50

#26 0x00007f9acf463c25 in ProjectManagerView::openUrl (this=0x27f4180,
url=...) at
/vrac2/kdesrc/4/trunk/extragear/kdevelop/kdevplatform/plugins/projectmanagerview/projectmanagerview.cpp:255

#27 0x00007f9acf463f28 in ProjectManagerView::qt_metacall
(this=0x27f4180, _c=QMetaObject::InvokeMetaMethod, _id=3,
_a=0x7fff49593090) at
/vrac2/kdesrc/4/build/extragear/kdevelop/kdevplatform/plugins/projectmanagerview/projectmanagerview.moc:148

#28 0x00007f9af0d945ff in QMetaObject::metacall (object=0x27f4180,
cl=QMetaObject::InvokeMetaMethod, idx=30, argv=0x7fff49593090) at
kernel/qmetaobject.cpp:237

#29 0x00007f9af0da9455 in QMetaObject::activate (sender=0x27f9980,
m=0x7f9acf679700, local_signal_index=0, argv=0x7fff49593090) at
kernel/qobject.cpp:3280

#30 0x00007f9acf4680dd in ProjectTreeView::activateUrl (this=0x27f9980,
_t1=...) at
/vrac2/kdesrc/4/build/extragear/kdevelop/kdevplatform/plugins/projectmanagerview/projecttreeview.moc:94

#31 0x00007f9acf466f17 in ProjectTreeView::slotActivated
(this=0x27f9980, index=...) at
/vrac2/kdesrc/4/trunk/extragear/kdevelop/kdevplatform/plugins/projectmanagerview/projecttreeview.cpp:229

#32 0x00007f9acf468059 in ProjectTreeView::qt_metacall (this=0x27f9980,
_c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7fff49593280) at
/vrac2/kdesrc/4/build/extragear/kdevelop/kdevplatform/plugins/projectmanagerview/projecttreeview.moc:80

#33 0x00007f9af0d945ff in QMetaObject::metacall (object=0x27f9980,
cl=QMetaObject::InvokeMetaMethod, idx=89, argv=0x7fff49593280) at
kernel/qmetaobject.cpp:237

#34 0x00007f9af0da9455 in QMetaObject::activate (sender=0x27f9980,
m=0x7f9af09845e0, local_signal_index=2, argv=0x7fff49593280) at
kernel/qobject.cpp:3280

#35 0x00007f9af02bcc61 in QAbstractItemView::doubleClicked
(this=0x27f9980, _t1=...) at .moc/debug-shared/moc_qabstractitemview.cpp:338

#36 0x00007f9af02fd393 in QTreeView::mouseDoubleClickEvent
(this=0x27f9980, event=0x7fff49594380) at itemviews/qtreeview.cpp:1861

#37 0x00007f9aefc94b1a in QWidget::event (this=0x27f9980,
event=0x7fff49594380) at kernel/qwidget.cpp:8204

#38 0x00007f9af014d827 in QFrame::event (this=0x27f9980,
e=0x7fff49594380) at widgets/qframe.cpp:557

#39 0x00007f9af01f7de5 in QAbstractScrollArea::viewportEvent
(this=0x27f9980, e=0x7fff49594380) at widgets/qabstractscrollarea.cpp:1043

#40 0x00007f9af02afc90 in QAbstractItemView::viewportEvent
(this=0x27f9980, event=0x7fff49594380) at
itemviews/qabstractitemview.cpp:1619

#41 0x00007f9af02fa1f3 in QTreeView::viewportEvent (this=0x27f9980,
event=0x7fff49594380) at itemviews/qtreeview.cpp:1256

#42 0x00007f9af01f8a5f in QAbstractScrollAreaPrivate::viewportEvent
(this=0x27f5000, event=0x7fff49594380) at
widgets/qabstractscrollarea_p.h:100

#43 0x00007f9af01f8b58 in QAbstractScrollAreaFilter::eventFilter
(this=0x27fb4e0, o=0x27f6240, e=0x7fff49594380) at
widgets/qabstractscrollarea_p.h:116

#44 0x00007f9af0d8c79d in
QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x64ad80,
receiver=0x27f6240, event=0x7fff49594380) at kernel/qcoreapplication.cpp:847

#45 0x00007f9aefc2e181 in QApplicationPrivate::notify_helper
(this=0x64ad80, receiver=0x27f6240, e=0x7fff49594380) at
kernel/qapplication.cpp:4441

#46 0x00007f9aefc2c137 in QApplication::notify (this=0x7fff49595620,
receiver=0x27f6240, e=0x7fff49594380) at kernel/qapplication.cpp:4006

#47 0x00007f9af1644e11 in KApplication::notify (this=0x7fff49595620,
receiver=0x27f6240, event=0x7fff49594380) at
/vrac2/kdesrc/4/trunk/KDE/kdelibs/kdeui/kernel/kapplication.cpp:311

#48 0x00007f9af0d8c48b in QCoreApplication::notifyInternal
(this=0x7fff49595620, receiver=0x27f6240, event=0x7fff49594380) at
kernel/qcoreapplication.cpp:732

#49 0x00007f9aefc3098d in QCoreApplication::sendSpontaneousEvent
(receiver=0x27f6240, event=0x7fff49594380) at
../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218

#50 0x00007f9aefc2a6a0 in QApplicationPrivate::sendMouseEvent
(receiver=0x27f6240, event=0x7fff49594380, alienWidget=0x27f6240,
nativeWidget=0x2a73650, buttonDown=0x7f9af09b2748,
lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3103

#51 0x00007f9aefccf6a6 in QETWidget::translateMouseEvent
(this=0x2a73650, event=0x7fff49594ee0) at kernel/qapplication_x11.cpp:4438

#52 0x00007f9aefccc035 in QApplication::x11ProcessEvent
(this=0x7fff49595620, event=0x7fff49594ee0) at
kernel/qapplication_x11.cpp:3442

#53 0x00007f9aefd0621c in x11EventSourceDispatch (s=0x64e6c0,
callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146

#54 0x00007f9ae8ff2bd3 in g_main_context_dispatch () from
/lib64/libglib-2.0.so.0

#55 0x00007f9ae8ff33b0 in ?? () from /lib64/libglib-2.0.so.0

#56 0x00007f9ae8ff3650 in g_main_context_iteration () from
/lib64/libglib-2.0.so.0

#57 0x00007f9af0dc554d in QEventDispatcherGlib::processEvents
(this=0x621430, flags=...) at kernel/qeventdispatcher_glib.cpp:415

#58 0x00007f9aefd065ca in QGuiEventDispatcherGlib::processEvents
(this=0x621430, flags=...) at kernel/qguieventdispatcher_glib.cpp:204

#59 0x00007f9af0d89fee in QEventLoop::processEvents
(this=0x7fff49595290, flags=...) at kernel/qeventloop.cpp:149

#60 0x00007f9af0d8a142 in QEventLoop::exec (this=0x7fff49595290,
flags=...) at kernel/qeventloop.cpp:201

#61 0x00007f9af0d8cb7e in QCoreApplication::exec () at
kernel/qcoreapplication.cpp:1009

#62 0x00007f9aefc2b346 in QApplication::exec () at
kernel/qapplication.cpp:3719

#63 0x000000000040b8bc in main (argc=1, argv=0x7fff49597438) at
/vrac2/kdesrc/4/trunk/extragear/kdevelop/kdevelop/app/main.cpp:474


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20110718/6b6cdc82/attachment.html>


More information about the KDevelop-devel mailing list