Bug 74955 - crash when selecting "Project options" in the "Project" menu
Summary: crash when selecting "Project options" in the "Project" menu
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Build tools: ANT (show other bugs)
Version: 3.0.0
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-11 15:11 UTC by Eugen D
Modified: 2004-02-11 22:10 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eugen D 2004-02-11 15:11:52 UTC
Version:           3.0.0 (using KDE 3.2.0, SuSE)
Compiler:          gcc version 3.3.1 (SuSE Linux)
OS:          Linux (i586) release 2.4.21-166-default

I imported a "Java ant" project and can work with it (just tried to open and edit files) - but when select "Project options" in the menu, kdevelop crashes.

I attach my project file and the stack trace of the crash

My project.kdevelop:
<-----------------
<!DOCTYPE kdevelop>
<kdevelop>
 <general>
  <author>Eugen Dück</author>
  <email>Eugen@Dueck.org</email>
  <version>$VERSION$</version>
  <projectmanagement>KDevAntProject</projectmanagement>
  <primarylanguage>Java</primarylanguage>
  <ignoreparts>
   <part>KDevDebugger</part>
  </ignoreparts>
 </general>
 <kdevcustomproject>
  <build>
   <buildtool>ant</buildtool>
  </build>
 </kdevcustomproject>
  <kdevfilecreate>
    <useglobaltypes>
      <type ext="java"/>
    </useglobaltypes>
  </kdevfilecreate>
</kdevelop>
----------------->
Stack Trace:
<-----------------
[New Thread 16384 (LWP 12252)]
[New Thread 32769 (LWP 12262)]
[New Thread 16386 (LWP 12263)]
0x418eb006 in waitpid () from /lib/libpthread.so.0
#0  0x418eb006 in waitpid () from /lib/libpthread.so.0
#1  0x40e03a7a in KCrash::defaultCrashHandler(int) ()
   from /opt/kde3/lib/libkdecore.so.4
#2  0x418e9bb1 in __pthread_sighandler () from /lib/libpthread.so.0
#3  <signal handler called>
#4  0x4145e19e in QTableHeader::setSectionStretchable(int, bool) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#5  0x41459cf0 in QTable::setRowStretchable(int, bool) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#6  0x426c35ff in AntProjectPart::projectConfigWidget(KDialogBase*) ()
   from /opt/kde3/lib/kde3/libkdevantproject.so
#7  0x426c4409 in AntProjectPart::qt_invoke(int, QUObject*) ()
   from /opt/kde3/lib/kde3/libkdevantproject.so
#8  0x4123b7d8 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#9  0x405c3fdd in KDevCore::projectConfigWidget(KDialogBase*) ()
   from /opt/kde3/lib/libkdevelop.so.1
#10 0x080722d0 in ProjectManager::slotProjectOptions() ()
#11 0x080756f8 in ProjectManager::qt_invoke(int, QUObject*) ()
#12 0x4123b8bb in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#13 0x4123b684 in QObject::activate_signal(int) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#14 0x40b1ede9 in KAction::activated() () from /opt/kde3/lib/libkdeui.so.4
#15 0x40b1e85d in KAction::slotActivated() () from /opt/kde3/lib/libkdeui.so.4
#16 0x40b1eea1 in KAction::qt_invoke(int, QUObject*) ()
   from /opt/kde3/lib/libkdeui.so.4
#17 0x4123b8bb in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#18 0x4157bd4a in QSignal::signal(QVariant const&) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#19 0x41256648 in QSignal::activate() () from /usr/lib/qt3/lib/libqt-mt.so.3
#20 0x41342bae in QPopupMenu::mouseReleaseEvent(QMouseEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#21 0x41272e36 in QWidget::event(QEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#22 0x411da776 in QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#23 0x411da2d8 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#24 0x40d83464 in KApplication::notify(QObject*, QEvent*) ()
   from /opt/kde3/lib/libkdecore.so.4
#25 0x4116a506 in QETWidget::translateMouseEvent(_XEvent const*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#26 0x411684d5 in QApplication::x11ProcessEvent(_XEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#27 0x411804dd in QEventLoop::processEvents(unsigned) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#28 0x411ed1d0 in QEventLoop::enterLoop() ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#29 0x411ed0c6 in QEventLoop::exec() () from /usr/lib/qt3/lib/libqt-mt.so.3
#30 0x411daa0f in QApplication::exec() () from /usr/lib/qt3/lib/libqt-mt.so.3
#31 0x080646e4 in main ()
----------------->
Comment 1 Jens Dagerbo 2004-02-11 15:49:56 UTC
Confirmed. 

QTableHeader mindlessly blows up when we attempt to stretch a row that doesn't exist. I have no idea why we want to do any stretching anyway..
Comment 2 Jens Dagerbo 2004-02-11 15:51:30 UTC
CVS commit by dagerbo: 

Fix bug #74955

CCMAIL: 74955-done@bugs.kde.org


  M +0 -1      antprojectpart.cpp   1.25


--- kdevelop/buildtools/ant/antprojectpart.cpp  #1.24:1.25
@@ -482,5 +482,4 @@ void AntProjectPart::projectConfigWidget
   m_antOptionsWidget->Properties->setNumRows(m_antOptions.m_properties.count());
   m_antOptionsWidget->Properties->setNumCols(2);
-  m_antOptionsWidget->Properties->setRowStretchable(1,true);
 
   QMap<QString,QString>::Iterator it;


Comment 3 Eugen D 2004-02-11 20:59:58 UTC
KDevelop did not crash anymore after installing ant... :)
But of course it should not crash when an optional program is not present.