Closed GoogleCodeExporter closed 9 years ago
Is that the latest git master code? Do you have logs?
Original comment by hearn@google.com
on 2 Jan 2014 at 7:23
Yes, the latest git master code. Sorry for not providing logs. I jsut checked
the logs of different times of the crash and it boils down to the network going
down while being connected to peers. It happened on an Android app if that is
important.
Here is the interesting snippet of the log:
//Ususal Transaction announcments...
19:19:23.250 [NioClientManager] ConnectionHandler - Error handling
SelectionKey: recvfrom failed: ETIMEDOUT (Connection timed out)
19:19:23.251 [NioClientManager] PeerGroup - [98.164.13.253]:8333: Peer died
19:19:23.253 [NioClientManager] NioClientManager - Could not connect to
/173.77.168.159:8333
19:19:23.253 [NioClientManager] PeerGroup - Failed to connect to
/173.77.168.159:8333: java.net.ConnectException: failed to connect to
/173.77.168.159 (port 8333): connect failed: ENETUNREACH (Network is
unreachable)
19:19:23.253 [NioClientManager] PeerGroup - [173.77.168.159]:8333: Peer died
Last three lines repeat for every peer (until SO) I got from the PeerDiscovery
until the log begins with the app startup again. This correlation is with all
the occasions of the StackOverflow so far.
Original comment by max.kell...@googlemail.com
on 2 Jan 2014 at 7:56
handlePeerDeath does not call connectToAnyPeer after my recent change to the
way PeerGroup works, so this couldn't be git master.
Please try the latest.
Original comment by c1.devra...@niftybox.net
on 2 Jan 2014 at 8:15
Wow, now this is somewhat emberassing. I just checked my git history and
oversaw the last 3 commits. Sorry to cause you trouble here, I'm a git newbie :/
I added the last changes and will watch out if this happens again, which I
suppose won't. Thanks so much for your hard work here!
Original comment by max.kell...@googlemail.com
on 2 Jan 2014 at 9:31
Glad to be of help. :)
Original comment by c1.devra...@niftybox.net
on 2 Jan 2014 at 10:04
I think we can forgive you for being 3 commits behind ;) You just got
unlucky/lucky that Miron fixed this issue (by adding an exponential backoff
feature) very recently. Going to close this as fixed.
Original comment by hearn@google.com
on 5 Jan 2014 at 2:20
Is this likely to also be an issue for 0.10?
Original comment by andreas....@gmail.com
on 5 Jan 2014 at 3:11
Not sure. It depends on the details of how you respond to the network going
down and how the OS exposes that. If you aren't getting stack overflow crash
reports from your app then probably the answer is "no".
Original comment by hearn@google.com
on 5 Jan 2014 at 4:01
Original issue reported on code.google.com by
max.kell...@googlemail.com
on 2 Jan 2014 at 6:02