Bug 83227

Summary: kdevdesigner crashes loading multiple ui files
Product: [Applications] kdevelop Reporter: Weiland <weiland>
Component: generalAssignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Weiland 2004-06-11 18:00:57 UTC
Version:           HEAD 040608 (using KDE KDE 3.2.1)
Installed from:    SuSE RPMs
Compiler:          gcc, cpp (GCC) 3.3.3 (SuSE Linux) 
OS:                Linux

Opening an *.ui file when there is another *.ui file beeing edited leads to heavy cpu load and harddisk noise. A few seconds later kdevelop closes. Unsaved changes get lost.
No stack trace, no error messages.
Comment 1 Jens Dagerbo 2004-06-13 03:11:09 UTC
Verified.
Comment 2 Jens Dagerbo 2004-06-13 03:39:31 UTC
CVS commit by dagerbo: 

When there is already a kdevdesigner part loaded, the "old msghandler" 
is actually the same as the one of the current part due to it being a 
static function.

Avoid recursively calling self and eventually crash, instead just let the 
error through to stderr

CCMAIL: 83227-done@bugs.kde.org


  M +1 -1      outputwindow.cpp   1.2


--- kdevelop/kdevdesigner/designer/outputwindow.cpp  #1.1:1.2
@@ -99,5 +99,5 @@ static void debugMessageOutput( QtMsgTyp
         if ( debugoutput && debugoutput->isVisible() )
             debugoutput->append( s );
-        else if ( OutputWindow::oldMsgHandler )
+        else if ( OutputWindow::oldMsgHandler && OutputWindow::oldMsgHandler != debugMessageOutput )
             (*OutputWindow::oldMsgHandler)( type, msg );
         else