Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Memory leak in Firefox

Maybe I'm the only one experiencing this, but there seems to be a memory leak which adds about 200 MB of memory used to the Firefox process every time a Token gets moved in Roll20. The memory isn't allocated to the Roll20 tab specifically, and not caused by any Extension, and seems to be out of the scope of the Firefox memory inspector. It doesn't seems to matter if the WebRenderer is used, only the WebRenderer crashes hard at some point (revealing fog of war btw.), unlike the old Renderer. This may be in connection with the AMD Radeon RX 5700 XT, because others so far seem not to be affected, and I will report this to AMD as well.
No, there is a definite memory leak, most of my players are experiencing it, I have gotten to 10 GB of memory usage on my machine and 12 GB for a friend.
1592586609

Edited 1592586644
Whew, this bad boy just chewed up 31,4 GB (the most it could) loading up as the GM. There isn't even that much content on the page. It'll do it on a blank map. Something is very wrong with the new lighting.
Yeah, the new Dynamic Lighting is crashing my browser a lot. I just now figured out that every time I do anything that updates said lighting, ie, moving a token that emits light, it adds 200mb to the RAM used, and I don't always have a lot of space on my laptop. It made a recent boss fight difficult to run through as all my players and NPCs have light sources on them because I can't get their line-of-sight working, so I just have light sources only their respective tokens can see.
Yup, I have this too ever since UDL was last updated, and I don't even use UDL yet. A plain empty map only climbs to a certain point and then stabilized, but any map with ANY kind of LD + Light,,, and the memory will not just climb a bit (which would be reasonable), but it will also not stop climbing, at all, until I move to another page. And when I move to another page, it doesn't release that usage either... So if the firefox.exe process that runs the roll20 window is at, let's sat 700mb... and stable.... then i move to a more populated map, which BEFORE the recent UDL update brought it up to like 3gb... and then stable... Not anymore, it'll climb above 3gb, and keep climbing... and let's say it climbs to 11gb.... so I move back to an empty map... Sure it stops climbing.... but it also stays at 11gb... until i either Exit Game, close the tab, or kill the process. Before the update... it only climbed up until it had what it needed, and got stable there, and when moving to less intensive maps, it released the ram, and sank down to what it needed instead of staying at the grown value. Stupid, and I've had to kill the process on the other computer where i run the player account on like 5 times today... which btw grind the computer to an almost halt so it takes like 20 minutes just to kill firefox.. I wrote about it in the official UDL bug post as well.
I was using the flicker-on option of the torch API, and that ate up memory very quickly. Switching it off caused the firefox memory usage to be stable.
1598996819

Edited 1599102917
I'm experiencing this as well, with Firefox 80.0 for Ubuntu Canonical 18.04.  I have habitually been keeping my browser open for weeks at a time.  As of a couple weeks ago (no change in browser), browser appears stable most of the time, but as I'm using Roll20 the memory usage creeps up until everything, browser or not, slows down.  Most I've seen is 2.0 GB (out of 8 GB), but I restart at about that point so I don't know if it would stop.  From a fresh browser reboot I get about 2 hours good, 2 hours slow, then inching along at several seconds to register a click or drag. I am *NOT* loading any pages with the new UDL.  Two out of three games I've been running have updated single pages that I haven't loaded, but all three are suffering the slow down. Edit: testing overnight - just loaded a game with a fairly simple page - steady at 700MiB or so.  Update: No change overnight on that page (no DL, LDL or UDL).  Trying during the day on another page that does.  Starting at 760K... no growth over the day.  So appears to be active use (harder to test, plus someone else posted it occurs more with players in the game).