-
Notifications
You must be signed in to change notification settings - Fork 450
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
[Flatpak][7.13.0] CoreConnectionError: "The connection to the Tribler Core was lost" in event_request_manager.on_error #7603
Comments
Sentry issue: TRIBLER-141 |
This issue has been reported on multiple platforms, however, I was able to reproduce it on Linux using the Flatpak build. Using the Flatpak build, it was possible to run multiple instances of Tribler. Each of those instances created separate GUI and core processes but with the same PID (because of the Flatpak sandbox environment). Since the state directory is shared among the instances, all Tribler instances connect to the first running core. Then, shutting down one of the GUI instances also kills the only running core used by all the GUI instances. This results in the other Tribler instances failing to connect to the Core which raise this reported issue. |
Sentry issue: TRIBLER-1CY |
Can we add additional Sentry reporting to confirm these suspicions? Great addition to our debug chain if we finally nail this mysterious error. The above is a bit cryptic to me, but the suspicion is that this error reported by 39 unique Sentry users is all just a close Tribler gone wrong ??? |
Sentry issue: TRIBLER-1DW |
As far as I understand the following explanation by @xoriole:
The issue should be solved by @kozlovsky in Am I right? |
As this issue is renamed to be Flatpak specific which is fixed, we can close this issue. I have created a new issue specific to Windows issue here: #7772 |
https://sentry.tribler.org/organizations/tribler/issues/2003/events/de644ea355b040ba95b14ae230256a88/
The error looks strange; I spent quite some time trying to figure it out. The following is how I understand what is going on:
A user tries to close the Tribler GUI.
TriblerWindow.close_tribler()
is called.TriblerWindow.close_tribler()
method callsself.core_manager.stop()
:You can see the 'Stopping Core manager' message in the log, so the line marked as
#4
is executed.The line
#5
that sets theevents_manager.shutting_down
flag toTrue
should also be executed because......in the log, you can see the message from the line
#6
,"Sending shutdown request to Tribler Core"
.So, based on log messages, I'm sure that the flag
events_manager.shutting_down
should be set toTrue
before the shutdown request to Core is performed.But then, the actual error happens in the
on_error
method of the event manager:You can see from the code that EventManager should raise
CoreConnectionError
only whenself.shutting_down
is not set toTrue
. But in the current case, as we just seen, it should be set toTrue
. So, currently, I do not understand how this error is possible.Does anybody have any idea how this error can happen?
The text was updated successfully, but these errors were encountered: