Wayland session gets immediately SIGKILLed: No option to select wayland desktop (Ubuntu 24.04)

Bug #2077216 reported by Sameer Sharma
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mutter
Fix Released
Unknown
mutter (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

I recently did a fresh install of Ubuntu 24.04 using a daily-build image from https://cdimage.ubuntu.com/noble/daily-live/20240815/noble-desktop-amd64.iso , after installation the ubuntu/gnome session defaults to x11 and in gdm the gear icon doesn't appear.

AFAIK, Ubuntu should default to a Wayland session after Ubuntu 21.04, but this is not the case in my use-case.

I tried changing the file `/etc/gdm3/custom.conf` ,by changing `WaylandEnable=false` to `WaylandEnable=true` but that didn't change anything.

When , logging in the gear icon tries to appear but then disappears possibly indicating a crash(?)

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: gdm3 46.0-2ubuntu1
ProcVersionSignature: Ubuntu 6.8.0-40.40-generic 6.8.12
Uname: Linux 6.8.0-40-generic x86_64
ApportVersion: 2.28.1-0ubuntu3.1
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Sat Aug 17 11:20:29 2024
InstallationDate: Installed on 2024-08-15 (2 days ago)
InstallationMedia: Ubuntu 24.04.1 LTS "Noble Numbat" - Release amd64 (20240815)
SourcePackage: gdm3
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile..etc.gdm3.custom.conf: 2024-08-17T11:18:20.109580

Revision history for this message
Sameer Sharma (sameersharma2006) wrote :
description: updated
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks for the bug report. Please log in and run:

  journalctl -b0 > journal.txt

then attach the resulting text file here.

Changed in gdm3 (Ubuntu):
status: New → Incomplete
Revision history for this message
Sameer Sharma (sameersharma2006) wrote :

Ok, here it is.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks. Something killed the shell when it started in Wayland mode:

Aug 19 07:41:34 Sam-acer-notebook gnome-session[1773]: gnome-session-binary[1773]: WARNING: Application 'org.gnome.Shell.desktop' killed by signal 9
Aug 19 07:41:34 Sam-acer-notebook gnome-session-binary[1773]: WARNING: Application 'org.gnome.Shell.desktop' killed by signal 9

Please try adding this:

  MUTTER_DEBUG_KMS_THREAD_TYPE=user

to /etc/environment and reboot.

affects: gdm3 (Ubuntu) → mutter (Ubuntu)
Revision history for this message
Sameer Sharma (sameersharma2006) wrote (last edit ):

After adding that to `/etc/environment` , the gear icon appeared and the desktop defaulted to Wayland along-with an option for x11.

Do, you need the latest copy of journalctl or anything else ?

```
> echo $XDG_SESSION_TYPE
> wayland
```

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Great that you have a workaround now. We do need to report this to the upstream developers though. Please open a new issue at:

  https://gitlab.gnome.org/GNOME/mutter/-/issues

Mention that gnome-shell is being killed by signal 9 and the workaround MUTTER_DEBUG_KMS_THREAD_TYPE=user is working.

tags: added: kmsthread
Revision history for this message
Sameer Sharma (sameersharma2006) wrote :
Changed in mutter (Ubuntu):
status: Incomplete → New
importance: Undecided → Medium
status: New → Triaged
summary: - Can't use wayland: No option to select wayland desktop (Ubuntu 24.04)
+ Wayland session gets immediately SIGKILLed: No option to select wayland
+ desktop (Ubuntu 24.04)
Changed in mutter:
status: Unknown → New
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

*Maybe* fixed in 47.0

Changed in mutter (Ubuntu):
status: Triaged → Fix Committed
tags: added: fixed-in-mutter-47.0 fixed-upstream
Revision history for this message
Sameer Sharma (sameersharma2006) wrote :

If this gets fixed in gnome-47, will the fix be back-ported to gnome-46(Ubuntu Noble) ?

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Maybe. We would need to see that it works first. The simplest way to achieve that will be to wait until the fix is in the Ubuntu 24.10 daily images and then try booting it from USB.

Revision history for this message
Sameer Sharma (sameersharma2006) wrote :

> Maybe. We would need to see that it works first.
👍

 > The simplest way to achieve that will be to wait until the fix is in the Ubuntu 24.10 daily images and
 > then try booting it from USB.

Well, given the fact that Ubuntu ISO are gigantic(5 GB+), it will be difficult for me to do so given the resource constraint i have, getting to install noble was already a big deal for me.
So,this approach may have road-blockers at-least on my side, i will be really glad if someone else with the resources, same bug & hardware try to volunteer for this.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I see all the bug reports, so if anyone else hits this problem they will be directed here.

Revision history for this message
Sameer Sharma (sameersharma2006) wrote : Re: [Bug 2077216] Re: Wayland session gets immediately SIGKILLed: No option to select wayland desktop (Ubuntu 24.04)

👍

On 22 August 2024 6:32:47 am UTC, Daniel van Vugt <email address hidden> wrote:
>I see all the bug reports, so if anyone else hits this problem they will
>be directed here.
>
>--
>You received this bug notification because you are subscribed to the bug
>report.
>https://bugs.launchpad.net/bugs/2077216
>
>Title:
> Wayland session gets immediately SIGKILLed: No option to select
> wayland desktop (Ubuntu 24.04)
>
>Status in Mutter:
> New
>Status in mutter package in Ubuntu:
> Fix Committed
>
>Bug description:
> I recently did a fresh install of Ubuntu 24.04 using a daily-build
> image from https://cdimage.ubuntu.com/noble/daily-live/20240815/noble-
> desktop-amd64.iso , after installation the ubuntu/gnome session
> defaults to x11 and in gdm the gear icon doesn't appear.
>
> AFAIK, Ubuntu should default to a Wayland session after Ubuntu 21.04,
> but this is not the case in my use-case.
>
> I tried changing the file `/etc/gdm3/custom.conf` ,by changing
> `WaylandEnable=false` to `WaylandEnable=true` but that didn't change
> anything.
>
> When , logging in the gear icon tries to appear but then disappears
> possibly indicating a crash(?)
>
> ProblemType: Bug
> DistroRelease: Ubuntu 24.04
> Package: gdm3 46.0-2ubuntu1
> ProcVersionSignature: Ubuntu 6.8.0-40.40-generic 6.8.12
> Uname: Linux 6.8.0-40-generic x86_64
> ApportVersion: 2.28.1-0ubuntu3.1
> Architecture: amd64
> CasperMD5CheckResult: unknown
> CurrentDesktop: ubuntu:GNOME
> Date: Sat Aug 17 11:20:29 2024
> InstallationDate: Installed on 2024-08-15 (2 days ago)
> InstallationMedia: Ubuntu 24.04.1 LTS "Noble Numbat" - Release amd64 (20240815)
> SourcePackage: gdm3
> UpgradeStatus: No upgrade log present (probably fresh install)
> mtime.conffile..etc.gdm3.custom.conf: 2024-08-17T11:18:20.109580
>
>To manage notifications about this bug go to:
>https://bugs.launchpad.net/mutter/+bug/2077216/+subscriptions
>

Changed in mutter:
status: New → Fix Released
tags: added: fixed-in-mutter-47.rc
removed: fixed-in-mutter-47.0
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (3.4 KiB)

This bug was fixed in the package mutter - 47~rc-4ubuntu1

---------------
mutter (47~rc-4ubuntu1) oracular; urgency=medium

  [ Jeremy Bícha ]
  * Merge with Debian. Remaining changes:
    - Add x11-Add-support-for-fractional-scaling-using-Randr.patch
    - Add window-Add-ability-to-override-the-edge-constraints.patch
      + Make possible for extensions (such as Tiling Assistant) to override
        window constraints
    - Remove debian/salsa-ci.yml: Not helpful for us currently
  * Remove the cogl color patches: applied in new release
  * Remove the mesa workaround patch: shouldn't be needed any more
  * Cherry-pick resizing fix for various Electron apps (LP: #2080073)

  [ Marco Trevisan (Treviño) ]
  * d/p/x11-randr-scaling: Update to work with latest upstream changes
  * debian/control: Update VCS references to ubuntu branch

mutter (47~rc-4) experimental; urgency=medium

  * Team upload
  * d/mutter-15-tests.postrm: Clean up gschemas.compiled created by postinst

mutter (47~rc-3) experimental; urgency=medium

  * Team upload
  * d/p/workarounds, d/tests: Treat all stacking tests as flaky.
    Unfortunately these don't seem to be stable enough to be used as a
    QA gate, and there are enough of them that at least one will often
    fail in any given buildd build or autopkgtest run
    (Mitigates: #1077800) (Closes: #1072512, #1078359)
  * d/tests: Also treat thread.test as flaky.
    This doesn't seem to be reliable in autopkgtest-virt-qemu or -lxc,
    although I can't reproduce the failure when running it separately.
  * d/rules, d/p/workarounds: Don't run the input-capture test at all.
    In my sbuild environment and on some buildds, it often hangs until it
    times out after 10 minutes, which is a waste of time. We were ignoring
    its result anyway.
  * d/mutter-15-tests.postinst: Compile required schemas for installed-tests
    (Closes: #1081016)
  * d/p/tests-Add-a-utility-function-to-delete-a-directory-recurs.patch,
    d/p/MetaContextTest-Optionally-create-and-destroy-a-temporary.patch,
    d/p/color-management-tests-Use-a-temporary-XDG_DATA_HOME.patch,
    d/p/color-management-profile-conflict-test-Use-a-temporary-XD.patch:
    Add patches to fix autopkgtests when not running as root
  * Correct bug number in previous changelog entry
  * Standards-Version: 4.7.0 (no changes required)
  * d/source/lintian-overrides: Update for use of ${env:deb_udevdir}

mutter (47~rc-2) experimental; urgency=medium

  * debian/*symbols: Update architectures for new cogl_trace symbols
  * Have mutter-15-tests depend on pipewire & libglib2.0-bin
    (Closes: #1081016)
  * autopkgtest: create the required /tmp/.X11-unix/

mutter (47~rc-1) experimental; urgency=medium

  [ Jeremy Bícha ]
  * New upstream release (LP: #2077216, LP: #2025006, LP: #2074253,
    LP: #2076318)
    - Fix screen freeze when using EGL Stream (Nvidia-470) (LP: #2074254)
    - Only warn once about cursor sizes (LP: #2076211)
  * debian/libmutter-15-0.symbols: Update
  * Mark as breaking gnome-shell << 47~rc
  * Only enable sysprof on architectures where sysprof is available
  * Refresh patches
  * Remove the kms deadline evasion patch: alternative fix is in new release
...

Read more...

Changed in mutter (Ubuntu):
status: Fix Committed → Fix Released
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.