It sounds like you're describing two different bugs and only the first one is your own so I am going to hide the second one from the description.
** Description changed: When I close a window on the gnome desktop. The desktop often freezes for anything between 30 seconds and a number of minutes. I notice this most often when closing a terminal window with ctrl+d. When look at the syslog and cpu usage (top) from a terminal logged in via ssh I see gnome-shell running at 100% and various gnome-shell error messages being reports. On the longer freezes the display often corrupts and the compositor can take a number of minutes to recover. - - I see that there a number of bug reports with similar problems. - Returning to the computer after a period of activity also can cause a - long delay when wakoen up by a key press (similsr to #1830255).. ProblemType: Bug DistroRelease: Ubuntu 19.04 Package: gnome-shell 3.32.1-1ubuntu1~19.04.1 ProcVersionSignature: Ubuntu 5.0.0-20.21-generic 5.0.8 Uname: Linux 5.0.0-20-generic x86_64 ApportVersion: 2.20.10-0ubuntu27 Architecture: amd64 CurrentDesktop: ubuntu:GNOME Date: Wed Jul 3 20:04:23 2019 DisplayManager: gdm3 GsettingsChanges: - b'org.gnome.shell' b'app-picker-view' b'uint32 1' - b'org.gnome.shell' b'command-history' redacted by apport - b'org.gnome.shell' b'favorite-apps' redacted by apport - b'org.gnome.desktop.interface' b'scaling-factor' b'uint32 1' - b'org.gnome.desktop.interface' b'gtk-im-module' b"'gtk-im-context-simple'" + b'org.gnome.shell' b'app-picker-view' b'uint32 1' + b'org.gnome.shell' b'command-history' redacted by apport + b'org.gnome.shell' b'favorite-apps' redacted by apport + b'org.gnome.desktop.interface' b'scaling-factor' b'uint32 1' + b'org.gnome.desktop.interface' b'gtk-im-module' b"'gtk-im-context-simple'" InstallationDate: Installed on 2016-07-01 (1097 days ago) InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1) ProcEnviron: - LANGUAGE=en_GB:en - PATH=(custom, no user) - XDG_RUNTIME_DIR=<set> - LANG=en_GB.UTF-8 - SHELL=/bin/bash + LANGUAGE=en_GB:en + PATH=(custom, no user) + XDG_RUNTIME_DIR=<set> + LANG=en_GB.UTF-8 + SHELL=/bin/bash SourcePackage: gnome-shell UpgradeStatus: Upgraded to disco on 2019-04-24 (70 days ago) modified.conffile..etc.default.apport: - # set this to 0 to disable apport, or to 1 to enable it - # you can temporarily override this with - # sudo service apport start force_start=1 - enabled=0 + # set this to 0 to disable apport, or to 1 to enable it + # you can temporarily override this with + # sudo service apport start force_start=1 + enabled=0 mtime.conffile..etc.default.apport: 2017-01-09T14:52:27.643509 -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/1835295 Title: Closing a window on the desktop freezes the desktop for a minute or more. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1835295/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs