I use Firefox on Gnome 3 on X11, installed from the current stable channel a couple of days ago. I’m a beginner with NixOS.
Every first launch of Firefox shows only a black rectangle: Firefox is not drawn. It does not seem to be frozen, though, because IIRC Firefox is now using client-side decorations, and I can click the place where the close button is (although it is invisible “in the dark”).
The second launch and 3rd, etc. are OK… until next login.
It might have something to do with the graphics stack. Try resizing the window to force it to redraw (eg. by dragging it to the left/right edge of the screen by mouse with Super key pressed).
Hello jtojnar. While the issue was systematic when I posted this, it stopped occurring right after that! I’ve waited for a week for the issue to occur again, and it did not. Thus I suspect a temporary issue, either in my configuration (which I progressively improved over time), or in a package that got fixed since then.
Thanks anyway! Your help has been of great value here and elsewhere
I have two GNOME/Wayland systems which has the same issue. It happens seemingly randomly. On both systems I’ve configured Firefox to auto-start on login. No other app has this issue.
I’m experiencing the same issue on Nixos with Gnome. I’m using a nvidia card and it seems that wayland is being used, which might be related? I’m gonna switch to nonfree drivers and see what happens.
I can reproduce it almost 90% of the time I first run Firefox on a GNOME wayland session. Exiting and restarting Firefox solves it. It’s on a laptop with intel GPU only (from a i5-7300U CPU).
The only thing that package does, is running firefox with environment variable MOZ_ENABLE_WAYLAND=1. Does that mean this issue is a race? (Mis-detection of Wayland?!)
I’ve got Firefox auto-starting when I log in – what about the rest of you? Have you ever seen Firefox with black window on first launch on an idle system?
Another thing I noticed. When Firefox has black window, and I exit and re-launch, it forgets all tabs I had up.
I’m also having this issue. Really annoying - nothing you can do when it renders black like this - you just have to give up all the state it’s about to lose.
Same here. Did you find that this env. variable hack actually fixes things for you?
For me the black screen-rendering issue was only once in a blue moon (so just trying this out and relaunching successfully isn’t a guarantee of a fix)
I think that this proposed check should be part of the firefox wrapper, so that we can get rid of the firefox-wayland package. In any case, when installing firefox nowadays, one would expect it to be wayland-first and not opt-in.