30
submitted 4 months ago by AnonTwo@kbin.social to c/firefox@lemmy.ml

To preface, I have had a thread about this previously,

https://kbin.social/m/firefox@lemmy.ml/t/840667/How-can-you-troubleshoot-a-crash-from-freezing

Ultimately, it didn't result in much.

Cue a few months, a lot has happened, and I have a new PC. Different graphics card vendor, different RAM, different motherboard vendor. Almost everything is different.

The crashes stopped, in fact I didn't notice them for a long time.

Past few days however, I noticed youtube videos starting to skip a bit. Thought it might just be youtube.

Then today happened. After about a month, I had a crash again. The PC has been left on for about a week (which is not really uncommon for me).

What I noticed that caught my eye...is that when i went to close it in task manager, it was using 14 GB. Just to be fair, I made sure before completing this post that I kicked every tab I had open out of inactive.

They are currently sitting at 5 GB.

What is occurring that is causing Firefox, under the same amount of active tabs (in fact possibly more, since I do have auto tab discard, so most of these tabs would not usually be active) to reach 3x the amount of ram they actually use?

I would like to get it to stop crashing, but it seems like even under a different hardware configuration, all I've done is make it take longer for it to actually happen, which makes me think even more that the it's an issue with memory.

top 22 comments
sorted by: hot top controversial new old
[-] ReversalHatchery@beehaw.org 11 points 4 months ago

If that happens again, open about:processes in a new tab (type into URL bar), and sort by memory. Take a screenshot, redact private things, and if you upload it here, it would be easier to help. Chances are it's a specific website that consumes that much RAM, or an addon

[-] cmnybo@discuss.tchncs.de 10 points 4 months ago

I've never seen Firefox use that much memory, even with lots of tabs open for weeks. Maybe you have an extension that's causing issues.

[-] viking@infosec.pub 8 points 4 months ago

Can you share a list of the browser add-ons you're using, and if possible/not confidential the tabs you have open? Or at least the number of tabs?

Would make troubleshooting easier.

Also, is it a plain Firefox or any fork?

[-] AnonTwo@kbin.social 2 points 4 months ago

'Improve Youtube!'
600% sound volume
7TV
Auto Tab Discard
Better TTV
Libredirect
LiveTL
Privacy Badger
Tampermonkey (No scripts enabled)
Ublock
User-Agent Switcher and Manager

i'd say about 40 tabs, mix of:
Danbooru
Youtube
Kbin
Reddit
Amazon
game8.co
libreddit

Plain Firefox

[-] RvTV95XBeo@sh.itjust.works 7 points 4 months ago

Yeah, that many (dare I say sketchy) plugins, I'd decisively recommend seeing if you can reproduce the issue without them

[-] GroteStreet@aussie.zone 5 points 4 months ago

To start Firefox without any plugins loaded, go from

Menu > Help > Troubleshoot Mode...
[-] batcheck@lemmy.world 4 points 4 months ago

Probably not your problem unless you use Twitch constantly. But for me 7tv and BetterTV crashed Firefox all the time. Any streamer with 5k+ active chatters destroyed my browsing session with those two. I decided to remove them and rely on chatterino

[-] muhyb@programming.dev 7 points 4 months ago* (last edited 4 months ago)

My system is always on sleep when I turn my PC off and Firefox is always open. I close Firefox from system update to system update and it hasn't crashed on me for quite a long time. Hopefully this doesn't change.

Inactive tabs shouldn't cause a problem but you can use something like Simple Tab Groups to prevent them to stack too much, might help.

Having a bigger swap partition also might help, if you have 16 GB RAM.

Edit: Also just like others mentioned, try to run Firefox without any add-ons to see if that happens again. You can also do this in reverse, deactivating your add-ons one by one and use Firefox like that for a while, until the occurrence stops.

[-] boredsquirrel@slrpnk.net 5 points 4 months ago

Instead of asking here, please open a bug report

[-] AnonTwo@kbin.social 1 points 4 months ago

I don't know how to do that.

[-] boredsquirrel@slrpnk.net 1 points 4 months ago

https://bugzilla.mozilla.org/enter_bug.cgi

Create an account, select Firefox, and enter all the required info. In Firefox under "about firefox" you can get the version info.

[-] gomp@lemmy.ml 3 points 4 months ago

No idea what's actually happening, but it might also be one of the pages/sites using more and more resources wothout proper cleanup.

[-] Anticorp@lemmy.world 2 points 4 months ago

Reddit does this. Ever since they released their latest design they don't actually unload anything you've already viewed and pretty soon afterwards the site completely breaks.

[-] wahming 1 points 4 months ago

Are you using any uncommon plugins? Might be a plugin issue. My firefox gets left on for weeks with no issues.

[-] AnonTwo@kbin.social 1 points 4 months ago

'Improve Youtube!'
600% sound volume
7TV
Auto Tab Discard
Better TTV
Libredirect
LiveTL
Privacy Badger
Tampermonkey (No scripts enabled)
Ublock
User-Agent Switcher and Manager

[-] wahming 1 points 4 months ago* (last edited 4 months ago)

Possibly one of them or another. You could try disabling a few at a time till you isolate the culprit (or eliminate them all as suspects).

[-] AnonTwo@kbin.social 1 points 4 months ago

Possibly? The issue is it takes upwards a week for the memory issues to reach the point of becoming noticable....

[-] wahming 1 points 4 months ago

Just remembered, FF has the built in memory manager, did you ever check the usage in there?

[-] AnonTwo@kbin.social 1 points 4 months ago* (last edited 4 months ago)

I did find that, is there a way to just leave it on and keep tracking? it seems like the reports only run at the time you decide to check them.

It'd be nice if there was a way for it to be on at the time of the crash. I found out in my previous attempts that the crash report does not actually seem to generate for this crash.

[-] wahming 1 points 4 months ago

You don't need to wait till it crashes. Check the memory usage daily, see if the usage of anything is ballooning. If it takes a week to leak enough to eat all your RAM you'll see it happening in plenty of time.

[-] AnonTwo@kbin.social 1 points 4 months ago* (last edited 4 months ago)

Update: So far i'm down to 2 extensions:
Ublock
600% sound volume

Memory still ballooned from 1GB to 5GB.

When I checked processes before closing, even after force unloading Youtube under processes, GPU was using around 1 GB. There was literally nothing else I could unload that would stop this.

Again I loaded all tabs just to be fair...GPU is using half of that currently. I'm also questioning the reliability of about:processes to an extent, because I couldn't actually see what was adding up to the 5 GB I was seeing in task manager.

I also tried some advice I saw to just whitelist youtube, as it sounds like google does something regarding adblockers. But this did not seem to do anything noticable.

edit: based on another post, trying troubleshoot mode, though i'm always uncomfortable having all site blockers (ublock now) turned off.

this post was submitted on 25 Apr 2024
30 points (87.5% liked)

Firefox

17302 readers
283 users here now

A place to discuss the news and latest developments on the open-source browser Firefox

founded 4 years ago
MODERATORS