Firfox Crash on pdf: prime-run
I have a dual GPU laptop. It has an integrated iGPU from INTEL and a GTX 1060
from NVIDIA. Recently, I tampered with the NVIDIA drivers and env in Hyprland, following the wiki to make sur my laptop works best running wayland and nvidia.
Around that time, I noticed that my browser of choice, Firefox, started to crash very often. I narrowed it down to opening pdfs in the browser (and going on websites that are GPU intensive, I would discover later).
I tried running firefox in safe-mode:
firefox --safe-mode
but that yielded nothing. The browser would not crash then.
I started to think that I might have issues with certain extensions, and I was toying with the idea of refreshing firefox (resets the browser, removes extensions, etc).
I thought it might be a version issue, since i had just updated to v128. So I downgraded firefox to v127, following the Archlinux wiki guide using the Arch Linux Archive.
To my suprise, runninf the downgraded version both created a new profile (so no extensions and custom settings) but it also immediatly crashed when I opened a pdf from arxiv.org.
That's when I realized that it might be something about GPU.
I quickly ran :
prime-run firefox
to run firfox offloaded to my nvidia card.
AND VOILÀ !
It works ! No more crashes.
My only issue is now that my nvidia is used by my gpu... I'm going to have to be carefull when doing GPU intensive stuff. + the battery might have a harder time now.
↑ Back to the top