Skip to content
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

Crasher in Pion when logging at DEBUG or TRACE level. ICE Candidate Pair String() #197

Closed
tomandersen opened this issue Jun 15, 2020 · 0 comments

Comments

@tomandersen
Copy link

Your environment.

Version:
github.com/pion/rtp v1.5.5
github.com/pion/webrtc/v2 v2.2.15

Browser: N/A

Other Information -

What did you do?

Turned on debug logging at the TRACE level.
ENV setting:
PION_LOG_TRACE=all

What did you expect?

For the program to run as before, only with logging.

What happened?

When the connection was shutdown by the remote side, the logger crashed Pion.

It looks like the String() function in the candidatepair.go file assumes that 'p' will not be nil. But I think one part went away as the remote connection died.

Screen Shot 2020-06-15 at 4 02 53 PM

There is other code that checks whether p is nil before continuing in that same file. Seems an easy fix.

--Tom

@Sean-Der Sean-Der transferred this issue from pion/webrtc Jun 15, 2020
wawesomeNOGUI added a commit to wawesomeNOGUI/ice that referenced this issue Jan 15, 2021
Added a check in case p has no value. I just returned the string "nil" if there is no value (e.g. connection loss).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant