-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Peers disconnecting with UNKNOWN_EXCEPTION #4300
Comments
You experience these connection issues if you start Bisq after the display had turned itself off, right? If the display turns itself off (for the first time) while a Bisq instance is running (without connection issues until this point), does the connection degrade immediately? Does it ever recover without rebooting your Mac? |
The steps are:
|
BIG TESTING UPDATE:
On the other hand, if the Bisq app is opened fresh and left as the active window on the screen overnight, everything is fine, no errors in the log, all peers still connected ok and all offers visible. From what I can tell this seems to be an issue with JavaFX. |
It used to be a problem if sleep mode was activated and that's why we had a sound file looping to avoid resources not being allocated to bisq. Did we remove this sound playing feature? If that's the case it might well be the reason for these dropped messages. |
I believe the sounds file looping has been replaced with caffeinate, if supported. After more testing it seems the Bisq window doesn't even need to be minimized, it just needs to be NOT the active window in order to reproduce this issue within max 60min. |
Sounds a lot like the issue that the sound loop was handling though, maybe there is some other resource prioritization going on that caffeinate doesn't handle but the sound loop did. |
So it looks like when building Bisq locally and starting with ./bisq-desktop the issue doesn't happen anymore for me. |
I just observed the same issue. Had Bisq binary on OSX running and after display was on sleep for a while the Bisq app have very few offers, and started to fill up offer book again. So the caffeinate solution does not prevent it from getting throttled by the OS. From the description (https://www.unix.com/man-page/osx/8/caffeinate/) I am not sure of caffeinate is really doing what we want. We do NOT want that Bisq prevents system or display sleep, but just that Bisq will not sent to hibernate. The sound loop trick did that. To me it seems caffeinate is the wrong tool, and maybe there is none on OSX. @dmos62 Are you familiar with caffeinate? The dev (@christophsturm) who introduced it is not active in Bisq anymore. I think this is a very important issue as OSX users who have offers online will either not get their offers published, or if one takes the offer there is a high chance of timeout or connection issues which can lead to failed trades. |
It seems caffeinate is not preventing that Bisq gets throttled resources once the OS switches to hibernate. See: bisq-network#4300 (comment)
As @eigentsmis pointed out it can be that the behaviour of the binary and the java app started from source code is different. Both version need to work reliably. |
@chimp1984 Unfortunately I don't have access to a Mac.
…On Sun, Aug 9, 2020, 04:49 chimp1984 ***@***.***> wrote:
As @eigentsmis <https://github.com/eigentsmis> pointed out it can be that
the behaviour of the binary and the java app started from source code is
different. Both version need to work reliably.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4300 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAUW6VAIS7HFEL3DTVX3RMDR7YFC7ANCNFSM4N5GXXCA>
.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because of inactivity. Feel free to reopen it if you think it is still relevant. |
TESTING UPDATE: PLEASE SEE MY LAST COMMENT IN THIS THREAD
After 15-20min from opening the Bisq app on OSX 10.12.6 I see very long roundtrip times (see attached snippet) and also most of the peers disconnected with UNKNOWN_EXCEPTION (see attached log)
Did a lot of testing and my conclusion so far is that it's directly related to the "Turn display off after" setting in the Energy Saver window on my Mac. It seems that once the display goes off it also puts the system in some sort of idle/sleep mode and I believe this impacts Bisq's network connectivity.
Two ways which I've so far tested successfully as a workaround to this issue are:
(Example: /usr/bin/caffeinate -w 4137 -d)
UNKNOWN_EXCEPTION.log
The text was updated successfully, but these errors were encountered: