Jammy, attempt to log into Xorg session, "Oh no! Something has gone wrong."

Bug #1952556 reported by Jonathan Kamens
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Ubuntu
Fix Released
High
Unassigned

Bug Description

On Jammy, I log out of a Wayland session, click my name on the login screen, go down to the options menu and select Ubuntu on Xorg, enter my password, get "Oh no! Something has gone wrong. A probleme has occurred and the system can't recover. Please log out and try again. [Log Out]" I click the log out button and log in again, and I'm logged into a Wayland session. Why was I logged into a Wayland session when I selected Xorg the last time I tried to log in?

This issue is intermittent I had been able to log into an Xorg session just a few minutes prior.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: gnome-shell 40.5-1ubuntu2
ProcVersionSignature: Ubuntu 5.13.0-21.21-generic 5.13.18
Uname: Linux 5.13.0-21-generic x86_64
ApportVersion: 2.20.11-0ubuntu73
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Sun Nov 28 11:10:10 2021
DisplayManager: gdm3
InstallationDate: Installed on 2019-08-16 (834 days ago)
InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Release amd64 (20190416)
RelatedPackageVersions: mutter-common 40.5-1ubuntu3
SourcePackage: gnome-shell
UpgradeStatus: Upgraded to jammy on 2021-11-09 (19 days ago)
modified.conffile..etc.apport.crashdb.conf: [modified]
mtime.conffile..etc.apport.crashdb.conf: 2021-10-16T09:30:38.992726

Revision history for this message
Jonathan Kamens (jik) wrote :
Revision history for this message
Jonathan Kamens (jik) wrote :

I logged out immediately after logging in again as described above, then went to log in again and checked the options menu, and it correctly had "Ubuntu on Xorg" selected as my session type, but when I finished logging in I was in a Wayland session, not an Xorg session. So for some reason my selection of Xorg as my desired session is being ignored?

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

Sounds like bug 1952457 but we should figure out the root cause of this bug separately.

Please:

1. Uninstall these extensions: '<email address hidden>', '<email address hidden>', 'multi-volume@tigersoldier', '<email address hidden>'

2. Log in again and verify the bug still occurs.

3. If the bug does still occur then check for crashes using these instructions: https://wiki.ubuntu.com/Bugs/Responses#Missing_a_crash_report_or_having_a_.crash_attachment

Changed in gnome-shell (Ubuntu):
status: New → Incomplete
Revision history for this message
Jonathan Kamens (jik) wrote :

Problem still occurs with mprisindicatorbutton, batime, and allowlockedremotedesktop completely uninstalled. Can't uninstall multi-volume because neither Extensions app nor extensions.gnome.org say it's installed.

Probably relevant crash: https://bugs.launchpad.net/ubuntu/+source/xwayland/+bug/1952619

Revision history for this message
Jonathan Kamens (jik) wrote :

(Though why _Wayland_ is crashing when I'm trying to log into an _Xorg_ session and the options menu on the login screen says that I have Xorg selected remains a mystery.)

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

Please try:

  cd ~/.local/share/gnome-shell/
  rm -rf extensions

and then log in again.

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

Sorry I can reproduce it now. Seems logging into Wayland first, and then Xorg, is the trick as you say.

Changed in gnome-shell (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Daniel van Vugt (vanvugt) wrote (last edit ):

After removing all extensions I can at least log in to a Xorg session. But you get logged into the Activities Overview as expected. Clicking on the desktop then triggers the "Oh no!" (which is gnome-session-failed?).

So it seems the issue is something to do with the vanilla GNOME desktop. We only see the bug sooner when Ubuntu Dock is loaded because that starts on the desktop.

Changed in gnome-shell (Ubuntu):
importance: Undecided → High
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Maybe related to bug 1952457.

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

Downgrading to gnome-session 40.1.1-1ubuntu1 packages from impish appears to fix it.

https://launchpad.net/ubuntu/+source/gnome-session/40.1.1-1ubuntu1/+build/22096973

so the regression seems to have started in:

https://launchpad.net/ubuntu/+source/gnome-session/40.1.1-3ubuntu1

affects: gnome-shell (Ubuntu) → gnome-session (Ubuntu)
Revision history for this message
Daniel van Vugt (vanvugt) wrote (last edit ):

If only something was actually crashing or logging errors, I see neither. Just 'gnome-session-failed' gets incorrectly spawned some time after login (when the overview first closes).

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

I can't seem to reproduce this bug anymore. If anyone else can then please test:

https://launchpad.net/ubuntu/+source/gdm3/41.0-3ubuntu2/+build/22602610

Changed in gnome-session (Ubuntu):
status: Confirmed → Incomplete
Changed in gdm3 (Ubuntu):
status: New → Incomplete
importance: Undecided → High
Revision history for this message
Jonathan Kamens (jik) wrote :

No longer reproducible for me.

Changed in gdm3 (Ubuntu):
status: Incomplete → Invalid
Changed in gnome-session (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

More accurately, something in Ubuntu got fixed. Somewhere.

no longer affects: gnome-session (Ubuntu)
affects: gdm3 (Ubuntu) → ubuntu
Changed in ubuntu:
status: Invalid → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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