-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
fix: rtcp interceptor nil panic #2930
base: master
Are you sure you want to change the base?
Conversation
Thank you @LeeTeng2001! How can I reproduce this? I would like to add a test before merging! |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2930 +/- ##
==========================================
- Coverage 79.06% 78.96% -0.11%
==========================================
Files 89 89
Lines 8573 8575 +2
==========================================
- Hits 6778 6771 -7
- Misses 1305 1313 +8
- Partials 490 491 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
hi, can you give me some idea on how to write a unit test that cover this part of code? I would love to write one without spinning up a full webrtc connection. Actually I don't really know which part of the negotiation process caused my code to panic. |
I would like to write a very minimal code to trigger the track receiver to peek without hooking up full webrtc framework. This is what I got so far, but it ran into deadlock, can you give me some idea on how I should achive this?
|
@LeeTeng2001 Do you have an example/can you explain how to reproduce with the full WebRTC? I can make it more minimal after that! sorry don’t fully understand yet |
@Sean-Der I can't provide the full example as it's confidential, can I provide error trace point instead? This panic happens after local descriptor has gather completed. When I run my code in debug mode, I noticed that the track codec is empty, is this expected behaviour? I tested and this issue is still present on v4 version of webrtc, I thought this issue might be fixed with #2610, are they related? |
Relevant debug output before panic
|
Can you provide the Offer/Answer that causes the issue? I just want to understand/fix the root cause |
Sure:
Answer:
|
hello, should I provide additional infos? This is a relevant issue |
bump |
Description
Add a nil rtpinterceptor check before invoking read method
Reference issue
Fixes #2929