Bug 69441

Summary: Crash when switching GUI mode
Product: [Applications] kdevelop Reporter: Amilcar do Carmo Lucas <a.lucas>
Component: generalAssignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED FIXED    
Severity: crash CC: hattons, kaplun, nospam
Priority: NOR    
Version: git master   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Amilcar do Carmo Lucas 2003-12-01 15:58:26 UTC
Version:           3.0.0b2 (using KDE 3.1.3)
Installed from:    SuSE
Compiler:          gcc version 2.95.3 20010315 (SuSE)
OS:          Linux (i686) release 2.4.18-64GB-SMP

I think the bt is pretty explicit:

[New Thread 1024 (LWP 22140)]
[New Thread 2049 (LWP 22174)]
[New Thread 2050 (LWP 22183)]
0x41546099 in wait4 () from /lib/libc.so.6
#0  0x41546099 in wait4 () from /lib/libc.so.6
#1  0x415c0bd8 in __DTOR_END__ () from /lib/libc.so.6
#2  0x41447072 in waitpid () from /lib/libpthread.so.0
#3  0x40ba808b in KCrash::defaultCrashHandler ()
   from /opt/kde3/lib/libkdecore.so.4
#4  0x41444a74 in pthread_sighandler () from /lib/libpthread.so.0
#5  <signal handler called>
#6  0x41198fda in QMotifStyle::drawComplexControl ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#7  0x40fe91ce in QListViewItem::paintBranches ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#8  0x40feb0c2 in QListView::drawContentsOffset ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#9  0x4101221e in QScrollView::viewportPaintEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#10 0x409cbadf in KListView::viewportPaintEvent ()
   from /opt/kde3/lib/libkdeui.so.4
#11 0x41011bb7 in QScrollView::eventFilter ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#12 0x40fed581 in QListView::eventFilter () from /usr/lib/qt3/lib/libqt-mt.so.3
#13 0x40f41548 in QObject::activate_filters ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#14 0x40f41401 in QObject::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#15 0x40f6dac5 in QWidget::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#16 0x40ef7d37 in QApplication::internalNotify ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#17 0x40ef79c4 in QApplication::notify () from /usr/lib/qt3/lib/libqt-mt.so.3
#18 0x40b440cb in KApplication::notify () from /opt/kde3/lib/libkdecore.so.4
#19 0x40ed6b8d in QWidget::repaint () from /usr/lib/qt3/lib/libqt-mt.so.3
#20 0x40fec81a in QListView::handleSizeChange ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#21 0x411b2772 in QListView::qt_invoke () from /usr/lib/qt3/lib/libqt-mt.so.3
#22 0x409ce5de in KListView::qt_invoke () from /opt/kde3/lib/libkdeui.so.4
#23 0x40f43654 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#24 0x411acafa in QHeader::sizeChange () from /usr/lib/qt3/lib/libqt-mt.so.3
#25 0x40fca666 in QHeader::adjustHeaderSize ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#26 0x40fca23d in QHeader::resizeEvent () from /usr/lib/qt3/lib/libqt-mt.so.3
#27 0x40f6def3 in QWidget::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#28 0x40ef7d37 in QApplication::internalNotify ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#29 0x40ef79c4 in QApplication::notify () from /usr/lib/qt3/lib/libqt-mt.so.3
#30 0x40b440cb in KApplication::notify () from /opt/kde3/lib/libkdecore.so.4
#31 0x40ef8a6f in QApplication::sendPostedEvents ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#32 0x40ef889f in QApplication::sendPostedEvents ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#33 0x404f0b67 in KMdiMainFrm::finishIDEAlMode (this=0x8142da0, full=false)
    at kmdimainfrm.cpp:1857
#34 0x404eec70 in KMdiMainFrm::switchToTabPageMode (this=0x8142da0)
    at kmdimainfrm.cpp:1526
#35 0x08068075 in MainWindow::switchToTabPageMode (this=0x8142da0)
    at mainwindow.cpp:1231
#36 0x4051a88b in KMDIPrivate::KMDIGUIClient::changeViewMode (this=0x8159680, 
    id=2) at kmdiguiclient.cpp:167
#37 0x4051932f in KMDIPrivate::KMDIGUIClient::qt_invoke (this=0x8159680, 
    _id=4, _o=0xbfffeb14) at kmdiguiclient.moc:140
#38 0x40f43654 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#39 0x40f437db in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#40 0x409ae3d4 in KSelectAction::activated () from /opt/kde3/lib/libkdeui.so.4
#41 0x409a5d10 in KSelectAction::slotActivated ()
   from /opt/kde3/lib/libkdeui.so.4
#42 0x409ae544 in KSelectAction::qt_invoke () from /opt/kde3/lib/libkdeui.so.4
#43 0x40f43654 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#44 0x411a1615 in QSignal::signal () from /usr/lib/qt3/lib/libqt-mt.so.3
#45 0x40f58f6d in QSignal::activate () from /usr/lib/qt3/lib/libqt-mt.so.3
#46 0x40f5e420 in QSingleShotTimer::event ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#47 0x40ef7d37 in QApplication::internalNotify ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#48 0x40ef79c4 in QApplication::notify () from /usr/lib/qt3/lib/libqt-mt.so.3
#49 0x40b440cb in KApplication::notify () from /opt/kde3/lib/libkdecore.so.4
#50 0x40edb702 in QEventLoop::activateTimers ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#51 0x40ebdba6 in QEventLoop::processEvents ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#52 0x40f082a0 in QEventLoop::enterLoop () from /usr/lib/qt3/lib/libqt-mt.so.3
#53 0x40f081e7 in QEventLoop::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#54 0x40ef7ea6 in QApplication::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#55 0x0806373a in main (argc=1, argv=0xbffff2d4) at main.cpp:128
#56 0x414bb9ed in __libc_start_main () from /lib/libc.so.6
Comment 1 Jens Dagerbo 2003-12-06 21:05:31 UTC
Yeah, this is an all time classic. It still happens. Sometimes. With some of the "KDE-Styles" such as dotNET and Plastik. 
Comment 2 Jens Dagerbo 2003-12-17 01:35:52 UTC
So it isn't really ours.. Maybe we're misbehaving, but I don't think KStyle should kill us.. 

Where is this? kdelibs?
Comment 3 Jens Dagerbo 2003-12-17 01:39:06 UTC
To make it more explicit: This bug can on occasion be triggered by switching gui mode in KDevelop3. It used to be a frequent crash with the old IDEAl implementation and some of the kstyles, but seems more or less fixed now.

It appears there is still a problem around somewhere though. If that is in qt, kmdi or kstyles I have no idea, but I doubt its specific to KDevelop.
Comment 4 Jens Dagerbo 2004-02-22 20:55:49 UTC
*** Bug 75852 has been marked as a duplicate of this bug. ***
Comment 5 Jens Dagerbo 2004-03-02 14:22:14 UTC
*** Bug 76558 has been marked as a duplicate of this bug. ***
Comment 6 Jens Dagerbo 2004-03-13 10:57:34 UTC
*** Bug 77438 has been marked as a duplicate of this bug. ***
Comment 7 Jens Dagerbo 2004-03-28 15:58:39 UTC
Note the fix suggested in http://bugs.kde.org/show_bug.cgi?id=76558#c6
Comment 8 Maksim Orlovich 2004-04-13 03:28:20 UTC
Yeah, which suggests KDevelop buginess.
Comment 9 Maksim Orlovich 2004-05-09 19:20:22 UTC
Most likely the same as #76558. The -1 is pretty much the only reason other than corrupted data that that code can crash, and it comes from QWindowsStyle (was donated by TT), so putting in workarounds KDE-side only is not gonna help much

*** This bug has been marked as a duplicate of 76558 ***
Comment 10 Maksim Orlovich 2004-05-09 19:20:55 UTC
Hmm, wrong. Need to learn to read better
Comment 11 Maksim Orlovich 2004-05-09 19:22:07 UTC
Still, IMHO, this is up to kdevelop and/or KMDI to get right, unless you can convince TT to put in the guards for -1 into all Qt styles, in which case i'll change KStyle.
Comment 12 Jens Dagerbo 2004-05-14 22:38:37 UTC
The crashing documentation plugin is gone and we no longer change UI mode runtime, so for KDevelop this problem should be gone.

Closing for now, maybe we'll have to revisit this, but this particular report is solved.