element-call icon indicating copy to clipboard operation
element-call copied to clipboard

remoteSDPStreamMetadata can be missing in pushRemoteFeed

Open dbkr opened this issue 3 years ago • 2 comments

Describe the bug On trying to reproduce another bug, I got an exception where one side failed to place a call to the other because it threw an exception in pushRemoteFeed due to there being no entry for the stream in this.remoteSDPStreamMetadata.

Screenshot 2022-06-29 at 14 45 04 Screenshot 2022-06-29 at 14 45 16

I was repeatedly exiting the room and re-entering on the other client, so this is probably some kind of race where the metadata hasn't arrived fast enough?

dbkr avatar Jun 29 '22 13:06 dbkr

I've seen something similar a long time ago (probably a different bug); it was caused by the other side using a wrong streamId in the metadata - it would be good to check what the metadata actually is

(oops :sweat_smile: )

SimonBrandner avatar Jun 29 '22 14:06 SimonBrandner

I keep hitting this so have been adding some debugging to investigate it. The other side is sending an empty object for the stream metadata because it has no feeds, somehow. It looks like some kind of race where they're being deleted between pushing all the local feeds and sending the offer, while awaiting for the createAnswer / setLocalDescription. Looks like it happens if the previous call gets terminated in that time: somehow terminating one call is removing feeds from the other.

dbkr avatar Jun 29 '22 17:06 dbkr

I haven't seen this in recent memory: closing.

dbkr avatar May 16 '23 11:05 dbkr