You are not logged in.

#1 2017-10-10 05:55:03

bhrgunatha
Member
Registered: 2009-12-16
Posts: 101

[Solved] Firefox ESR crashing with nvidia drivers 387.12-1

I'm using Firefox ESR 52.4.1 64 bit and it is crashing intermittently - some sites always cause a crash, some randomly, most don't cause a crash.
The Firefox crash report includes the following:

...
MozCrashReason: MOZ_CRASH(GFX: Unexpected GLSL version.)
Notes: FP(D00-L1010-W00000100-T0000) OpenGL: NVIDIA Corporation -- GeForce GT 710/PCIe/SSE2 -- 4.6.0 NVIDIA 387.12 -- texture_from_pixmap
libGL.so.1? libGL.so.1+ GL Context? GL Context+ GL Layers? GL Layers+ WebGL! WebGL+
...

I suspect the problem is caused by using the latest nvidia drivers (387.12-1) which were updated recently.
Sure enough downgrading libxnvctrl, nvidia-dkms, nvidia-settings, nvidia-utils to version  384.90-1 prevents the crashes.

I've basically got firefox configured  to use hardware acceleration wherever possible and it's been fine until the nvidia update.

Anyone else having problems?
Any work arounds you can suggest other than using 384.90-1?

Last edited by bhrgunatha (2017-10-18 16:55:04)

Offline

#2 2017-10-10 08:29:04

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,784
Website

Re: [Solved] Firefox ESR crashing with nvidia drivers 387.12-1

Mod note: Moving to AUR Issues.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#3 2017-10-13 02:38:16

m42a
Member
Registered: 2012-01-10
Posts: 1

Re: [Solved] Firefox ESR crashing with nvidia drivers 387.12-1

It looks like the new nvidia drivers support GLSL 4.6, and firefox doesn't yet (see the code for details; as of now, it only goes up to 4.5).  You can rebuild firefox and apply this patch, or if you're feeling brave you can patch the function to return SH_GLSL_450_CORE_OUTPUT if version is 460.  I'm surprised that patch wasn't applied to the ESR version, since it got into 56.

Offline

#4 2017-10-13 08:56:56

bhrgunatha
Member
Registered: 2009-12-16
Posts: 101

Re: [Solved] Firefox ESR crashing with nvidia drivers 387.12-1

Thanks, that looks like the culprit!
In fact, the 384.90 nvidia drivers still result in crashes, just fewer - it seems GLSL 4.6 was introduced in 381.26.13.

I sent crash reports to mozilla so hopefully they'll apply it to ESR too.

I'm going to try the 381.26.13 drivers to see if that's the root cause and if so patch it manually. I'll report back in a few days.

Offline

#5 2017-10-15 19:29:09

figue
Member
Registered: 2007-12-16
Posts: 59

Re: [Solved] Firefox ESR crashing with nvidia drivers 387.12-1

bhrgunatha wrote:

Thanks, that looks like the culprit!
In fact, the 384.90 nvidia drivers still result in crashes, just fewer - it seems GLSL 4.6 was introduced in 381.26.13.

I sent crash reports to mozilla so hopefully they'll apply it to ESR too.

I'm going to try the 381.26.13 drivers to see if that's the root cause and if so patch it manually. I'll report back in a few days.

If the patch works, I can include in PKGBUILD directly. Please, add a comment in the AUR page after you test it properly.

Thanks.

Last edited by figue (2017-10-15 19:29:30)

Offline

#6 2017-10-18 16:53:33

bhrgunatha
Member
Registered: 2009-12-16
Posts: 101

Re: [Solved] Firefox ESR crashing with nvidia drivers 387.12-1

After using the 381.26.13 drivers for a day or so and experiencing no crashes at all I'm satisfied that the root cause is that firefox esr doesn't cope newer version of GLSL.

I added the patch mentioned by m42a and built and installed it locally with no further crashes.
I'll add a note to the AUR package with the details.

Thanks.

Offline

#7 2017-10-18 19:41:38

figue
Member
Registered: 2007-12-16
Posts: 59

Re: [Solved] Firefox ESR crashing with nvidia drivers 387.12-1

bhrgunatha wrote:

After using the 381.26.13 drivers for a day or so and experiencing no crashes at all I'm satisfied that the root cause is that firefox esr doesn't cope newer version of GLSL.

I added the patch mentioned by m42a and built and installed it locally with no further crashes.
I'll add a note to the AUR package with the details.

Thanks.

Thanks, patch added.

Greetings

Offline

#8 2017-12-30 09:21:50

8472
Member
From: Slovakia
Registered: 2010-05-15
Posts: 83

Re: [Solved] Firefox ESR crashing with nvidia drivers 387.12-1

The patch with FF ESR didn't helped to me. The compilled FF ESR was even less stable than the FF before.
However, I've found, that changing the about:config option "webgl.disabled" to "TRUE" is helpful as well. No crashes since then.


Logic clearly dictates that the needs of the many outweigh the needs of the few.

Offline

Board footer

Powered by FluxBB