Firefox hanging without Swap

Hello,

i moved my whole system partition to another disk and everything is working well. Only hibernate didn’t work because i forgotten to create a swap partition.
Then i noticed, when i open a context menu within Firefox (i.e. right click on a bookmark item), my favorite browser suddenly hanging and gnome ask me after a couple of seconds if i want to close it because Firefox don’t respond.
Even when i rollback my whole system partition to a snapshot a few days ago (using Btrfs) the problem still occur. That mean, no software update could cause the hanging issue.

The surprising fix was to create a swap partition again. but i dont know why Firefox don’t want do work correctly without swap - i have more then 30GB free memory. Any idea?

My idea:
it has got nothing to do with swap, but rather with some firefox extension or something else within your firefox profile
Try running it in safe mode - or with a fresh profile.
Or disable extensions and then test turning them back on one by one.

I have zero experience with BTRFS.
If the issue would be related to that, your problems would likely not be with firefox only is my opinion on that.

1 Like

Create a new Manjaro user, login to this user session instead of the one with problems, does the problem exist when you use the new user?

I’ve double checked it now. I added a new user and started a new desktop session with fresh home directory and fresh Firefox profile. Same problem, hanging context menu and even pages like “about:support” don’t respond! Then i switched back to my regular user, deleted the new one and and now the problem is gone!

Everything tested without Swap. I really don’t know what happened. I am confused.

It’s never a good idea to try and run a Linux system with no swap at all, even if you have plenty of RAM. Linux likes to pre-allocate memory and if there’s no headroom, things like this happen.

Here’s what looks like a decent article on how Linux memory management works:

No one does.
Unless you have logs you can go through for clues.

hmm - up until right now, there is nothing that can be said to unconfuse you :sunglasses:

My browser also crashes sometimes - very rarely.