Bug 83227 - kdevdesigner crashes loading multiple ui files
Summary: kdevdesigner crashes loading multiple ui files
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-11 18:00 UTC by Weiland
Modified: 2004-06-13 03:39 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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