This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[Solved] Firefox occasionly not rendering it's content.

Tags: firefox firefox firefox
(comma "," separated)
td151
Registered Member
Posts
3
Karma
0
Occasionally when I open Firefox, it does not render anything until I close it and open it multiple times. This issue seems to be relatively random but occurs mostly if I close the browser for long enough. The browser seems to work even when not rendering since I still can see cursor changing as if it was pointing to a link when I move it around over the stuck window.

I'm on KDE Plasma 5.23.4 (Kubuntu) running an X11 session on Intel graphics.

Running in terminal, I get the following:
When Firefox doesn't render:
Code: Select all
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.


When Firefox renders properly:
Code: Select all
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
[GFX1-]: Failed to create EGLContext!: 0x3001
ATTENTION: default value of option mesa_glthread overridden by environment.


Edit: I finally found the solution:
I should have mentioned that I have Nvidia graphics disabled, FF was trying to render using the disabled Nvidia card which led to this issue
According to this discussion:
https://www.reddit.com/r/pop_os/comments/rnergb/firefox_shows_blank_screen_after_upgrading_to_2110/

A simple solution is to add the following to your .profile:
Code: Select all
if ! grep -w -q nvidia <(lsmod) ; then
export __EGL_VENDOR_LIBRARY_FILENAMES="/usr/share/glvnd/egl_vendor.d/50_mesa.json"
fi

Last edited by td151 on Sat Dec 25, 2021 5:52 am, edited 4 times in total.
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
I can't reproduce this here, same distro and Plasma version.
What changes did you do to the default installation? Please also try with a second user, is this reproducible?


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
td151
Registered Member
Posts
3
Karma
0
Mamarok wrote:I can't reproduce this here, same distro and Plasma version.
What changes did you do to the default installation? Please also try with a second user, is this reproducible?


I am running Intel graphics with Nvidia graphics set to be disabled. The issue happens occasionally with no obvious reason (Most likely when I don't use the browser for some time). Is it possible that I misconfigured something?
td151
Registered Member
Posts
3
Karma
0
Mamarok wrote:What changes did you do to the default installation? Please also try with a second user, is this reproducible?


I tried with a second user, still the same issue.
I don't remember changing much the default installation, I just increased font size, setup some shortcuts and pinned a couple apps to taskbar + 1 widget, and set breeze as theme.
At this point I don't know what to blame: X11, KWin or Firefox.
Can I run Firefox in a way that it would output all the errors? This is getting really annoying, especially when I want to search something quickly and stumble with no graphics Firefox.
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
Simply typing
Code: Select all
firefox --help

yields quite a list of potential options, of which -g is probably the most logical one if you want to start in debug mode


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]