RTCVideoTrack removeRenderer array crash

andrew.n

Member
@Max Fast fingers when using session.disconnect() if the user cancels the call right after the call initiated (during a pending state)
Screenshot 2023-11-13 at 17.17.18.png
Screenshot 2023-11-13 at 17.17.29.png

Can you includea count verification before calling removeObjectsInRange ?

This happens when I call the disconnect & close after receiving fpwcsStreamStatusFailed from SDK.
 
Last edited:

Max

Administrator
Staff member
Good day.
We raised the ticket WCS-3977, will let you know about progress here.
As workaround, you can lock the disconnect button until stream change its state.
 

andrew.n

Member
@Max We did few tests and this issue still happens sometimes:
Code:
Update stream state 2, media session id is DD9E94CE-3834-47D6-8BD6-EA8D31484DEE
Update stream state 6, media session id is 85316B0D-17AA-43FA-87C1-6B22FEF131F5
didChangeIceConnectionState 6
PeerConnectionState change 5
*** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM removeObjectsInRange:]: range {0, 1} extends beyond bounds for empty array'
*** First throw call stack:
(0x199f2c870 0x19222bc00 0x199e79418 0x10a4b6fb4 0x10962c858 0x10962a0e8 0x10961ea1c 0x10991cf50 0x10991eb34 0x10992698c 0x109927728 0x1099345f8 0x109933c2c 0x203899964 0x203899a04)
libc++abi: terminating due to uncaught exception of type NSException
 

Max

Administrator
Staff member
Good day.
Please confirm if the issue is reproduced in Two Way Streaming Swift or Media Devices Swift examples. If not, please modify example code to reproduce the issue and send using this form.
 

andrew.n

Member
@Max Press broadcast and stop before the broadcast start, for us there are some events that we must wait for, in the example you have is harder to reproduce - maybe use some Timers to delay. In my case it might happen that the user presses to respond the call, and before the connection is setted up, the user stops the call (due to any reason on his side).
 

Max

Administrator
Staff member
We usually do not provide ETA for forum tickets. Raised the ticket priority, hope this will be fixed to New Year Eve.
 

Max

Administrator
Staff member
We can't reproduce this in Media Devices Swift or Two Way Streaming Swift examples. Please modify any of the examples to stable reproduce the issue and send us the code using the form.
 
Top