GNOME Shell doesn't start Ubuntu session with 3.36.4 as per assertion in meta_monitor_manager_xrandr_update_screen_size

Bug #1889090 reported by Marco Trevisan (Treviño)
48
This bug affects 4 people
Affects Status Importance Assigned to Milestone
mutter (Ubuntu)
Fix Released
Critical
Marco Trevisan (Treviño)
Focal
Fix Released
Critical
Marco Trevisan (Treviño)

Bug Description

Reported initially as comments of bug #1887998:

[ Impact ]

Ubuntu session doesn't start with some particular monitor configurations, as per this fatal assertion:

Jul 27 00:30:33 jojda gnome-shell[15068]: mutter:ERROR:../src/backends/x11/meta-monitor-manager-xrandr.c:211:meta_monitor_manager_xrandr_update_screen_size: assertion failed: (width > 0 && height > 0 && scale > 0)
Jul 27 00:30:33 jojda gnome-shell[15068]: Bail out! mutter:ERROR:../src/backends/x11/meta-monitor-manager-xrandr.c:211:meta_monitor_manager_xrandr_update_screen_size: assertion failed: (width > 0 && height > 0 && scale > 0)
Jul 27 00:30:33 jojda systemd[4297]: gnome-shell-x11.service: Main process exited, code=dumped, status=6/ABRT
Jul 27 00:30:33 jojda systemd[4297]: gnome-shell-x11.service: Failed with result 'core-dump'.

[ Test case ]

Start ubuntu session, you should be able to log-in and no error fallback dialog is shown.

[ Regression potential ]

Screen size is not set properly for the session, panning is enabled.

---

https://launchpad.net/ubuntu/+source/mutter/3.36.4-0ubuntu0.20.04.1 does not fix it. Unfortunately I cannot switch to Wayland because it doesn't start on my system (video card: 00:02.0 VGA compatible controller: Intel Corporation Iris Plus Graphics 655 (rev 01)).

Symptom is that after waking up from sleep I get white screen of death that says what the bug description says ("Oh no! Something has gone wrong. A problem has occurred and the system can't recover. Please log out and try again.") and I have to click the Log out button at which points it lets me log in again. Sometime it does the same thing again right after logging in.

Syslog message are also pretty much the same as from other comments, here you can see it failing twice, first up while running then right after re-login.

Jul 27 00:30:31 jojda gnome-shell[4633]: gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
Jul 27 00:30:32 jojda gnome-shell[4633]: **
Jul 27 00:30:32 jojda gnome-shell[4633]: mutter:ERROR:../src/backends/x11/meta-monitor-manager-xrandr.c:211:meta_monitor_manager_xrandr_update_screen_size: assertion failed: (width > 0 && height > 0 && scale > 0)
Jul 27 00:30:32 jojda gnome-shell[4633]: Bail out! mutter:ERROR:../src/backends/x11/meta-monitor-manager-xrandr.c:211:meta_monitor_manager_xrandr_update_screen_size: assertion failed: (width > 0 && height > 0 && scale > 0)
Jul 27 00:30:32 jojda systemd[4297]: gnome-shell-x11.service: Main process exited, code=dumped, status=6/ABRT
Jul 27 00:30:33 jojda systemd[4297]: gnome-shell-x11.service: Failed with result 'core-dump'.
Jul 27 00:30:33 jojda systemd[4297]: gnome-shell-x11.service: Scheduled restart job, restart counter is at 1.
Jul 27 00:30:33 jojda systemd[4297]: Stopped target GNOME X11 Session (session: ubuntu).
Jul 27 00:30:33 jojda systemd[4297]: Stopping GNOME X11 Session (session: ubuntu).
Jul 27 00:30:33 jojda systemd[4297]: Stopped target GNOME X11 Session.
Jul 27 00:30:33 jojda systemd[4297]: Stopping GNOME X11 Session.
Jul 27 00:30:33 jojda systemd[4297]: Stopped target GNOME Shell on X11.
Jul 27 00:30:33 jojda systemd[4297]: Stopping GNOME Shell on X11.
Jul 27 00:30:33 jojda systemd[4297]: Stopped GNOME Shell on X11.
Jul 27 00:30:33 jojda systemd[4297]: Starting GNOME Shell on X11...
Jul 27 00:30:33 jojda gnome-shell[15068]: Enabling experimental feature 'x11-randr-fractional-scaling'
Jul 27 00:30:33 jojda gnome-shell[15068]: **
Jul 27 00:30:33 jojda gnome-shell[15068]: mutter:ERROR:../src/backends/x11/meta-monitor-manager-xrandr.c:211:meta_monitor_manager_xrandr_update_screen_size: assertion failed: (width > 0 && height > 0 && scale > 0)
Jul 27 00:30:33 jojda gnome-shell[15068]: Bail out! mutter:ERROR:../src/backends/x11/meta-monitor-manager-xrandr.c:211:meta_monitor_manager_xrandr_update_screen_size: assertion failed: (width > 0 && height > 0 && scale > 0)
Jul 27 00:30:33 jojda systemd[4297]: gnome-shell-x11.service: Main process exited, code=dumped, status=6/ABRT
Jul 27 00:30:33 jojda systemd[4297]: gnome-shell-x11.service: Failed with result 'core-dump'.
Jul 27 00:30:33 jojda systemd[4297]: Failed to start GNOME Shell on X11.
Jul 27 00:30:33 jojda systemd[4297]: Dependency failed for GNOME Shell on X11.
Jul 27 00:30:33 jojda systemd[4297]: Dependency failed for GNOME X11 Session.
Jul 27 00:30:33 jojda systemd[4297]: Dependency failed for GNOME X11 Session (session: ubuntu).
Jul 27 00:30:33 jojda systemd[4297]: <email address hidden>: Job <email address hidden>/start failed with result 'dependency'.
Jul 27 00:30:33 jojda systemd[4297]: gnome-session-x11.target: Job gnome-session-x11.target/start failed with result 'dependency'.
Jul 27 00:30:33 jojda systemd[4297]: gnome-shell-x11.target: Job gnome-shell-x11.target/start failed with result 'dependency'.
Jul 27 00:30:33 jojda systemd[4297]: gnome-shell-x11.service: Scheduled restart job, restart counter is at 2.
Jul 27 00:30:33 jojda systemd[4297]: Stopped GNOME Shell on X11.

---

Handled in e.u.c:
 https://errors.ubuntu.com/problem/2acb34a4bbf65f5d7ab2d0ccd4dc1adda82724d5

Changed in mutter (Ubuntu):
status: In Progress → Fix Committed
Changed in mutter (Ubuntu Focal):
assignee: nobody → Marco Trevisan (Treviño) (3v1n0)
importance: Undecided → Critical
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mutter - 3.36.4-1ubuntu2

---------------
mutter (3.36.4-1ubuntu2) groovy; urgency=medium

  * xrandr-scaling: Never try to set invalid screen sizes (LP: #1889090)

 -- Marco Trevisan (Treviño) <email address hidden> Mon, 27 Jul 2020 16:44:52 +0200

Changed in mutter (Ubuntu):
status: Fix Committed → Fix Released
description: updated
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Please test proposed package

Hello Marco, or anyone else affected,

Accepted mutter into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/mutter/3.36.4-0ubuntu0.20.04.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

tags: added: verification-needed verification-needed-focal
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

zasran, Dmitry: Had any chance to try the new packages in proposed?

Cheers

Revision history for this message
Facundo Flores (elleon) wrote :

Hello Marco.
The new package fixed the problem for me.

Saluti.

tags: added: verification-done verification-done-focal
removed: verification-needed verification-needed-focal
Revision history for this message
zasran (erik-zasran) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mutter - 3.36.4-0ubuntu0.20.04.2

---------------
mutter (3.36.4-0ubuntu0.20.04.2) focal; urgency=medium

  * xrandr-scaling: Never try to set invalid screen sizes (LP: #1889090)

mutter (3.36.4-0ubuntu0.20.04.1) focal; urgency=medium

  * New upstream stable release (LP: #1887998)
    - Fix crash on area screenshots with fractional scaling
    - Do not paint textures of fully obscured windows
    - Turn off CRTCs as well when enabling DPMS
    - Improve selection support
    - Use a more appropriate combine function on opaque areas
    - Fix remote desktop being broken without screencast session
    - Fix popovers disappearing on wayland and HiDPI
    - Fixed crashes (LP: #1870867, LP: #1857947)
    - Plugged memory leaks
  * d/p/screen-cast-Let-the-reason-for-recording-determine-what-t.patch,
    d/p/screen-cast-src-Add-flag-to-maybe_record.patch,
    d/p/screen-cast-src-Fix-signedness-of-timestamp-field.patch,
    d/p/screen-cast-src-Make-record-functions-return-an-error-whe.patch,
    d/p/screen-cast-src-Make-the-two-record-vfuncs-more-similarly.patch,
    d/p/screen-cast-src-Record-follow-up-frame-after-timeout.patch,
    d/p/screen-cast-src-Remove-follow-up-timeout-source-on-disabl.patch,
    d/p/screen-cast-src-Use-G_USEC_PER_SEC-instead-of-1000000.patch,
    d/p/screen-cast-window-stream-src-Fix-indentation.patch:
    - Import more fixes for screencasting and remote desktop
  * d/p/x11-Add-support-for-fractional-scaling-using-Randr.patch:
    - Don't export patch-only private symbol
  * debian/libmutter-6-0.symbols:
    - Remove ubuntu-only private symbol

mutter (3.36.3-0ubuntu0.20.04.2) focal; urgency=medium

  * debian/control:
    - Revert BD on adwaita-icon-theme 3.36.1-2ubuntu3. It was just temporary fix
  * d/p/x11-Add-support-for-fractional-scaling-using-Randr.patch:
    - Use pre-computed CRTC layout size for computing screen size (LP: #1874567,
      LP: #1873403)
    - Decouple the output mode from layout mode capabilities (LP: #1876894,
      LP: #1886996)
    - Ensure we notify CRTC changes on integer scaling changes (LP: #1876894)
    - Apply proper layout monitor config when using fractional scaling
      (LP: #1884754)
    - Restore the fractional settings when reverting to fractional layout
      (LP: #1886996)
  * debian/libmutter-6-0.symbols: Add new private symbol

 -- Marco Trevisan (Treviño) <email address hidden> Mon, 27 Jul 2020 17:04:41 +0200

Changed in mutter (Ubuntu Focal):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for mutter has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Bin Li (binli) wrote :

Hi Marco,

After upgrade the mutter from 3.36.4-0ubuntu0.20.04.1 to 3.36.4-0ubuntu0.20.04.2, the username could not be showed correctly. I reported a new bug to follow it.

https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/1894183

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

Other bug subscribers

Related questions

Remote bug watches

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