SingleApplication icon indicating copy to clipboard operation
SingleApplication copied to clipboard

Randomly freeze in QSharedMemory::attach() which finally calls QSharedMemory::lock

Open SineStriker opened this issue 10 months ago • 0 comments

#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.

SineStriker avatar Apr 24 '24 01:04 SineStriker