Firefox fails to launch in unity8 zesty

Bug #1668409 reported by kevin gunn on 2017-02-27
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical System Image
High
Stephen M. Webb
firefox (Ubuntu)
High
Unassigned
gtk+3.0 (Ubuntu)
High
Unassigned
mir (Ubuntu)
High
Unassigned
unity8 (Ubuntu)
High
Unassigned

Bug Description

daily iso of zesty exploring clean u8

to repro
1) open app drawer
2) find ff icon, click to launch

journal shows the following
http://pastebin.ubuntu.com/24080554/

kevin gunn (kgunn72) on 2017-02-27
tags: added: gtk-mir
kevin gunn (kgunn72) on 2017-02-27
Changed in canonical-devices-system-image:
assignee: nobody → Stephen M. Webb (bregma)
importance: Undecided → High
Changed in firefox (Ubuntu):
importance: Undecided → High
Changed in mir (Ubuntu):
importance: Undecided → High
Changed in gtk+3.0 (Ubuntu):
importance: Undecided → High
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in firefox (Ubuntu):
status: New → Confirmed
Changed in gtk+3.0 (Ubuntu):
status: New → Confirmed
Changed in mir (Ubuntu):
status: New → Confirmed
Daniel van Vugt (vanvugt) wrote :

Firefox works fine (almost - bug 1625846) when run manually. This is just a U8/Libertine launching/permissions problem.

affects: gtk+3.0 (Ubuntu) → ubuntu
affects: ubuntu → libertine (Ubuntu)
Changed in mir (Ubuntu):
status: Confirmed → Invalid
Changed in firefox (Ubuntu):
status: Confirmed → Invalid
Changed in unity8 (Ubuntu):
status: New → Confirmed
importance: Undecided → High
summary: - fails to launch in unity8 zesty
+ Firefox fails to launch in unity8 zesty
Changed in canonical-devices-system-image:
status: New → Confirmed
Daniel van Vugt (vanvugt) wrote :

Here's a terminal command for working Firefox:

mirrun Xmir :1 -sw -rootless -flatten --desktop_file_hint=unity8 & sleep 2 ; env DISPLAY=:1 firefox

You don't need all those options. Just -sw to work around bug 1607238, and -flatten to work around bug 1625846.

kevin gunn (kgunn72) wrote :

fwiw, this isn't a libertine app. this is a preinstalled pkg that just comes as part of the image.

Daniel van Vugt (vanvugt) wrote :

In that case Unity8 needs to come with Xmir already running (and accessible to apps). It's not right now.

Daniel van Vugt (vanvugt) wrote :

Oh, it seems Firefox/GTK needs fixing. It's trying to use both X11 (bug 1668429) and native Mir:

Feb 27 14:31:01 kg-Studio-1737 firefox[6135]: /build/gtk+3.0-MH7ynA/gtk+3.0-3.22.7/./gdk/x11/gdkwindow-x11.c:5573 drawable is not a native X11 window
Feb 27 14:31:01 kg-Studio-1737 firefox[6135]: Ignoring unknown Mir event 11
Feb 27 14:31:01 kg-Studio-1737 firefox[6135]: Ignoring unknown Mir event 8

Changed in firefox (Ubuntu):
status: Invalid → Confirmed
affects: libertine (Ubuntu) → gtk+3.0 (Ubuntu)
Changed in unity8 (Ubuntu):
status: Confirmed → Invalid
Daniel van Vugt (vanvugt) wrote :

Understandably we may not want to invest the time in fixing Firefox to run with pure GTK (pure Mir) right now. A quicker fix should be just to resolve Unity8 launching bug 1668429.

kevin gunn (kgunn72) on 2017-03-02
tags: added: unity8-desktop
kevin gunn (kgunn72) on 2017-03-06
Changed in canonical-devices-system-image:
milestone: none → u8c-1
Pat McGowan (pat-mcgowan) wrote :

Is this still an issue? it just spins forever on startup here

Changed in canonical-devices-system-image:
milestone: u8c-1 → u8c-2
status: Confirmed → Incomplete
Stephen M. Webb (bregma) wrote :

It's going to be an issue until Firefox gets fixed upstream to not try to use X11 when it's using Mir.

Daniel van Vugt (vanvugt) wrote :

or "try to use X11 when it's using pure GTK" :)

Daniel van Vugt (vanvugt) wrote :

or "to not try to use X11 when it's using pure GTK".

As far as Mir is concerned X11 and GTK are alternatives to each other. Given the choice we should choose pure GTK.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers