Can't Start Firefox 88 on Weston/Wayland, Ubuntu 18.0.4.

Bug #1930485 reported by Jameson Williams
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mozilla Firefox
Unknown
Unknown
firefox (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I am running Weston/Wayland on Ubuntu 18.0.4.

I am able to successfully start the display server:
```
export XDG_RUNTIME_DIR=/run/weston
weston --tty 1 &
```

Next, I try to run firefox on it:

```
export XDG_RUNTIME_DIR=/run/weston
export GDK_BACKEND=wayland
export MOZ_ENABLE_WAYLAND=1
export DISPLAY=wayland-0
export LD_LIBRARY_PATH=/usr/lib:/usr/lib/aarch64-linux-gnu/
export WAYLAND_DEBUG=1
export WAYLAND_DISPLAY=wayland-0

firefox \
 --g-fatal-warnings \
 --kiosk \
 --private-window \
 https://bing.com
```

This outputs:

```
[1446891.592] -> wl_display@1.get_registry(new id wl_registry@2)
[1446891.702] -> wl_display@1.sync(new id wl_callback@3)
[1446893.656] wl_display@1.delete_id(3)
[1446893.737] wl_registry@2.global(1, "wl_compositor", 4)
[1446893.781] -> wl_registry@2.bind(1, "wl_compositor", 3, new id [unknown]@4)
[1446893.852] wl_registry@2.global(2, "wl_subcompositor", 1)
[1446893.889] -> wl_registry@2.bind(2, "wl_subcompositor", 1, new id [unknown]@5)
[1446893.938] wl_registry@2.global(3, "wp_viewporter", 1)
[1446893.973] wl_registry@2.global(4, "wp_presentation", 1)
[1446894.007] wl_registry@2.global(5, "zwp_relative_pointer_manager_v1", 1)
[1446894.041] wl_registry@2.global(6, "zwp_pointer_constraints_v1", 1)
[1446894.075] wl_registry@2.global(7, "wl_data_device_manager", 3)
[1446894.109] -> wl_registry@2.bind(7, "wl_data_device_manager", 3, new id [unknown]@6)
[1446894.156] wl_registry@2.global(8, "wl_shm", 1)
[1446894.190] -> wl_registry@2.bind(8, "wl_shm", 1, new id [unknown]@7)
[1446894.429] -> wl_shm@7.create_pool(new id wl_shm_pool@8, fd 9, 2304)
[1446894.974] -> wl_shm_pool@8.resize(5568)
[1446895.214] -> wl_shm_pool@8.resize(12096)
[1446895.273] wl_registry@2.global(9, "wayland_buffer_backend", 4)
[1446895.315] wl_registry@2.global(10, "wl_seat", 5)
[1446895.353] -> wl_registry@2.bind(10, "wl_seat", 5, new id [unknown]@9)
[1446925.977] -> wl_compositor@4.create_surface(new id wl_surface@10)
[1446926.203] -> wl_data_device_manager@6.get_data_device(new id wl_data_device@11, wl_seat@9)
[1446926.370] -> wl_compositor@4.create_surface(new id wl_surface@12)
[1446926.636] -> wl_display@1.sync(new id wl_callback@13)
[1446926.765] wl_registry@2.global(11, "zwp_linux_dmabuf_v1", 3)
[1446926.845] wl_registry@2.global(12, "gbm_buffer_backend", 1)
[1446926.906] wl_registry@2.global(13, "wl_output", 3)
[1446926.965] -> wl_registry@2.bind(13, "wl_output", 2, new id [unknown]@14)
[1446927.172] -> wl_display@1.sync(new id wl_callback@15)
[1446927.246] wl_registry@2.global(14, "zwp_input_panel_v1", 1)
[1446927.319] wl_registry@2.global(15, "zwp_input_method_v1", 1)
[1446927.378] wl_registry@2.global(16, "zwp_text_input_manager_v1", 1)
[1446927.436] wl_registry@2.global(17, "zxdg_shell_v6", 1)
[1446927.494] wl_registry@2.global(18, "xdg_shell", 1)
[1446927.585] wl_registry@2.global(19, "wl_shell", 1)
[1446927.643] wl_registry@2.global(20, "weston_desktop_shell", 1)
[1446927.716] wl_registry@2.global(21, "weston_screenshooter", 1)
[1446927.777] wl_callback@3.done(1)
[1446929.537] wl_display@1.delete_id(13)
[1446929.624] wl_display@1.delete_id(15)
[1446929.656] wl_shm@7.format(0)
[1446929.684] wl_shm@7.format(1)
[1446929.709] wl_shm@7.format(909199186)
[1446929.733] wl_shm@7.format(842093913)
[1446929.758] wl_shm@7.format(842094158)
[1446929.783] wl_shm@7.format(1448695129)
[1446929.807] wl_seat@9.capabilities(2)
[1446929.834] -> wl_seat@9.get_keyboard(new id wl_keyboard@3)
[1446929.903] wl_seat@9.name("default")
[1446929.931] wl_callback@13.done(1)
[1446929.958] wl_output@14.geometry(0, 0, 0, 0, 0, "QCM", "unknown", 0)
[1446930.094] wl_output@14.scale(1)
[1446930.123] wl_output@14.mode(3, 1920, 1080, 60000)
[1446930.193] wl_output@14.done()
[1446930.245] wl_callback@15.done(1)
[1446930.278] -> wl_registry@2.bind(17, "zxdg_shell_v6", 1, new id [unknown]@15)
Crash Annotation GraphicsCriticalError: |[0][GFX1-]: glxtest: eglBindAPI returned an error (t=0.548409) [GFX1-]: glxtest: eglBindAPI returned an error
Crash Annotation GraphicsCriticalError: |[0][GFX1-]: glxtest: eglBindAPI returned an error (t=0.548409) |[1][GFX1-]: glxtest: EGL test failed (t=0.548476) [GFX1-]: glxtest: EGL test failed
Crash Annotation GraphicsCriticalError: |[0][GFX1-]: glxtest: eglBindAPI returned an error (t=0.548409) |[1][GFX1-]: glxtest: EGL test failed (t=0.548476) |[2][GFX1-]: No GPUs detected via PCI (t=0.548504) [GFX1-]: No GPUs detected via PCI
[1447360.209] -> wl_display@1.get_registry(new id wl_registry@13)
[1447360.288] -> wl_display@1.sync(new id wl_callback@16)
[1447362.605] wl_display@1.delete_id(16)
[1447362.653] wl_keyboard@3.repeat_info(40, 400)
[1447362.676] wl_keyboard@3.keymap(1, fd 3, 48257)
[1447365.368] wl_registry@13.global(1, "wl_compositor", 4)
[1447365.420] -> wl_registry@13.bind(1, "wl_compositor", 4, new id [unknown]@17)
[1447365.483] wl_registry@13.global(2, "wl_subcompositor", 1)
[1447365.512] -> wl_registry@13.bind(2, "wl_subcompositor", 1, new id [unknown]@18)
[1447365.551] wl_registry@13.global(3, "wp_viewporter", 1)
[1447365.579] wl_registry@13.global(4, "wp_presentation", 1)
[1447365.606] wl_registry@13.global(5, "zwp_relative_pointer_manager_v1", 1)
[1447365.633] wl_registry@13.global(6, "zwp_pointer_constraints_v1", 1)
[1447365.660] wl_registry@13.global(7, "wl_data_device_manager", 3)
[1447365.687] -> wl_registry@13.bind(7, "wl_data_device_manager", 3, new id [unknown]@19)
[1447365.726] wl_registry@13.global(8, "wl_shm", 1)
[1447365.754] -> wl_registry@13.bind(8, "wl_shm", 1, new id [unknown]@20)
[1447365.793] wl_registry@13.global(9, "wayland_buffer_backend", 4)
[1447365.820] wl_registry@13.global(10, "wl_seat", 5)
[1447365.848] -> wl_registry@13.bind(10, "wl_seat", 1, new id [unknown]@21)
[1447365.886] wl_registry@13.global(11, "zwp_linux_dmabuf_v1", 3)
[1447365.913] wl_registry@13.global(12, "gbm_buffer_backend", 1)
[1447365.940] wl_registry@13.global(13, "wl_output", 3)
[1447365.967] wl_registry@13.global(14, "zwp_input_panel_v1", 1)
[1447365.994] wl_registry@13.global(15, "zwp_input_method_v1", 1)
[1447366.021] wl_registry@13.global(16, "zwp_text_input_manager_v1", 1)
[1447366.048] wl_registry@13.global(17, "zxdg_shell_v6", 1)
[1447366.079] wl_registry@13.global(18, "xdg_shell", 1)
[1447366.112] wl_registry@13.global(19, "wl_shell", 1)
[1447366.139] wl_registry@13.global(20, "weston_desktop_shell", 1)
[1447366.166] wl_registry@13.global(21, "weston_screenshooter", 1)
[1447366.193] wl_callback@16.done(1)
[1447366.207] -> wl_display@1.sync(new id wl_callback@16)
[1447366.820] wl_display@1.delete_id(16)
[1447366.843] wl_callback@16.done(1)
[1447366.864] -> wl_data_device_manager@19.get_data_device(new id wl_data_device@16, wl_seat@21)
[1447380.818] -> wl_compositor@4.create_surface(new id wl_surface@22)
[1447380.972] -> wl_surface@22.set_buffer_scale(1)
[1448300.943] -> wl_display@1.get_registry(new id wl_registry@2)
[1448301.012] -> wl_display@1.sync(new id wl_callback@3)
[1448303.311] wl_display@1.delete_id(3)
[1448303.359] wl_registry@2.global(1, "wl_compositor", 4)
[1448303.394] -> wl_registry@2.bind(1, "wl_compositor", 3, new id [unknown]@4)
[1448303.622] wl_registry@2.global(2, "wl_subcompositor", 1)
[1448303.708] -> wl_registry@2.bind(2, "wl_subcompositor", 1, new id [unknown]@5)
[1448303.821] wl_registry@2.global(3, "wp_viewporter", 1)
[1448303.855] wl_registry@2.global(4, "wp_presentation", 1)
[1448303.886] wl_registry@2.global(5, "zwp_relative_pointer_manager_v1", 1)
[1448303.918] wl_registry@2.global(6, "zwp_pointer_constraints_v1", 1)
[1448303.949] wl_registry@2.global(7, "wl_data_device_manager", 3)
[1448303.980] -> wl_registry@2.bind(7, "wl_data_device_manager", 3, new id [unknown]@6)
[1448304.024] wl_registry@2.global(8, "wl_shm", 1)
[1448304.055] -> wl_registry@2.bind(8, "wl_shm", 1, new id [unknown]@7)
[1448304.286] -> wl_shm@7.create_pool(new id wl_shm_pool@8, fd 21, 2304)
[1448304.757] -> wl_shm_pool@8.resize(5568)
[1448304.823] -> wl_shm_pool@8.resize(12096)
[1448304.881] wl_registry@2.global(9, "wayland_buffer_backend", 4)
[1448304.916] wl_registry@2.global(10, "wl_seat", 5)
[1448304.948] -> wl_registry@2.bind(10, "wl_seat", 5, new id [unknown]@9)
[1448344.477] -> wl_compositor@4.create_surface(new id wl_surface@10)
[1448344.755] -> wl_data_device_manager@6.get_data_device(new id wl_data_device@11, wl_seat@9)
[1448345.028] -> wl_compositor@4.create_surface(new id wl_surface@12)
[1448345.432] -> wl_display@1.sync(new id wl_callback@13)
[1448345.602] wl_registry@2.global(11, "zwp_linux_dmabuf_v1", 3)
[1448345.793] wl_registry@2.global(12, "gbm_buffer_backend", 1)
[1448345.923] wl_registry@2.global(13, "wl_output", 3)
[1448346.044] -> wl_registry@2.bind(13, "wl_output", 2, new id [unknown]@14)
[1448346.378] -> wl_display@1.sync(new id wl_callback@15)
[1448346.467] wl_registry@2.global(14, "zwp_input_panel_v1", 1)
[1448346.655] wl_registry@2.global(15, "zwp_input_method_v1", 1)
[1448346.823] wl_registry@2.global(16, "zwp_text_input_manager_v1", 1)
[1448346.962] wl_registry@2.global(17, "zxdg_shell_v6", 1)
[1448347.125] wl_registry@2.global(18, "xdg_shell", 1)
[1448347.251] wl_registry@2.global(19, "wl_shell", 1)
[1448347.371] wl_registry@2.global(20, "weston_desktop_shell", 1)
[1448347.501] wl_registry@2.global(21, "weston_screenshooter", 1)
[1448347.686] wl_callback@3.done(1)
[1448348.669] wl_display@1.delete_id(13)
[1448348.784] wl_display@1.delete_id(15)
[1448348.832] wl_shm@7.format(0)
[1448348.877] wl_shm@7.format(1)
[1448348.940] wl_shm@7.format(909199186)
[1448349.058] wl_shm@7.format(842093913)
[1448349.105] wl_shm@7.format(842094158)
[1448349.169] wl_shm@7.format(1448695129)
[1448349.238] wl_seat@9.capabilities(2)
[1448349.310] -> wl_seat@9.get_keyboard(new id wl_keyboard@3)
[1448349.457] wl_seat@9.name("default")
[1448349.537] wl_callback@13.done(1)
[1448349.646] wl_output@14.geometry(0, 0, 0, 0, 0, "QCM", "unknown", 0)
[1448349.940] wl_output@14.scale(1)
[1448350.037] wl_output@14.mode(3, 1920, 1080, 60000)
[1448350.206] wl_output@14.done()
[1448350.275] wl_callback@15.done(1)
[1448350.387] -> wl_registry@2.bind(17, "zxdg_shell_v6", 1, new id [unknown]@15)
[1448418.233] -> wl_compositor@17.create_surface(new id wl_surface@23)
[1448418.343] -> wl_subcompositor@18.get_subsurface(new id wl_subsurface@24, wl_surface@23, wl_surface@22)
[1448418.397] -> wl_subsurface@24.set_desync()
[1448418.408] -> wl_compositor@17.create_region(new id wl_region@25)
[1448418.425] -> wl_surface@23.set_input_region(wl_region@25)
[1448418.438] -> wl_region@25.destroy()
[1448418.449] -> wl_surface@22.frame(new id wl_callback@26)
[1448418.466] -> wl_surface@23.commit()
[1448418.527] -> wl_surface@23.set_buffer_scale(1)
[1448418.582] -> wl_subsurface@24.set_position(26, 60)
[1448463.133] wl_keyboard@3.repeat_info(40, 400)
[1448463.188] wl_keyboard@3.keymap(1, fd 38, 48257)

(firefox:3158): Gdk-WARNING **: 01:25:43.244: ../../../../../gdk/x11/gdkwindow-x11.c:5579 drawable is not a native X11 window
Exiting due to channel error.
./launch-firefox: line 16: 3158 Trace/breakpoint trap (core dumped) firefox --g-fatal-warnings --kiosk --private-window https://bing.com
```

Tags: bionic wayland
Revision history for this message
In , Jameson Williams (jamesonwilliams) wrote :
Download full text (11.1 KiB)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36

Steps to reproduce:

I run the following on my Ubuntu 18.04 system:

```bash
export XDG_RUNTIME_DIR=/run/weston
export GDK_BACKEND=wayland
export MOX_ENABLE_WAYLAND=1
export DISPLAY=wayland-0
export LD_LIBRARY_PATH=/usr/lib:/usr/lib/aarch64-linux-gnu/
export WAYLAND_DEBUG=1
export WAYLAND_DISPLAY=wayland-0

firefox \
 --g-fatal-warnings \
 --kiosk \
 --private-window \
 https://bing.com
```

Actual results:

Firefox does not start.

Instead, I get this output, only:

```
[1446891.592] -> wl_display@1.get_registry(new id wl_registry@2)
[1446891.702] -> wl_display@1.sync(new id wl_callback@3)
[1446893.656] wl_display@1.delete_id(3)
[1446893.737] wl_registry@2.global(1, "wl_compositor", 4)
[1446893.781] -> wl_registry@2.bind(1, "wl_compositor", 3, new id [unknown]@4)
[1446893.852] wl_registry@2.global(2, "wl_subcompositor", 1)
[1446893.889] -> wl_registry@2.bind(2, "wl_subcompositor", 1, new id [unknown]@5)
[1446893.938] wl_registry@2.global(3, "wp_viewporter", 1)
[1446893.973] wl_registry@2.global(4, "wp_presentation", 1)
[1446894.007] wl_registry@2.global(5, "zwp_relative_pointer_manager_v1", 1)
[1446894.041] wl_registry@2.global(6, "zwp_pointer_constraints_v1", 1)
[1446894.075] wl_registry@2.global(7, "wl_data_device_manager", 3)
[1446894.109] -> wl_registry@2.bind(7, "wl_data_device_manager", 3, new id [unknown]@6)
[1446894.156] wl_registry@2.global(8, "wl_shm", 1)
[1446894.190] -> wl_registry@2.bind(8, "wl_shm", 1, new id [unknown]@7)
[1446894.429] -> wl_shm@7.create_pool(new id wl_shm_pool@8, fd 9, 2304)
[1446894.974] -> wl_shm_pool@8.resize(5568)
[1446895.214] -> wl_shm_pool@8.resize(12096)
[1446895.273] wl_registry@2.global(9, "wayland_buffer_backend", 4)
[1446895.315] wl_registry@2.global(10, "wl_seat", 5)
[1446895.353] -> wl_registry@2.bind(10, "wl_seat", 5, new id [unknown]@9)
[1446925.977] -> wl_compositor@4.create_surface(new id wl_surface@10)
[1446926.203] -> wl_data_device_manager@6.get_data_device(new id wl_data_device@11, wl_seat@9)
[1446926.370] -> wl_compositor@4.create_surface(new id wl_surface@12)
[1446926.636] -> wl_display@1.sync(new id wl_callback@13)
[1446926.765] wl_registry@2.global(11, "zwp_linux_dmabuf_v1", 3)
[1446926.845] wl_registry@2.global(12, "gbm_buffer_backend", 1)
[1446926.906] wl_registry@2.global(13, "wl_output", 3)
[1446926.965] -> wl_registry@2.bind(13, "wl_output", 2, new id [unknown]@14)
[1446927.172] -> wl_display@1.sync(new id wl_callback@15)
[1446927.246] wl_registry@2.global(14, "zwp_input_panel_v1", 1)
[1446927.319] wl_registry@2.global(15, "zwp_input_method_v1", 1)
[1446927.378] wl_registry@2.global(16, "zwp_text_input_manager_v1", 1)
[1446927.436] wl_registry@2.global(17, "zxdg_shell_v6", 1)
[1446927.494] wl_registry@2.global(18, "xdg_shell", 1)
[1446927.585] wl_registry@2.global(19, "wl_shell", 1)
[1446927.643] wl_registry@2.global(20, "weston_desktop_shell", 1)
[1446927.716] wl_registry@2.global(21, "weston_screenshooter", 1)
[1446927.777] wl_callback@3.done(1)
[1446929.537] wl_display@1.delete_id(13)
[1446929.624] wl_display@1.delete_id(15)
[14...

summary: - Can't Start Firefox 88 on Ubuntu 18.0.4.
+ Can't Start Firefox 88 on Weston/Wayland, Ubuntu 18.0.4.
Revision history for this message
In , Release-mgmt-account-bot (release-mgmt-account-bot) wrote :

The [Bugbug](https://github.com/mozilla/bugbug/) bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Changed in firefox:
status: Unknown → New
Revision history for this message
In , Stransky (stransky) wrote :

export DISPLAY=wayland-0 is not correct, it should be export DISPLAY=:0 or so (set to your active X11 display).

Revision history for this message
In , Jameson Williams (jamesonwilliams) wrote :

> export DISPLAY=wayland-0 is not correct, it should be export DISPLAY=:0 or so (set to your active X11 display).

Hi Martin - thanks for the suggestion. I am trying to Firefox on Weston/Wayland, so I don't have any X11 display.

Revision history for this message
In , Andrei-purice (andrei-purice) wrote :

Setting a component for this issue in order to get the dev team involved.
If you feel it's an incorrect one please feel free to change it to a more appropriate one.

Revision history for this message
In , Robert Mader (robert.posteo) wrote :

This should have been fixed a while ago and it works for me - jhwilliams, can you still reproduce this issue?

Revision history for this message
In , Robert Mader (robert.posteo) wrote :

Closing as unresponsive (and likely fixed).

Changed in firefox:
status: New → Unknown
Revision history for this message
Paul White (paulw2u) wrote :

Upstream issue was closed sometime ago (see comment #7).
Also closing this issue as no activity since bug report was raised.

Ubuntu 18.04 (bionic) reached end-of-standard-support on May 31, 2023.

If this issue is still current in a supported release of Ubuntu then
please open a new bug report against the current versions of Firefox
and Ubuntu that you are using.

(May be also update/re-open the upstream report if necessary)

Changed in firefox (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.