4

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.

1 Answers1

0

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