hubs icon indicating copy to clipboard operation
hubs copied to clipboard

Large Firefox(PC) Memory Leak when someone in the room shares their screen or camera

Open Charlesc22 opened this issue 3 years ago • 6 comments

Description There is a large memory leak when someone in the room shares their screen or camera. If any person shares their screen or camera in the room, then anyone else that is in the room and running Firefox on PC will experience an instant memory leak at a rate of about 50MBs per second. It will continue to leak till the PC hits the 100% Memory limit and the Room screen will go black, then a few seconds later Firefox will crash. Or the Windows screen will go black. once Firefox is closed, the memory is released.

The memory leak seems to be limited to the people in the room that are in Firefox on a PC. It also seems that it's the most recent version of Firefox (V98) that is causing the problem as running an older version of Firefox does not seem to trigger the memory leak

This is reproducible both on Hubs Cloud and on hubs.mozilla.com

To Reproduce Steps to reproduce the behavior:

  1. Have 3 or more people in a room (Have not tried with just two people)
  2. Make sure some of the people in the room are on a PC and using FireFox V98.
  3. Have someone in the room share their screen (or camera)
  4. As soon as the screen is shared, the people in the room that are in Firefox should start seeing their System Memory usage increases at about a rate of 50MBs/sec till they hit 100% max memory. Should take a couple of minutes depending on how much memory they have.
  5. Then their rooms will go black and a few seconds later, the room will crash, or sometimes Firefox crashes, or even sometimes Windows logs you out.
  6. Once you leave the room the Memory is released again

Charlesc22 avatar Mar 18 '22 14:03 Charlesc22

👍 +1

agriggs2 avatar Mar 21 '22 17:03 agriggs2

Can confirm, Firefox 98.0.1 - MacOs 12.3 (M1Max, Macbook Pro 16)

markusTraber avatar Mar 23 '22 13:03 markusTraber

@Charlesc22 or @markusTraber - do you still experience this using the latest Firefox (99.0.1)?

cornelionce avatar Apr 29 '22 09:04 cornelionce

It seems to be considerably better since the latest Firefox update. It no longer seems to leak but does take a quite large chunk of memory when someone starts sharing their desktop or video

Charlesc22 avatar Apr 29 '22 14:04 Charlesc22

I did try it yesterday and my tab still crashed after some time sharing my webcam in the virtual space.

markusTraber avatar Apr 30 '22 10:04 markusTraber

I've also experienced this on Hubs Cloud (not using custom client). OS: windows10 pro RAM: 32GB Browser: Firefox 102.0

To Reproduce Steps to reproduce the behavior:

  • Enter a room with few people, and have someone share screen
  • After 30min - 1.5 h , rooms will go black, and none operation is possible ( - If the page can be reloaded, reloading the page will restart and the browser itself will not crash)

In this environment, it was not reproducible with other browser,s(Google Chrome) so it maybe Firefox specific, but although I was not able to obtain enough information, other user using Chrome also reported similar problems which may be related.

ikenichiro avatar Jul 08 '22 10:07 ikenichiro