I was facing the same issue.
I have Nvidia GTX 750 Ti graphics card. I suspected it is because of the missing drivers.
- Go to Software & Updates. Go to additional drivers tab and wait for the options to load.
- Chose Nvidia driver meta-package from nvidia-driver-304. Click apply changes and wait for the driver to install.
- You can also increase you swap space.
In Ubuntu 18.04 you can use the following steps to change swap
Turn off all swap processes
sudo swapoff -a
sudo dd if=/dev/zero of=/swapfile bs=1G count=8
if = input file of = output file bs = block size count = multiplier of
blocks
sudo mkswap /swapfile
sudo swapon /swapfile
grep SwapTotal /proc/meminfo
Then finally please turn off Hardware accelaration in Mozilla and Chrome. Sometimes these browsers eat up too much memory and hence crash.
In chrome, go to chrome settings at chrome://settings then go to Advanced. Deselect "use hardware acceleration when available".
Also go to chrome flags at chrome://flags and disable CPU Rasterization.
Alternatively you can use google-chrome --disable-gpu to start chrome.
In Mozilla, go to Preferences, here go to Performance section. Deselect "Use recommended performace settings". Also deselect "Use hardware accelaration when available" and finally limit the content to 2.
Please restart and hopefully you are good to go.