I've observed that my Firefox frequently closes by itself, and I'm not sure what's causing this; does anyone know what's going on?
I'm on Ubuntu 22.04 right now.
I've observed that my Firefox frequently closes by itself, and I'm not sure what's causing this; does anyone know what's going on?
I'm on Ubuntu 22.04 right now.
Seems to be a memory issue. Your computer memory is being exhausted and this causes systemd-oomd.service to kill Firefox.
When you run journalctl | grep firefox | grep killed
you may see an output similar to this
Jun 07 20:41:13 serv1-xx systemd[1619]: snap.firefox.firefox.4db4f773-3421-4fd2-af46-79a1aa3a0f00.scope: systemd-oomd killed 562 process(es) in this unit.
Jun 08 10:08:05 serv1-xx systemd[1619]: snap.firefox.firefox.a99aced6-ea5b-4a7e-b676-7e7b348b9886.scope: systemd-oomd killed 855 process(es) in this unit.
Jun 08 14:22:43 serv1-xx systemd[1619]: snap.firefox.firefox.c2cce8ce-d5b0-4d7e-ad7c-68d7f9edddd9.scope: systemd-oomd killed 449 process(es) in this unit.
Checking on this link systemd-oomd.service could be the killer https://www.freedesktop.org/software/systemd/man/systemd-oomd.service.html
So the systemd-oomd.service is responsible for killing your Firefox process probably.
A solution would be to upgrade the RAM of your box.
PS, I experience similar behavior for other apps I use mostly such as Brave, Slack, Termius etc
So, I ended up disabling it altogether so it doesn't manage memory for me.
sudo systemctl disable --now systemd-oomd
/var/log/
. It might be crashing too, but normally that will pop up a message to send the error report. Those logs are stored in/var/log/crash
– Terrance Apr 27 '22 at 15:55journalctl
; it's possible thesystemd-oomd
daemon is killing the application unexpectedly if it's using too much memory. Check the output ofjournalctl | grep firefox | grep killed
. – Kevin Ushey Apr 30 '22 at 03:55/var/crash
or bytrying journalctl | grep firefox | grep killed
– Vivek Gani May 18 '22 at 22:10