Wayland/Gnome Shell freezes when Android phone is connected

Bug #1971704 reported by Bartosz Woronicz
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-shell-extension-ubuntu-dock (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

I got occasional freeze on new Ubuntu 22.04 LTS. The machine is Lenovo 7/8th gen Carbon with 10th gen Intel.
But after the latest freeze and reboot (because of the freeze) I logged in and then it freezes everytime, propably when loading gnome setting, I see the icon emerging on the dock and freezing. Just before the freeze there was kernel and some packages upgrade)
The report is from previous kernel which I thought it was culprit but it seems not.

I can login to the machine with SSH therefore I produced this report. There"s process getting 100% of 1 cpu core: gnome-shell
After a while it blanks (as schedules) to login manager and I can login back and same story.

I see following error in syslog
May 5 14:02:13 graf gnome-shell[1740]: cr_parser_new_from_buf: assertion 'a_buf && a_len' failed
May 5 14:02:13 graf gnome-shell[1740]: cr_declaration_parse_list_from_buf: assertion 'parser' failed
May 5 14:02:13 graf gnome-shell[1740]: cr_parser_new_from_buf: assertion 'a_buf && a_len' failed
May 5 14:02:13 graf gnome-shell[1740]: cr_declaration_parse_list_from_buf: assertion 'parser' failed
May 5 14:02:13 graf gnome-shell[1740]: ATK Bridge is disabled but a11y has already been enabled.
May 5 14:02:14 graf gnome-shell[1740]: Registering session with GDM
May 5 14:02:17 graf gnome-shell[1740]: Could not open device /dev/input/event17: Could not get device info for path /dev/input/event17: No such file or directory
May 5 14:02:17 graf gnome-shell[1740]: Could not open device /dev/input/event16: GDBus.Error:System.Error.ENODEV: No such device
May 5 14:02:19 graf gnome-shell[1740]: Removing a network device that was not added
May 5 14:02:19 graf gnome-shell[1740]: Removing a network device that was not added
May 5 14:02:27 graf gnome-shell[3287]: Running GNOME Shell (using mutter 42.0) as a Wayland display server
May 5 14:02:27 graf gnome-shell[3287]: Device '/dev/dri/card0' prefers shadow buffer
May 5 14:02:27 graf gnome-shell[3287]: Added device '/dev/dri/card0' (i915) using atomic mode setting.
May 5 14:02:27 graf gnome-shell[3287]: Created gbm renderer for '/dev/dri/card0'
May 5 14:02:27 graf gnome-shell[3287]: Boot VGA GPU /dev/dri/card0 selected as primary
May 5 14:02:27 graf gnome-shell[3287]: Using public X11 display :0, (using :1 for managed services)
May 5 14:02:27 graf gnome-shell[3287]: Using Wayland display name 'wayland-0'
May 5 14:02:27 graf gnome-shell[3287]: Unset XDG_SESSION_ID, getCurrentSessionProxy() called outside a user session. Asking logind directly.
May 5 14:02:27 graf gnome-shell[3287]: Will monitor session 2
May 5 14:02:27 graf dbus-daemon[3106]: [session uid=1000 pid=3106] Activating via systemd: service name='org.freedesktop.impl.portal.PermissionStore' unit='xdg-permission-store.service' requested by ':1.36' (uid=1000 pid=3287 comm="/usr/bin/gnome-shell " label="unconfined")
May 5 14:02:27 graf dbus-daemon[3106]: [session uid=1000 pid=3106] Activating service name='org.gnome.Shell.CalendarServer' requested by ':1.36' (uid=1000 pid=3287 comm="/usr/bin/gnome-shell " label="unconfined")
May 5 14:02:27 graf dbus-daemon[3106]: [session uid=1000 pid=3106] Activating via systemd: service name='org.gnome.evolution.dataserver.Sources5' unit='evolution-source-registry.service' requested by ':1.39' (uid=1000 pid=3334 comm="/usr/libexec/gnome-shell-calendar-server " label="unconfined")
May 5 14:02:27 graf gnome-shell[3287]: Telepathy is not available, chat integration will be disabled.
May 5 14:02:27 graf dbus-daemon[3106]: [session uid=1000 pid=3106] Activating via systemd: service name='org.gnome.evolution.dataserver.Calendar8' unit='evolution-calendar-factory.service' requested by ':1.39' (uid=1000 pid=3334 comm="/usr/libexec/gnome-shell-calendar-server " label="unconfined")
May 5 14:02:27 graf dbus-daemon[3106]: [session uid=1000 pid=3106] Activating service name='org.freedesktop.FileManager1' requested by ':1.36' (uid=1000 pid=3287 comm="/usr/bin/gnome-shell " label="unconfined")
May 5 14:02:28 graf dbus-daemon[3106]: [session uid=1000 pid=3106] Activating service name='org.gnome.Shell.Notifications' requested by ':1.36' (uid=1000 pid=3287 comm="/usr/bin/gnome-shell " label="unconfined")
May 5 14:02:28 graf at-spi-dbus-bus.desktop[3293]: dbus-daemon[3293]: Activating service name='org.a11y.atspi.Registry' requested by ':1.0' (uid=1000 pid=3287 comm="/usr/bin/gnome-shell " label="unconfined")
May 5 14:02:28 graf gnome-shell[3287]: Error looking up permission: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for geolocation
May 5 14:02:28 graf gnome-shell[3646]: (WW) Option "-listen" for file descriptors is deprecated
May 5 14:02:28 graf gnome-shell[3646]: Please use "-listenfd" instead.
May 5 14:02:28 graf gnome-shell[3646]: (WW) Option "-listen" for file descriptors is deprecated
May 5 14:02:28 graf gnome-shell[3646]: Please use "-listenfd" instead.
May 5 14:02:28 graf gnome-shell[3287]: Could not open device /dev/input/event18: Could not get device info for path /dev/input/event18: No such file or directory
May 5 14:02:28 graf gnome-shell[3287]: Window manager warning: Overwriting existing binding of keysym 36 with keysym 36 (keycode f).
May 5 14:02:28 graf gnome-shell[3287]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a).
May 5 14:02:28 graf gnome-shell[3287]: Window manager warning: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12).
May 5 14:02:28 graf gnome-shell[3287]: Window manager warning: Overwriting existing binding of keysym 34 with keysym 34 (keycode d).
May 5 14:02:28 graf gnome-shell[3287]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10).
May 5 14:02:28 graf gnome-shell[3287]: Window manager warning: Overwriting existing binding of keysym 32 with keysym 32 (keycode b).
May 5 14:02:28 graf gnome-shell[3287]: Window manager warning: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11).
May 5 14:02:28 graf gnome-shell[3287]: Window manager warning: Overwriting existing binding of keysym 33 with keysym 33 (keycode c).
May 5 14:02:28 graf gnome-shell[3287]: Window manager warning: Overwriting existing binding of keysym 35 with keysym 35 (keycode e).
May 5 14:02:28 graf gnome-shell[3287]: Could not open device /dev/input/event17: GDBus.Error:System.Error.ENODEV: No such device
grep: (standard input): binary file matches

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: xorg 1:7.7+23ubuntu2
ProcVersionSignature: Ubuntu 5.15.0-25.25-generic 5.15.30
Uname: Linux 5.15.0-25-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu82
Architecture: amd64
BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
CasperMD5CheckResult: unknown
Date: Thu May 5 14:27:52 2022
DistUpgraded: 2022-04-25 01:09:43,352 DEBUG failed to SystemLock() (E:Could not get lock /var/lib/dpkg/lock. It is held by process 68786 (dpkg), W:Be aware that removing the lock file is not a solution and may break your system., E:Nie udało się zablokować katalogu administracyjnego (/var/lib/dpkg/), czy inny proces go używa?)
DistroCodename: jammy
DistroVariant: ubuntu
ExtraDebuggingInterest: Yes, including running git bisection searches
GraphicsCard:
 Intel Corporation Comet Lake UHD Graphics [8086:9bca] (rev 04) (prog-if 00 [VGA controller])
   Subsystem: Lenovo Comet Lake UHD Graphics [17aa:2292]
InstallationDate: Installed on 2021-04-15 (384 days ago)
InstallationMedia: Ubuntu 20.04.2.0 LTS "Focal Fossa" - Release amd64 (20210209.1)
MachineType: LENOVO 20R10015US
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-5.15.0-25-generic root=/dev/mapper/ubuntu-root ro quiet splash
SourcePackage: xorg
Symptom: display
Title: Xorg freeze
UpgradeStatus: Upgraded to jammy on 2022-04-24 (10 days ago)
dmi.bios.date: 11/10/2021
dmi.bios.release: 1.38
dmi.bios.vendor: LENOVO
dmi.bios.version: N2QET44W(1.38 )
dmi.board.asset.tag: Not Available
dmi.board.name: 20R10015US
dmi.board.vendor: LENOVO
dmi.board.version: SDK0J40697 WIN
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: None
dmi.ec.firmware.release: 1.18
dmi.modalias: dmi:bvnLENOVO:bvrN2QET44W(1.38):bd11/10/2021:br1.38:efr1.18:svnLENOVO:pn20R10015US:pvrThinkPadX1Carbon7th:rvnLENOVO:rn20R10015US:rvrSDK0J40697WIN:cvnLENOVO:ct10:cvrNone:skuLENOVO_MT_20R1_BU_Think_FM_ThinkPadX1Carbon7th:
dmi.product.family: ThinkPad X1 Carbon 7th
dmi.product.name: 20R10015US
dmi.product.sku: LENOVO_MT_20R1_BU_Think_FM_ThinkPad X1 Carbon 7th
dmi.product.version: ThinkPad X1 Carbon 7th
dmi.sys.vendor: LENOVO
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.110-1ubuntu1
version.libgl1-mesa-dri: libgl1-mesa-dri 22.0.1-1ubuntu2
version.libgl1-mesa-glx: libgl1-mesa-glx N/A
version.xserver-xorg-core: xserver-xorg-core 2:21.1.3-2ubuntu2
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:19.1.0-2build3
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20210115-1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.17-2build1

Revision history for this message
Bartosz Woronicz (mastier1) wrote :
affects: xorg (Ubuntu) → gnome-shell (Ubuntu)
Revision history for this message
Bartosz Woronicz (mastier1) wrote :

I see yet following
maj 05 14:51:19 graf systemd[3355]: Started GNOME XSettings service.
maj 05 14:51:19 graf systemd[3355]: Reached target GNOME session X11 services.
maj 05 14:51:19 graf gnome-shell[10528]: ATK Bridge is disabled but a11y has already been enabled.
maj 05 14:51:19 graf dbus-daemon[10436]: [session uid=1000 pid=10436] Successfully activated service 'org.freedesktop.impl.portal.desktop.gtk'
maj 05 14:51:19 graf systemd[3355]: Started Portal service (GTK/GNOME implementation).
maj 05 14:51:19 graf dbus-daemon[10436]: [session uid=1000 pid=10436] Successfully activated service 'org.freedesktop.portal.Desktop'
maj 05 14:51:19 graf systemd[3355]: Started Portal service.
maj 05 14:51:19 graf nautilus[10679]: Using GtkSettings:gtk-application-prefer-dark-theme together with HdyStyleManager is unsupported. Please use HdyStyleManager:color-scheme instead.
maj 05 14:51:19 graf guake.desktop[10829]: Guake not running, starting it
maj 05 14:51:19 graf gnome-shell[10528]: GNOME Shell started at Thu May 05 2022 14:51:17 GMT+0200 (CEST)
maj 05 14:51:19 graf guake.desktop[10829]: Loading Gnome schema from: /usr/share/glib-2.0/schemas
maj 05 14:51:19 graf gnome-shell[10528]: Registering session with GDM
maj 05 14:51:19 graf guake.desktop[10829]: Language previously loaded from: /usr/share/locale
maj 05 14:51:19 graf gnome-shell[10072]: Connection to xwayland lost
maj 05 14:51:19 graf gnome-session-binary[10065]: CRITICAL: gsm_client_peek_id: assertion 'GSM_IS_CLIENT (client)' failed
maj 05 14:51:19 graf gnome-session[10065]: gnome-session-binary[10065]: CRITICAL: gsm_client_peek_id: assertion 'GSM_IS_CLIENT (client)' failed
maj 05 14:51:19 graf gdm-launch-environment][10025]: pam_unix(gdm-launch-environment:session): session closed for user gdm
maj 05 14:51:19 graf gdm-launch-environment][10025]: GLib-GObject: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
maj 05 14:51:19 graf systemd-logind[1333]: Session c2 logged out. Waiting for processes to exit.
maj 05 14:51:19 graf gsd-color[10715]: failed to connect to device: Failed to connect to missing device /org/freedesktop/ColorManager/devices/xrandr_BOE_gdm_125
maj 05 14:51:19 graf gsd-color[10715]: failed to connect to device: Failed to connect to missing device /org/freedesktop/ColorManager/devices/xrandr_Dell_Inc__DELL_U2720Q_7S1X193_gdm_125
maj 05 14:51:19 graf audit[1296]: USER_AVC pid=1296 uid=103 auid=4294967295 ses=4294967295 subj=? msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/PolicyKit1/Authority" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name=":1.3" pid=10761 label="snap.snap-store.ubuntu-software" peer_pid=1314 peer_label="unconfined"
                                   exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'

Revision history for this message
Bartosz Woronicz (mastier1) wrote :
Download full text (3.5 KiB)

seems some whoopsie report was send also

maj 05 14:51:20 graf gnome-shell[10528]: DING: Detected async api for thumbnails
maj 05 14:51:20 graf gnome-shell[10528]: DING: GNOME nautilus 42.0
maj 05 14:51:21 graf whoopsie-upload-all[11019]: INFO:root:Marking /var/crash/_usr_bin_indicator-cpufreq.1000.crash for whoopsie upload
maj 05 14:51:21 graf whoopsie-upload-all[11019]: INFO:root:/var/crash/_usr_bin_most.1000.crash already marked for upload, skipping
maj 05 14:51:21 graf whoopsie-upload-all[11019]: INFO:root:Waiting for whoopsie to upload reports (timeout: 20 s)
maj 05 14:51:21 graf whoopsie-upload-all[11019]: INFO:root: missing (remaining: 20 s): /var/crash/_usr_bin_indicator-cpufreq.1000.uploaded
maj 05 14:51:21 graf systemd[1]: Started crash report submission.
maj 05 14:51:21 graf whoopsie[12823]: [14:51:21] Using lock path: /var/lock/whoopsie/lock
maj 05 14:51:21 graf whoopsie[12823]: [14:51:21] Parsing /var/crash/_usr_bin_indicator-cpufreq.1000.crash.
maj 05 14:51:21 graf whoopsie[12823]: [14:51:21] Uploading /var/crash/_usr_bin_indicator-cpufreq.1000.crash.
maj 05 14:51:22 graf PackageKit[2125]: refresh-cache transaction /3323_ddbcbaac from uid 1000 finished with success after 2240ms
maj 05 14:51:22 graf snap-store[10761]: adding wildcard app */*/*/*/org.gnome.Builder.desktop/* to plugin cache
maj 05 14:51:22 graf snap-store[10761]: adding wildcard app */*/*/*/org.gnome.Calculator.desktop/* to plugin cache
maj 05 14:51:22 graf snap-store[10761]: adding wildcard app */*/*/*/org.gnome.clocks.desktop/* to plugin cache
maj 05 14:51:22 graf snap-store[10761]: adding wildcard app */*/*/*/org.gnome.Dictionary.desktop/* to plugin cache
maj 05 14:51:22 graf snap-store[10761]: adding wildcard app */*/*/*/org.gnome.Documents.desktop/* to plugin cache
maj 05 14:51:22 graf snap-store[10761]: adding wildcard app */*/*/*/org.gnome.Evince/* to plugin cache
maj 05 14:51:22 graf snap-store[10761]: adding wildcard app */*/*/*/org.gnome.gedit.desktop/* to plugin cache
maj 05 14:51:22 graf snap-store[10761]: adding wildcard app */*/*/*/org.gnome.Maps.desktop/* to plugin cache
maj 05 14:51:22 graf snap-store[10761]: adding wildcard app */*/*/*/org.gnome.Weather/* to plugin cache
maj 05 14:51:22 graf snap-store[10761]: Only 0 apps for recent list, hiding
maj 05 14:51:22 graf snap-store[10761]: hiding category audio-video featured applications: found only 0 to show, need at least 9
maj 05 14:51:22 graf snap-store[10761]: hiding category graphics featured applications: found only 0 to show, need at least 9
maj 05 14:51:22 graf systemd[1]: session-c2.scope: Deactivated successfully.
maj 05 14:51:22 graf systemd[1]: session-c2.scope: Consumed 3.400s CPU time.
maj 05 14:51:22 graf systemd-logind[1333]: Removed session c2.
maj 05 14:51:22 graf snap-store[10761]: FIXME: Unknown progress handling is not yet implemented for GsProgressButton
maj 05 14:51:22 graf snap-store[10761]: FIXME: Unknown progress handling is not yet implemented for GsProgressButton
maj 05 14:51:22 graf snap-store[10761]: FIXME: Unknown progress handling is not yet implemented for GsProgressButton
maj 05 14:51:22 graf snap-store[10761]: FIXME: Unknown progress handling is not yet implemented ...

Read more...

Revision history for this message
Bartosz Woronicz (mastier1) wrote :

Workaround: switching to Xorg helps

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

Thanks for the bug report. Next time a freeze happens, please log in via SSH and run:

  journalctl -b0 > journal.txt

and then attach the resulting text file here.

affects: wayland → ubuntu
no longer affects: ubuntu
affects: gnome-shell → ubuntu
no longer affects: ubuntu
tags: added: i915
Changed in gnome-shell (Ubuntu):
status: New → Incomplete
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Please also check for crashes:

1. Look in /var/crash for crash files and if found run:

   ubuntu-bug YOURFILE.crash

   Then tell us the ID of the newly-created bug.

2. If step 1 failed then look at https://errors.ubuntu.com/user/ID where ID is the content of file /var/lib/whoopsie/whoopsie-id on the machine. Do you find any links to recent problems on that page? If so then please send the links to us.

Revision history for this message
Bartosz Woronicz (mastier1) wrote :

I got a freeze but might not be related to this one, was when connected to my phone and long waiting to load Photos folder

Revision history for this message
Bartosz Woronicz (mastier1) wrote :
Revision history for this message
Bartosz Woronicz (mastier1) wrote :

So after the loading Xorg and restart and going back to Wayland it started working again. Despite it was freezing before every reboot. And switching to Xorg helped.

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

Thanks. The log in comment #7 shows you're experiencing bug 1968040. To work around that just add MUTTER_DEBUG_ENABLE_ATOMIC_KMS=0 to your /etc/environment and reboot.

But the log also shows problems with 'SAMSUNG_SAMSUNG_Android_R5CR615MA2X' coming from the ubuntu-dock extension. To work around that maybe try:

  Settings >
  Appearance >
  Dock >
  Configure dock behaviour >
  Show Volumes and Devices = OFF

summary: - Wayland/Gnome Shell freezes propably on displaying Gnome Setting
+ Wayland/Gnome Shell freezes when Android phone is connected
affects: gnome-shell (Ubuntu) → gnome-shell-extension-ubuntu-dock (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for gnome-shell-extension-ubuntu-dock (Ubuntu) because there has been no activity for 60 days.]

Changed in gnome-shell-extension-ubuntu-dock (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.