SingleApplication
SingleApplication copied to clipboard
Randomly freeze in QSharedMemory::attach() which finally calls QSharedMemory::lock
#ifdef Q_OS_UNIX
// By explicitly attaching it and then deleting it we make sure that the
// memory is deleted even after the process has crashed on Unix.
d->memory = new QSharedMemory(d->blockServerName);
d->memory->attach(); // The Application freezes here
delete d->memory;
#endif
Comment this part of codes and restart the application, then quit and uncomment back and start the application again, then the problem disappears.