meetecho / janus-gateway

Janus WebRTC Server
https://janus.conf.meetecho.com
GNU General Public License v3.0
8.15k stars 2.47k forks source link

When "switch" a subscribed publisher to another stream in videoroom sometimes got "No such room" #2050

Closed brailateo closed 4 years ago

brailateo commented 4 years ago

Usage description:

BUG DISCOVERED: everything is working fine until someone let's say D (from A,B,C,D) is leaving room and entering again. When switch command is coming to watch A in SPEAKER box, even B and C are receiving "No such room" event EVEN IF THE GLOBAL rfid stream id is right! (I've double checked). The only chance to restore functioning is restart B and C clients and everything works again, though the rfid sended to "switchto" is the same

In server log I got the error: [ERR] [plugins/janus_videoroom.c:janus_videoroom_handler:6137] No such room

Teo

lminiero commented 4 years ago

When switch command is coming to watch A in SPEAKER box, even B and C are receiving "No such room" event EVEN IF THE GLOBAL rfid stream id is right! (I've double checked).

rfid means nothing, it's a client view, not the server perspective. No such room there means the subscriber has been destroyed. You're probably not setting close_pc to FALSE when creating subscribers.

Closing as not an issue and belongs to the group.

brailateo commented 4 years ago

rfid means nothing, it's a client view, not the server perspective. No such room there means the subscriber has been destroyed. You're probably not setting close_pc to FALSE when creating subscribers.

Closing as not an issue and belongs to the group.

Setting close_pc to FALSE solved the problem! Thanks!

This issue is describing the same error! I saw that you closed it too! https://github.com/meetecho/janus-gateway/issues/1761

@jflasch proposed a patch there!

Teo