-
Notifications
You must be signed in to change notification settings - Fork 160
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
Panic when adding candidate #589
Comments
@m1k1o It looks like I think it would be worth adding a defensive It would be nice to figure out why this is happening though! Would it be possible for you to deploy some more logging + a check around this?
|
From my findings, I see that right before panic, the code is frozen for a couple of seconds (up to 10). Probably because of some TCP connection blocking when write buffer is full. When it finally unblocks, it is flooded with all messages at once and most likely ocurrs some race condition that leads to panic. Last message seems to be |
That is a strange one! I think we might be able to reproduce this though. Can you create a TCP client that doesn't disconnect properly. Maybe as simple as connecting from phone then turning on Airplane mode? I am very confident that |
Simply connecting using TCP on mobile and truning on Airplane Mode did not cut it:
I traced it back to this commit, that added It was since then reverted by and changed by you. Therefore I believe, upgrading to the latest should fix the issue. Seems like it was not reproducible because under usual circumstances it would be first entry in candidates list, and therefore not marked as duplicate. Only if my client had 2 IP addresses, and the second one should be used, it panicked reproducibly. |
After upgrading pion/ice to But actually I am not able to connect using UDPMux or TCPMux (with NAT1TO1). Only using ephemeral UDP the connection is possible. It has something to to again with the fact, that my server has 2 interfaces (first for the Internet, other for Management) and I am connecting from Management. After disabling the other Interface (or removing NAT1TO1), it works like a charm. This is issue on its own, so maybe it should be extracted and this one closed. |
Closing, no work to be done here! |
This panic is fairly rare, but in certain (yet unknown) circumstances it is more prevalent.
The text was updated successfully, but these errors were encountered: