You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
panic: bug: ClusterConfig called on closed or nonexistent connection #4170
bugA problem with current functionality, as opposed to missing functionality (enhancement)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
I think the connection failure at the top is relevant. Maybe this is something simple as two slow concurrent connections (i.e., one in each direction), one succeeding first and getting added, the other failing and removing the first from the model, then the first one continuing and exploding like this.
We might as well crash as we have obviously cleaned out the connection that we are receiving messages for and have no clue about the current reality. We need to figure out why that happens and prevent it.
@calmh Sorry, unfortunately unable to reproduce. I had been doing nothing unusual prior to the crash - if it occurs again I will try and get more details
I had this crash for the first time just now. It happened around the same time some "unexpected" disconnections occurred (laptops moving out of WiFi range), but these disconnections normally happen dozens of times per day and have not given us trouble in the past.
They don't look too helpful, but here are the Synctrayzor logs from the half minute before the crash.
I suspect the connection replacement code, which gets more exercise since KCP is out. (I get initial connections on KCP, switched to tcp afterwards, for whatever reason as well)
It's most likely us starting a connection, receiving a message, disconnecting, and then delivering the message on a separate routine that is still alive.
bugA problem with current functionality, as opposed to missing functionality (enhancement)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
Activity
calmh commentedon May 23, 2017
For clarity:
[-]Syncthing Panic[/-][+]panic: bug: ClusterConfig called on closed or nonexistent connection [/+]calmh commentedon May 23, 2017
I think the connection failure at the top is relevant. Maybe this is something simple as two slow concurrent connections (i.e., one in each direction), one succeeding first and getting added, the other failing and removing the first from the model, then the first one continuing and exploding like this.
calmh commentedon May 23, 2017
Note same in #3633 which this is really a dup of, but I'm leaving it open just because
AudriusButkevicius commentedon May 23, 2017
I think we should just remove the panic and ignore the message, no point in crashing?
calmh commentedon May 23, 2017
calmh commentedon May 23, 2017
@eyeson I don't suppose you can reproduce this somewhat reliably, or know the conditions leading up to it?
eyeson commentedon May 23, 2017
@calmh Sorry, unfortunately unable to reproduce. I had been doing nothing unusual prior to the crash - if it occurs again I will try and get more details
Nnnes commentedon May 25, 2017
I had this crash for the first time just now. It happened around the same time some "unexpected" disconnections occurred (laptops moving out of WiFi range), but these disconnections normally happen dozens of times per day and have not given us trouble in the past.
They don't look too helpful, but here are the Synctrayzor logs from the half minute before the crash.
scienmind commentedon Nov 12, 2017
Happens to me as well, from time to time,
ST log: https://gist.github.com/anonymous/9ac8cb7329e8af3373efea3f79e51e8c
ST v.0.14.40
calmh commentedon Nov 12, 2017
AudriusButkevicius commentedon Nov 12, 2017
It's most likely us starting a connection, receiving a message, disconnecting, and then delivering the message on a separate routine that is still alive.
scienmind commentedon Nov 16, 2017
Just in case more logs are useful: https://gist.github.com/anonymous/f581a4066da074d0c7ca07284f22a8d5
13 remaining items
Revert "lib/model, lib/protocol: Wait for reader/writer loops on close (
Revert "lib/model, lib/protocol: Wait for reader/writer loops on close (
calmh commentedon May 8, 2019
Reopen because revert
lib/protocol: Don't call receiver after calling Closed (fixes syncthi…
Merge branch 'master' into crashrep