visual studio code crashes gnome-shell on Ubuntu 20.10

Bug #1907468 reported by Gwolf2u
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-shell (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

Ubuntu version: 20.10
Gnome version: 3.38.1
VScode version: 1.51.1

gnome-shell restarts on opening a file in vscode (no matter the version, snap or deb version)

Steps to reproduce:
1. Set vscode as default file editor
2. Open a txt file from one location
3. Minimize vscode to dock
4. Try to open a different file -> gnome-shell restarts
5. File actually opens and can be seen after shell restarts

Also opened a issue in vscode GitHub (https://github.com/microsoft/vscode/issues/109972)

Some logging here: https://github.com/microsoft/vscode/issues/109972#issuecomment-738128549
or:
18:31:05 systemd: gnome-terminal-server.service: Succeeded.
18:30:56 gnome-shell: Can't update stage views actor ClutterClone is on because it needs an allocation.
18:30:56 dbus-daemon: [session uid=1000 pid=1148] Successfully activated service 'org.gnome.Logs'
18:30:56 gnome-shell: Wrong number of result metas returned by search provider org.gnome.seahorse.Application.desktop: expected 1 but got 0
18:30:56 dbus-daemon: [session uid=1000 pid=1148] Successfully activated service 'org.gnome.seahorse.Application'
18:30:55 systemd: Started GNOME Terminal Server.
18:30:55 dbus-daemon: [session uid=1000 pid=1148] Successfully activated service 'org.gnome.Terminal'
18:30:55 systemd: Starting GNOME Terminal Server...
18:30:55 dbus-daemon: [session uid=1000 pid=1148] Activating via systemd: service name='org.gnome.Terminal' unit='gnome-terminal-server.service' requested by ':1.249' (uid=1000 pid=49605 comm="/usr/bin/gnome-shell ")
18:30:55 gnome-shell: value "-inf" of type 'gfloat' is invalid or out of range for property 'height' of type 'gfloat'
18:30:50 Xorg: (--) modeset(0): HDMI max TMDS frequency 225000KHz
18:30:49 gnome-shell: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10).
18:30:49 gsd-media-keys: Failed to grab accelerator for keybinding settings:playback-repeat
18:30:49 gnome-shell: Error looking up permission: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for geolocation
18:30:49 systemd: Started GNOME Shell on X11.
18:30:49 dbus-daemon: [session uid=1000 pid=1148] Successfully activated service 'org.gnome.Shell.Notifications'
18:30:49 gnome-shell: loading default theme (Adwaita)
18:30:48 dbus-daemon: [session uid=1000 pid=1148] Successfully activated service 'org.freedesktop.portal.IBus'
18:30:48 gnome-shell: Will monitor session 1
18:30:48 gsd-media-keys: Failed to grab accelerators: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.gnome.Shell” on object at path /org/gnome/Shell
18:30:48 Xorg: (--) modeset(0): HDMI max TMDS frequency 225000KHz
18:30:48 systemd: Starting GNOME Shell on X11...
18:30:48 gnome-shell: #1 7fffea7eb520 b self-hosted:850 (2da5079bfa60 @ 454)
18:30:29 systemd: gnome-terminal-server.service: Succeeded.
18:30:20 dbus-daemon: [session uid=1000 pid=1148] Successfully activated service 'org.gnome.Logs'
18:30:19 gnome-shell: Wrong number of result metas returned by search provider org.gnome.seahorse.Application.desktop: expected 1 but got 0
18:30:19 dbus-daemon: [session uid=1000 pid=1148] Successfully activated service 'org.gnome.seahorse.Application'
18:30:19 systemd: Started GNOME Terminal Server.
18:30:19 dbus-daemon: [session uid=1000 pid=1148] Successfully activated service 'org.gnome.Terminal'
18:30:19 gnome-shell: Can't update stage views actor ClutterText is on because it needs an allocation.
18:30:19 dbus-daemon: [session uid=1000 pid=1148] Successfully activated service 'org.gnome.Calculator.SearchProvider'
18:30:19 systemd: Starting GNOME Terminal Server...
18:30:19 dbus-daemon: [session uid=1000 pid=1148] Activating via systemd: service name='org.gnome.Terminal' unit='gnome-terminal-server.service' requested by ':1.212' (uid=1000 pid=46789 comm="/usr/bin/gnome-shell ")
18:30:01 cron: pam_unix(cron:session): session closed for user root
18:29:58 pkexec: gwolf2u: Executing command [USER=root] [TTY=unknown] [CWD=/home/gwolf2u] [COMMAND=/usr/libexec/gvfsd-admin --spawner :1.4 /org/gtk/gvfs/exec_spaw/5 --address unix:path=/run/user/1000/bus]
18:29:01 Xorg: (EE) event11 - G-SPY USB Gaming Mouse: client bug: event processing lagging behind by 13ms, your system is too slow
18:27:56 dbus-daemon: [session uid=1000 pid=1148] Successfully activated service 'org.gnome.Nautilus'
18:27:48 gnome-shell: value "-inf" of type 'gfloat' is invalid or out of range for property 'height' of type 'gfloat'
18:27:03 systemd: app-gnome-gnome\x2dcontrol\x2dcenter-46971.scope: Succeeded.
18:26:56 code: �[90m[main 2020-12-03T16:26:56.632Z]�[0m update#setState idle
18:26:46 Xorg: (--) modeset(0): HDMI max TMDS frequency 225000KHz
18:26:46 gnome-shell: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10).
18:26:46 Xorg: (--) modeset(0): HDMI max TMDS frequency 225000KHz
18:26:41 systemd: Started Application launched by gnome-shell.
18:26:39 Xorg: (EE) event11 - G-SPY USB Gaming Mouse: WARNING: log rate limit exceeded (5 msgs per 60s). Discarding future messages.
18:26:39 gnome-shell: Registering session with GDM
18:26:39 Xorg: (--) modeset(0): HDMI max TMDS frequency 225000KHz
18:26:38 gnome-shell: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10).
18:26:38 gsd-media-keys: Failed to grab accelerator for keybinding settings:rfkill
18:26:38 dbus-daemon: [session uid=1000 pid=1148] Successfully activated service 'org.freedesktop.FileManager1'
18:26:38 gnome-shell: Error looking up permission: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for geolocation
18:26:38 systemd: Started GNOME Shell on X11.
18:26:38 dbus-daemon: [session uid=1000 pid=1148] Successfully activated service 'org.gnome.Shell.Notifications'
18:26:37 gnome-shell: loading default theme (Adwaita)
18:26:37 dbus-daemon: [session uid=1000 pid=1148] Successfully activated service 'org.freedesktop.portal.IBus'
18:26:37 gnome-shell: Will monitor session 1
18:26:37 gsd-media-keys: Failed to grab accelerators: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.gnome.Shell” on object at path /org/gnome/Shell
18:26:37 Xorg: (--) modeset(0): HDMI max TMDS frequency 225000KHz
18:26:37 systemd: Starting GNOME Shell on X11...
18:26:31 gnome-shell: #1 7ffe22b76110 b self-hosted:850 (3ab9b55bfa60 @ 454)
18:26:29 code: (node:46681) Electron: Loading non-context-aware native module in renderer: '/usr/share/code/resources/app/node_modules.asar.unpacked/spdlog/build/Release/spdlog.node'. This is deprecated, see https://github.com/electron/electron/issues/18397.
18:26:28 Xorg: (EE) event11 - G-SPY USB Gaming Mouse: client bug: event processing lagging behind by 12ms, your system is too slow
18:26:27 code: (node:46583) Electron: Loading non-context-aware native module in renderer: '/usr/share/code/resources/app/node_modules.asar.unpacked/spdlog/build/Release/spdlog.node'. This is deprecated, see https://github.com/electron/electron/issues/18397.
18:26:26 bash: bash: no job control in this shell
18:26:26 gnome-shell: Can't update stage views actor ClutterClone is on because it needs an allocation.
18:26:26 code: �[90m[main 2020-12-03T16:26:26.550Z]�[0m update#setState idle
18:26:26 systemd: Started Application launched by gnome-shell.
18:26:25 gnome-shell: Wrong number of result metas returned by search provider org.gnome.seahorse.Application.desktop: expected 1 but got 0
18:26:25 dbus-daemon: [session uid=1000 pid=1148] Successfully activated service 'org.gnome.seahorse.Application'
18:26:25 systemd: Started GNOME Terminal Server.
18:26:25 dbus-daemon: [session uid=1000 pid=1148] Successfully activated service 'org.gnome.Terminal'
18:26:25 gnome-shell: Can't update stage views actor ClutterText is on because it needs an allocation.
18:26:25 dbus-daemon: [session uid=1000 pid=1148] Successfully activated service 'org.gnome.Nautilus'
18:26:25 systemd: Starting GNOME Terminal Server...
18:26:25 dbus-daemon: [session uid=1000 pid=1148] Activating via systemd: service name='org.gnome.Terminal' unit='gnome-terminal-server.service' requested by ':1.167' (uid=1000 pid=44837 comm="/usr/bin/gnome-shell ")
18:26:24 gnome-shell: value "-inf" of type 'gfloat' is invalid or out of range for property 'height' of type 'gfloat'
18:26:23 Xorg: (EE) event11 - G-SPY USB Gaming Mouse: client bug: event processing lagging behind by 12ms, your system is too slow
18:26:20 gnome-shell: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10).
18:26:20 Xorg: (--) modeset(0): HDMI max TMDS frequency 225000KHz
18:24:59 systemd: app-gnome-code-42942.scope: Succeeded.
18:24:52 code: �[90m[main 2020-12-03T16:24:52.553Z]�[0m update#setState idle
18:24:39 gnome-shell: Registering session with GDM
18:24:38 Xorg: (--) modeset(0): HDMI max TMDS frequency 225000KHz
18:24:38 gnome-shell: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10).
18:24:38 gsd-media-keys: Failed to grab accelerator for keybinding settings:playback-random
18:24:37 dbus-daemon: [session uid=1000 pid=1148] Successfully activated service 'org.freedesktop.FileManager1'
18:24:37 gnome-shell: Error looking up permission: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for geolocation
18:24:37 systemd: Started GNOME Shell on X11.
18:24:37 dbus-daemon: [session uid=1000 pid=1148] Successfully activated service 'org.gnome.Shell.Notifications'
18:24:37 gnome-shell: loading default theme (Adwaita)
18:24:37 dbus-daemon: [session uid=1000 pid=1148] Successfully activated service 'org.freedesktop.portal.IBus'
18:24:37 gnome-shell: Will monitor session 1
18:24:36 gsd-media-keys: Failed to grab accelerators: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.gnome.Shell” on object at path /org/gnome/Shell
18:24:36 Xorg: (--) modeset(0): HDMI max TMDS frequency 225000KHz
18:24:36 systemd: Starting GNOME Shell on X11...
18:24:29 gnome-shell: #1 7ffc97b0c2f0 b self-hosted:850 (3ad7c2fbfa60 @ 454)
18:24:28 systemd: tracker-store.service: Succeeded.
18:24:28 tracker-store: OK
18:24:25 code: (node:43114) Electron: Loading non-context-aware native module in renderer: '/usr/share/code/resources/app/node_modules.asar.unpacked/spdlog/build/Release/spdlog.node'. This is deprecated, see https://github.com/electron/electron/issues/18397.
18:24:22 bash: bash: no job control in this shell
18:24:22 code: �[90m[main 2020-12-03T16:24:22.479Z]�[0m update#setState idle
18:24:21 systemd: Started Application launched by gnome-shell.
18:24:21 gnome-shell: Wrong number of result metas returned by search provider org.gnome.seahorse.Application.desktop: expected 1 but got 0
18:24:21 dbus-daemon: [session uid=1000 pid=1148] Successfully activated service 'org.gnome.seahorse.Application'
18:24:21 systemd: Started GNOME Terminal Server.
18:24:21 dbus-daemon: [session uid=1000 pid=1148] Successfully activated service 'org.gnome.Terminal'
18:24:21 systemd: Started GnuPG cryptographic agent and passphrase cache.
18:24:21 gnome-shell: Can't update stage views actor ClutterText is on because it needs an allocation.
18:24:21 dbus-daemon: [session uid=1000 pid=1148] Successfully activated service 'org.gnome.Nautilus'
18:24:21 gnome-shell: Can't update stage views actor ClutterActor is on because it needs an allocation.
18:24:21 gpg-agent: listening on: std=6 extra=4 browser=3 ssh=5
18:24:21 gnome-shell: Can't update stage views actor StIcon is on because it needs an allocation.
18:24:21 dbus-daemon: [session uid=1000 pid=1148] Successfully activated service 'org.gnome.Calculator.SearchProvider'
18:24:21 gnome-shell: Can't update stage views actor StBoxLayout is on because it needs an allocation.
18:24:21 dbus-daemon: [session uid=1000 pid=1148] Successfully activated service 'org.gnome.Characters.BackgroundService'
18:24:21 systemd: Starting GNOME Terminal Server...
18:24:21 dbus-daemon: [session uid=1000 pid=1148] Activating via systemd: service name='org.gnome.Terminal' unit='gnome-terminal-server.service' requested by ':1.116' (uid=1000 pid=1418 comm="/usr/bin/gnome-shell ")
18:24:20 gnome-shell: value "-inf" of type 'gfloat' is invalid or out of range for property 'height' of type 'gfloat'
18:24:07 dbus-daemon: [session uid=1000 pid=1148] Successfully activated service 'org.gnome.ChromeGnomeShell'
18:24:06 systemd: Started Application launched by gnome-shell.
18:24:02 sudo: pam_unix(sudo:session): session closed for user root
18:24:01 systemd: tracker-extract.service: Succeeded.
18:23:46 dbus-daemon: [session uid=1000 pid=1148] Successfully activated service 'org.freedesktop.Tracker1.Miner.Extract'
18:23:46 tracker-extract: Setting priority nice level to 19
18:23:46 systemd: Starting Tracker metadata extractor...
18:23:46 dbus-daemon: [session uid=1000 pid=1148] Activating via systemd: service name='org.freedesktop.Tracker1.Miner.Extract' unit='tracker-extract.service' requested by ':1.2' (uid=1000 pid=1136 comm="/usr/libexec/tracker-miner-fs ")
18:23:45 systemd: Started Tracker metadata database store and lookup manager.
18:23:45 dbus-daemon: [session uid=1000 pid=1148] Successfully activated service 'org.freedesktop.Tracker1'
18:23:45 systemd: Starting Tracker metadata database store and lookup manager...
18:23:45 dbus-daemon: [session uid=1000 pid=1148] Activating via systemd: service name='org.freedesktop.Tracker1' unit='tracker-store.service' requested by ':1.2' (uid=1000 pid=1136 comm="/usr/libexec/tracker-miner-fs ")
18:23:28 systemd: app-gnome-firefox-22589.scope: Succeeded.
18:23:28 firefox: ###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
18:23:27 gnome-shell: Some code accessed the property 'discreteGpuAvailable' on the module 'appDisplay'. That property was defined with 'let' or 'const' inside the module. This was previously supported, but is not correct according to the ES6 standard. Any symbols to be exported from a module must be defined with 'var'. The property access will work as previously for the time being, but please fix your code anyway.
18:23:25 sudo: pam_unix(sudo:session): session opened for user root by (uid=0)
18:23:05 systemd: app-gnome-org.gnome.Terminal-38545.scope: Succeeded.
18:23:05 dbus-daemon: [session uid=1000 pid=1148] Successfully activated service 'org.gnome.Terminal'
18:23:04 systemd: Starting GNOME Terminal Server...
18:23:04 dbus-daemon: [session uid=1000 pid=1148] Activating via systemd: service name='org.gnome.Terminal' unit='gnome-terminal-server.service' requested by ':1.134' (uid=1000 pid=38547 comm="/usr/bin/gnome-terminal.real --window ")
18:23:04 systemd: Started Application launched by gnome-shell.
18:17:01 cron: pam_unix(cron:session): session closed for user root
18:16:12 Xorg: (--) modeset(0): HDMI max TMDS frequency 225000KHz
18:13:04 pkexec: gwolf2u: Executing command [USER=root] [TTY=unknown] [CWD=/home/gwolf2u] [COMMAND=/usr/lib/update-notifier/package-system-locked]
18:11:45 Xorg: (--) modeset(0): HDMI max TMDS frequency 225000KHz
18:03:01 dbus-daemon: [session uid=1000 pid=1148] Activated service 'org.freedesktop.FileManager1' failed: Process org.freedesktop.FileManager1 exited with status 1
18:03:01 nautilus: Failed to register: Unable to acquire bus name 'org.gnome.Nautilus'
18:03:01 dbus-daemon: [session uid=1000 pid=1148] Successfully activated service 'org.gnome.Nautilus'
18:03:00 gnome-shell: Registering session with GDM
18:03:00 gsd-media-keys: Failed to grab accelerator for keybinding settings:playback-repeat
18:03:00 gnome-shell: Error looking up permission: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for geolocation
18:03:00 dbus-daemon: [session uid=1000 pid=1148] Successfully activated service 'org.gnome.Shell.Notifications'
18:03:00 gnome-shell: loading default theme (Adwaita)
18:02:59 ibus-daemon: current session already has an ibus-daemon.
18:02:59 gnome-shell: Will monitor session 1
18:02:59 gsd-media-keys: Failed to grab accelerators: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.gnome.Shell” on object at path /org/gnome/Shell
18:02:59 Xorg: (--) modeset(0): HDMI max TMDS frequency 225000KHz
18:02:59 gnome-shell: JS ERROR: TypeError: actor.get_meta_window() is null
_destroyWindowDone@resource:///org/gnome/shell/ui/windowManager.js:1616:32
onStopped@resource:///org/gnome/shell/ui/windowManager.js:1586:39
_makeEaseCallback/<@resource:///org/gnome/shell/ui/environment.js:82:22
_easeActor/<@resource:///org/gnome/shell/ui/environment.js:165:64
_initializeUI/<@resource:///org/gnome/shell/ui/main.js:251:16

18:02:52 unzip: extracting: /<email address hidden>/metadata.json
18:02:50 dbus-daemon: [session uid=1000 pid=1148] Successfully activated service 'org.freedesktop.FileManager1'

Not sure if proper log, but can provide others if needed.

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

Thank you for taking the time to report this bug and helping to make Ubuntu better. It sounds like some part of the system has crashed. To help us find the cause of the crash please follow these steps:

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.

3. If step 2 also failed then apply the workaround from bug 994921, reboot, reproduce the crash, and retry step 1.

Please take care to avoid attaching .crash files to bugs as we are unable to process them as file attachments. It would also be a security risk for yourself.

tags: added: groovy
Changed in gnome-shell (Ubuntu):
status: New → Incomplete
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Also, next time the crash happens please reboot and then run:

  journalctl -b-1 > prevboot.txt

and attach the resulting text file here.

Revision history for this message
Gwolf2u (gwolf2u-website) wrote :

I have apparently some bugs sent to server at following urls with code (vscode process) and gnome-shell crashes
https://errors.ubuntu.com/oops/4848883c-3ad3-11eb-87b7-fa163e6cac46 - gnome-shell
https://errors.ubuntu.com/oops/ddc0efe8-3ad4-11eb-8a50-fa163ee63de6 - code

for some reason opening bug report windows doesn't send new logs for this so can't read any new id
also have included prevboot.txt file as attachment here

if any more data is needed, let me know as issue can be easy to reproduce

Revision history for this message
Gwolf2u (gwolf2u-website) wrote :
Revision history for this message
Gwolf2u (gwolf2u-website) wrote :

fresh new crash
https://errors.ubuntu.com/oops/4fc4b14f-3af3-11eb-90c1-fa163e983629
https://errors.ubuntu.com/oops/71396256-3af6-11eb-90c2-fa163e983629

what I noticed is that vscode needs to be maximized when minimize to dock
so open a file in vscode, maximize vscode, minimize to dock, try to open another file -> crash of gnome-shell

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

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 1897765, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.

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

Other bug subscribers

Bug attachments

Remote bug watches

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