voc / srtrelay

SRT relay server for distributing media streams to multiple clients.
MIT License
134 stars 37 forks source link

Abnormal program termination with lossy stream publisher #21

Open lbgaus opened 2 years ago

lbgaus commented 2 years ago

Hello, first off this is a great piece of software, works very nicely in my testing. I wanted to report one issue I saw, not sure if this is within the libsrt library or the srtrelay app, but when publishing a stream with a severely lossy connection, the program exited abnormally. Below are a few logfiles from the end of the terminal.

23:54:04.089735/SRT:TsbPd!W:SRT.br: @223707369:RCV-DROPPED 9 packet(s). Packet seqno %194915974 delayed for 0.210 ms
23:54:04.095921/SRT:TsbPd!W:SRT.br: @223707369:RCV-DROPPED 9 packet(s). Packet seqno %194915984 delayed for 6.360 ms
23:54:04.098852/SRT:TsbPd!W:SRT.br: @223707369:RCV-DROPPED 16 packet(s). Packet seqno %194916002 delayed for 9.214 ms
23:54:04.101323/SRT:TsbPd!W:SRT.br: @223707369:RCV-DROPPED 9 packet(s). Packet seqno %194916013 delayed for 11.643 ms
23:54:04.136888/SRT:TsbPd!W:SRT.br: @223707369:RCV-DROPPED 12 packet(s). Packet seqno %194916026 delayed for 2.510 ms
23:54:04.137017/SRT:TsbPd!W:SRT.br: @223707369:RCV-DROPPED 7 packet(s). Packet seqno %194916042 delayed for 2.075 ms
23:54:04.146945/SRT:TsbPd!W:SRT.br: @223707369:RCV-DROPPED 2 packet(s). Packet seqno %194916059 delayed for 11.648 ms
23:54:04.175223/SRT:TsbPd!W:SRT.br: @223707369:RCV-DROPPED 12 packet(s). Packet seqno %194916091 delayed for 0.592 ms
terminate called after throwing an instance of 'std::runtime_error'
  what():  FixedArray: invalid index
Aborted

If I should provide any additional information to help track down the problem, I would be happy to do this. Thanks!

iSchluff commented 2 years ago

Hi, unfortunately that seems to be a bug in the library, not much we can do about that other than report this upstream.

tt2468 commented 1 year ago

Looks like https://github.com/Haivision/srt/pull/2298 might fix the issue?