amazon-kinesis-video-streams-webrtc-sdk-c icon indicating copy to clipboard operation
amazon-kinesis-video-streams-webrtc-sdk-c copied to clipboard

[Bug]: KVS SDK RTP retransmitter bug

Open wei-zhang-simplisafe opened this issue 1 year ago • 2 comments

Please confirm you have already done the following

  • [X] I have searched the repository for related/existing bug reports
  • [X] I have all the details the issue requires

Please answer the following prompt

  • [X] This issue is replicable using the unmodified sample application

Describe the bug

There is a bug at https://github.com/awslabs/amazon-kinesis-video-streams-webrtc-sdk-c/blob/master/src/source/PeerConnection/Retransmitter.c#L108

sequenceNumberList should be replaced by validIndexList

For RTC sequence number <= 65536, sequenceNumberList and validIndexList have the same value, the code still works. At 2Mbps, after 300 seconds of livestreaming, KVS SDK will fail to put retransmited packets back into rolling buffer and the video quality could suffer.

Expected Behavior

Re-transmitter always works

Current Behavior

Re-transmitter fails after sending 65536 RTP packets

Reproduction Steps

after sending 65536 RTP packets, re-transmit will fail with STATUS_ROLLING_BUFFER_NOT_IN_RANGE

WebRTC C SDK version being used

latest as of 05/20/2024

If it was working in a previous version, which one?

No response

Compiler and Version used

all compilers

Operating System and version

all OS

Platform being used

all platform

wei-zhang-simplisafe avatar May 21 '24 17:05 wei-zhang-simplisafe

This ticket is exactly the same as https://github.com/awslabs/amazon-kinesis-video-streams-webrtc-sdk-c/issues/1453 The previous ticket was submitted two years ago. I am surprised that it was never fixed

wei-zhang-simplisafe avatar May 21 '24 17:05 wei-zhang-simplisafe

@wei-zhang-simplisafe I'm working on validating the finding, when I have an update I will post it here.

hassanctech avatar May 28 '24 17:05 hassanctech

This is a very old issue. We encourage you to check if this is still an issue in the latest release and if you find that this is still a problem, please feel free to open a new one.

github-actions[bot] avatar Jan 05 '25 00:01 github-actions[bot]