Commit 43db1a72 authored by Igor Kushnir's avatar Igor Kushnir Committed by Francis Herne

Don't crash during a slow (>= 60 seconds) startup

A quick benchmark shows that the added QCoreApplication::processEvents()
call takes the same time - 6 milliseconds - in Debug and Release builds.
6 milliseconds is not a noticeable startup slowdown, especially
considering that the event loop does useful work: processes events,
which would have to be handled eventually anyway.

BUG: 425841
FIXED-IN: 5.7.0
parent b6752b75
Pipeline #32760 passed with stage
in 54 minutes and 35 seconds
......@@ -385,6 +385,12 @@ int main( int argc, char *argv[] )
}
KDevelopApplication app(argc, argv);
// Prevent SIGPIPE, then "ICE default IO error handler doing an exit(), pid = <PID>, errno = 32"
// crash when the first event loop starts at least 60 seconds after KDevelop launch. This can
// happen during a Debug Launch of KDevelop from KDevelop, especially if a breakpoint is hit
// before any event loop is entered.
QCoreApplication::processEvents();
KLocalizedString::setApplicationDomain("kdevelop");
KAboutData aboutData( QStringLiteral("kdevelop"), i18n("KDevelop"), QStringLiteral(KDEVELOP_VERSION_STRING),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment