I have my PC set to sleep (i.e. suspend) after a couple hours of inactivity. This works as expected—except for Firefox. Recently, it seems every time I wake the PC from suspend, Firefox is in a “bad state”: there are many pages that simply won’t load. The most common case is I click on a link to go to a new page, and the current page will clear, and the next page will either not load at all (i.e. nothing but a blank screen), or only a very small portion of the page will load.
It is resolved if I kill Firefox and restart it. But this is very annoying, since I deliberately keep over a dozen tabs open.
I thought maybe this was some bug, but it has persisted for several weeks now, across multiple Firefox version upgrades (currently on version 79.0).
The other thing that may be relevant - I recently changed my home directory to be on an auto-mounted NFS share (rather than on the local disk of the PC). I don’t recall if this errant Firefox behavior started at the exact time as making this home directory change or not.
I don’t see any obvious errors in the system log… got any tips on something specific I should be looking for? Posting the entire log, even if constrained to the most recent wake-from-sleep is several screens long.
I feel like if it was an X or KDE Plasma issue, then I would have problems with other applications, and/or the UI in general. But all other apps work as expected, it’s only Firefox that has problems. And even then, not all pages in Firefox have issues, just some.
Whatever issue this is, it’s also affecting the Manjaro forums: this is my second time posting, the first time, after I typed out this reply, I hit the “reply” button, and it looked like it was replying (the edit box went away, and the red bar at the bottom popped up), but just hung for several minutes, until I gave up and restarted Firefox.
Yes, I restarted, and unfortunately, yes, I still have the issue.
My suspicion still lies with it being a combination of the computer going to sleep and my home directory being an NFS share. More specifically, my home directory is an auto-mounted NFS share. I have an entry like this in /etc/fstab:
I don’t know all the low-level details of suspend and nfs automount, but it’s easy to conceive of a sequence issue where, when the suspend sequence starts, Firefox wants to write something but the NFS share is already unmounted. That’s just a guess, but it’s easy to test - I’ll just make the NFS share a static mount, rather than automount.