Closed Bug 1825991 Opened 2 years ago Closed 2 years ago

Firefox start with black screen on Ubuntu 23.04

Categories

(Core :: Widget: Gtk, defect)

Firefox 111
x86_64
Linux
defect

Tracking

()

RESOLVED DUPLICATE of bug 1788205

People

(Reporter: corradoventu, Unassigned)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/111.0

Steps to reproduce:

On Ubuntu 23.04 click on firefox icon in the dock.

Actual results:

Firefox start with a black screen. quit and restart i have a white screen, quit and restart again firefox start fine
crash report is:
bp-e85d70dc-b370-4ae5-a583-fdac30230402

Expected results:

firefox should start normally

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core

Thanks for the report!
Which gnome-shell version do you have?
$ dpkg -l | grep " gnome-shell "

corrado@corrado-n4-ll-beta:$ dpkg -l | grep " gnome-shell "
ii gnome-shell 44.0-2ubuntu3 amd64 graphical shell for the GNOME desktop
corrado@corrado-n4-ll-beta:
$

(In reply to corradoventu@gmail.com from comment #3)
ii gnome-shell 44.0-2ubuntu3 amd64 graphical shell for the GNOME desktop

starting from terminal the 1st time I have a black screen, 2nd time ok

corrado@corrado-n4-ll-beta:$ firefox
update.go:85: cannot change mount namespace according to change mount (/var/lib/snapd/hostfs/usr/share/xubuntu-docs /usr/share/xubuntu-docs none bind,ro 0 0): cannot open directory "/var/lib": permission denied
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.
corrado@corrado-n4-ll-beta:
$ firefox
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.

Thanks!
So it can't be https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/2011806 (bug 1824077).

(corradoventu from bug 1822374 comment 8)

Firefox does not start at all using his .desktop file, starts with a black screen the 1st time is started from terminal with 'firefox' or 'snap run firefox' and start fine the 2nd time is started from terminal with 'firefox' or 'snap run firefox'

$ snap run firefox uses Xwayland-on-demand (bug 1788205) instead of Wayland.

But I wanted to know if the problem can be fixed if you start Firefox with
$ MOZ_ENABLE_WAYLAND=1 snap run firefox to actually use Wayland and avoid Xwayland.

So I ask again: Does the problem still occur if you start Firefox with $ MOZ_ENABLE_WAYLAND=1 snap run firefox?

Blocks: snap
OS: Unspecified → Linux
Hardware: Unspecified → x86_64
See Also: → 1824077

starting with "MOZ_ENABLE_WAYLAND=1 snap run firefox" firefox start fine a 1st start.
may I do this change in FF profile to allow start from the icon in the dock?

From about:support i see that firefox nightly starts with Window Protocol wayland without specifying ENABLE_WAYLAND=1
why this is not possible for FF 111.0.1 snap?

Thanks, great!
MOZ_ENABLE_WAYLAND is already enabled by default in Nightly (bug 1543600), but not yet in Beta&Stable (bug 1752398/bug 635134), but we are slowly getting there.
The environment variable is required, it's not an about:config option.

Add export MOZ_ENABLE_WAYLAND=1 to the end of /home/yourusername/.profile to permanently set it for your user account.
$ echo -e "\nexport MOZ_ENABLE_WAYLAND=1" >> ~/.profile
It takes effect after logout&login or a reboot.

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1788205
Resolution: --- → DUPLICATE

Thanks, now firefox start fine from his icon.

You need to log in before you can comment on or make changes to this bug.