-
Notifications
You must be signed in to change notification settings - Fork 1k
qTox segfaults when logging out after reconnect #4201
Comments
Note: I was not able to reproduce the crash on a profile without any contacts. On the other hand, it's ~easily reproducible with a big contact list (>40). When trying to reproduce, one should keep clicking on |
the path is: with multiple clicks of logout, multiple invocations of showLogin get queued and they get executed in parallel. Then the second thread calls delete on profile while the first thread is still destructing profile, so it starts checking coreThread->isRunning() while the first is calling delete coreThread. |
"isEnabled() indicates whether the button can be pressed by the user. Note: As opposed to other widgets, buttons derived from QAbstractButton accept mouse and context menu events when disabled." So even though we're calling GUI::setEnabled(false); at the start of Nexus::showLoginLater, it still accepts more clicks. |
Brief Description
OS: Gentoo Linux amd64
qTox version: v1.8.1-63-g2248deb
Commit hash: 2248deb
toxcore: 0.1.5
Qt: 5.6.2
Reproducible: Always
Steps to reproduce
Advanced
tabProfile
pageReconnect
in settings tabLogout
onProfile
pageObserved Behavior
qTox segfaults
Expected Behavior
qTox should log out profile
Additional Info
backtrace:
The text was updated successfully, but these errors were encountered: