Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions YACReader/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ int main(int argc, char *argv[])
#else
QApplication app(argc, argv);
#endif
// Prevent SIGPIPE, then "ICE default IO error handler doing an exit(), pid = <PID>, errno = 32"
// crash on X11 when the first event loop starts at least 60 seconds after a Qt application
// launch. This can happen during a Debug launch of YACReader from Qt Creator if Qt debug
// symbols are installed in the system or a breakpoint is hit before any event loop is entered.
// This is a workaround for QTBUG-58709.
QCoreApplication::processEvents();

#ifdef FORCE_ANGLE
app.setAttribute(Qt::AA_UseOpenGLES);
Expand Down
5 changes: 5 additions & 0 deletions YACReaderLibrary/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ int main(int argc, char **argv)
{
qInstallMessageHandler(messageHandler);
QApplication app(argc, argv);
// Prevent SIGPIPE, then "ICE default IO error handler doing an exit(), pid = <PID>, errno = 32"
// crash on X11 when the first event loop starts at least 60 seconds after a Qt application
// launch. This can happen during a Debug launch of YACReaderLibrary from Qt Creator if a
// breakpoint is hit before any event loop is entered. This is a workaround for QTBUG-58709.
QCoreApplication::processEvents();

#ifdef FORCE_ANGLE
app.setAttribute(Qt::AA_UseOpenGLES);
Expand Down