BUG: Crash after opening a project with out language support

Christian Loose Christian.Loose at hamburg.de
Fri Aug 10 19:39:41 UTC 2001


Hi,

I'm a fairly experienced programmer (13 years) with good C++ but only little
KDE knowledge.
I would like to contribute to your very cool project, so I download the
sources from CVS HEAD
today and played around a little.

And now comes my first contribution to gideon... :)

When you open a project where the language support is missing (in my case
the java support wasn't compiled),
then gideon crashes in the ClassViewPart, because the method setupPopup()
tries to query the features of
the language

ClassViewPart.cpp, line 79:
   KDevLanguageSupport::Features features = languageSupport()->features();

IMHO the best fix would be not to load the project at all...

core.cpp, line 543:
   } else {
      KMessageBox::sorry(win, i18n("No language plugin for %1
found.").arg(language));
      return;
   }

Next time, I'll know how to post a  patch. :)

bye

Christian


[New Thread 1024 (LWP 30946)]
0x4115c5a9 in __wait4 () from /lib/libc.so.6
#0  0x4115c5a9 in __wait4 () from /lib/libc.so.6
#1  0x411c4ad8 in __DTOR_END__ () from /lib/libc.so.6
#2  0x409a6cd0 in KCrash::defaultCrashHandler ()
   from /opt/kde2/lib/libkdecore.so.3
#3  0x412f289d in pthread_sighandler () from /lib/libpthread.so.0
#4  <signal handler called>
#5  0x4005a0d8 in ClassViewPart::setupPopup (this=0x8122318)
    at classviewpart.cpp:79
#6  0x40059f9b in ClassViewPart::ClassViewPart (this=0x8122318, __in_chrg=1,
    api=0x80bf958, parent=0xbffff244, name=0x4006e426 "class view part")
    at classviewpart.cpp:59
#7  0x4005987d in ClassViewFactory::createPartObject (this=0x82c1498,
    api=0x80bf958, parent=0xbffff244) at classviewfactory.cpp:47
#8  0x400e4edd in KDevFactory::createPart (this=0x82c1498, api=0x80bf958,
    parent=0xbffff244, args=@0xbfffe928) at kdevfactory.cpp:27
#9  0x80600b2 in PartLoader::loadService (service=0x8322228,
    className=0x8067a82 "KDevPart", api=0x80bf958, parent=0xbffff244)
    at partloader.cpp:109
#10 0x8058c06 in Core::openProject (this=0xbffff244) at core.cpp:583
#11 0x805c024 in Core::slotProjectOpen (this=0xbffff244) at core.cpp:1147
#12 0x40bef73d in QObject::activate_signal () from
/usr/lib/qt/lib/libqt.so.2
#13 0x408431c6 in KAction::activated () from /opt/kde2/lib/libkdeui.so.3
#14 0x4083523f in KAction::slotActivated () from /opt/kde2/lib/libkdeui.so.3
#15 0x40befa1e in QObject::activate_signal () from
/usr/lib/qt/lib/libqt.so.2
#16 0x40c20fb3 in QSignal::activate () from /usr/lib/qt/lib/libqt.so.2
#17 0x40cbe9ad in QPopupMenu::mouseReleaseEvent ()
   from /usr/lib/qt/lib/libqt.so.2
#18 0x40c36c72 in QWidget::event () from /usr/lib/qt/lib/libqt.so.2
#19 0x40b9c1d6 in QApplication::notify () from /usr/lib/qt/lib/libqt.so.2
#20 0x40950c76 in KApplication::notify () from /opt/kde2/lib/libkdecore.so.3
#21 0x40b6b98b in QETWidget::translateMouseEvent ()
   from /usr/lib/qt/lib/libqt.so.2
#22 0x40b6939b in QApplication::x11ProcessEvent ()
   from /usr/lib/qt/lib/libqt.so.2
#23 0x40b68341 in QApplication::processNextEvent ()
   from /usr/lib/qt/lib/libqt.so.2
#24 0x40b9de2f in QApplication::enter_loop () from
/usr/lib/qt/lib/libqt.so.2
#25 0x40b682bb in QApplication::exec () from /usr/lib/qt/lib/libqt.so.2
#26 0x80530fc in main (argc=7, argv=0xbffff4a4) at main.cpp:54
#27 0x410d3baf in __libc_start_main () from /lib/libc.so.6




-
to unsubscribe from this list send an email to kdevelop-devel-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop-devel mailing list