ubuntu-bug won't show GUI window in pure wayland-sessions

Bug #1899638 reported by Marco Trevisan (Treviño)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Expired
Low
Unassigned

Bug Description

In case only `WAYLAND_DISPLAY` env variable is set (but no `DISPLAY` as XWayland is disabled), ubuntu-bug won't show its window, even though GTK will use the Wayland backend.

Test case, in an Ubuntu wayland session:
 - Run:
      env -u DISPLAY ubuntu-bug -w apport

You will get:

*** Collecting problem information

The collected information can be sent to the developers to improve the
application. This might take a few minutes.
...........

*** Send problem report to the developers?

After the problem report has been sent, please fill out the form in the
automatically opened web browser.

What would you like to do? Your options are:
  S: Send report (5.9 KB)
  V: View report
  K: Keep report file for sending later or copying to somewhere else
  I: Cancel and ignore future crashes of this program version
  C: Cancel
Please choose (S/V/K/I/C): S

*** Uploading problem information

The collected information is being sent to the bug tracking system.
This might take a few minutes.
92%

*** To continue, you must visit the following URL:

  https://bugs.launchpad.net/ubuntu/+source/apport/+filebug/...... ?

You can launch a browser now, or copy this URL into a browser on another computer.

Choices:
  1: Launch a browser now
  C: Cancel
Please choose (1/C): 1
marco@marco-virtual-machine:~$ Error: no DISPLAY environment variable specified
^C

---

So, ubuntu-bug should both consider `DISPLAY` and `WAYLAND_DISPLAY` to be enough to use a graphical session.

ProblemType: Bug
DistroRelease: Ubuntu 20.10
Package: apport 2.20.11-0ubuntu49
ProcVersionSignature: Ubuntu 5.8.0-22.23-generic 5.8.14
Uname: Linux 5.8.0-22-generic x86_64
ApportVersion: 2.20.11-0ubuntu49
Architecture: amd64
CasperMD5CheckResult: skip
CrashReports: 640:1000:125:21823957:2020-10-13 15:15:42.354004383 +0200:2020-10-13 15:15:43.354004383 +0200:/var/crash/_usr_bin_gnome-shell.1000.crash
CurrentDesktop: ubuntu:GNOME
Date: Tue Oct 13 15:22:34 2020
InstallationDate: Installed on 2020-10-13 (0 days ago)
InstallationMedia: Ubuntu 20.10 "Groovy Gorilla" - Beta amd64 (20201013.1)
PackageArchitecture: all
SourcePackage: apport
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :
Revision history for this message
Benjamin Drung (bdrung) wrote :

I cannot reproduce your problem and neither find a problem in the code.

Running "env -u DISPLAY ubuntu-bug -w apport" on a fresh Ubuntu 22.04 installation (with GNOME and wayland) opens apport-gtk correctly. Neither killing Xwayland nor only setting WAYLAND_DISPLAY by running "env -i WAYLAND_DISPLAY=wayland-0 ubuntu-bug -w apport" did change anything (note: apport-gtk crashed in the latter case, but it was called).

Supporting WAYLAND_DISPLAY as alternative was implemented in bug #1418766 long time ago.

Can you reproduce your problem? What environment are you in?

Changed in apport (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for apport (Ubuntu) because there has been no activity for 60 days.]

Changed in apport (Ubuntu):
status: Incomplete → Expired
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.