Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SineStriker opened this issue Apr 24, 2024 · 0 comments

Comments

@SineStriker
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant