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

Fix Tribler shutdown after closing of FeedbackDialog #6960

Merged

Conversation

kozlovsky
Copy link
Contributor

Currently, in case of exception, if SentryReporter is in test mode, after reporting an exception it calls AppManager.quit_application(), which in turn calls QApplication.quit().

This logic is incorrect, as the Tribler core process, managed by a QProcess instance, terminated immediately without any possibility to do cleanup work, like removing the triblerd.lock file or saving the libtorrent state.

The correct behavior is to stop the Core process the usual way and then shut down GUI. This PR fixes the shutdown logic, allowing the Core to shut down properly.

@kozlovsky kozlovsky marked this pull request as ready for review July 4, 2022 14:14
@kozlovsky kozlovsky requested review from a team, xoriole and drew2a and removed request for a team July 4, 2022 14:14
@kozlovsky kozlovsky changed the title Fix Tribler shutdown seqafter closing of FeedbackDialog Fix Tribler shutdown after closing of FeedbackDialog Jul 4, 2022
src/tribler/gui/core_manager.py Outdated Show resolved Hide resolved
@drew2a
Copy link
Contributor

drew2a commented Jul 7, 2022

This PR could be related to #6039

@kozlovsky kozlovsky force-pushed the fix/tribler_shutdown_on_error branch from e63e8b9 to 554b141 Compare July 8, 2022 00:19
@kozlovsky kozlovsky merged commit 02f7975 into Tribler:release/7.12 Jul 8, 2022
@kozlovsky kozlovsky deleted the fix/tribler_shutdown_on_error branch July 8, 2022 00:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants