Clutter.DeviceManager.get_default().get_core_device(Clutter.InputDeviceType.KEYBOARD_DEVICE) occasionally returns null
As instructed here, I'm here to report that in the following (TypeScript) code snippet in slinger
let dm = Clutter.DeviceManager.get_default();
this._pointerDevice = dm.get_core_device(Clutter.InputDeviceType.POINTER_DEVICE);
this._keyboardDevice = dm.get_core_device(Clutter.InputDeviceType.KEYBOARD_DEVICE);
this._pointerDevice.grab(backgroundActor);
this._keyboardDevice.grab(backgroundActor);
I occasionally get the error message:
Sep 16 12:15:15 bolt gnome-shell[3431]: [slinger]:Error: TypeError: this._keyboardDevice is null
I haven't fully determined the circumstances under which it happens, but it seems to be associated with keyboard hotplug events. (that, for me, often happen in conjunction with suspend/resume). @verdre suggested I report this issue here.
x-ref: https://github.com/timbertson/slinger/issues/19
-- System Information: Debian Release: bullseye/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'unstable'), (500, 'stable'), (1, 'experimental-debug'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386Kernel: Linux 5.2.0-2-amd64 (SMP w/4 CPU cores) Kernel taint flags: TAINT_USER, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled
Versions of packages gnome-shell depends on: ii dconf-gsettings-backend [gsettings-backend] 0.34.0-1 ii evolution-data-server 3.32.0-1 ii gconf-gsettings-backend [gsettings-backend] 3.2.6-5 ii gir1.2-accountsservice-1.0 0.6.45-2 ii gir1.2-atspi-2.0 2.34.0-1 ii gir1.2-freedesktop 1.62.0-1 ii gir1.2-gcr-3 3.33.4-1 ii gir1.2-gdesktopenums-3.0 3.34.0-1 ii gir1.2-gdm-1.0 3.34.0-1 ii gir1.2-geoclue-2.0 2.5.3-1 ii gir1.2-glib-2.0 1.62.0-1 ii gir1.2-gnomebluetooth-1.0 3.34.0-1 ii gir1.2-gnomedesktop-3.0 3.34.0-1 ii gir1.2-gtk-3.0 3.24.11-1 ii gir1.2-gweather-3.0 3.33.0-1 ii gir1.2-ibus-1.0 1.5.21-1~exp2 ii gir1.2-mutter-5 3.34.0-1 ii gir1.2-nm-1.0 1.20.2-1 ii gir1.2-nma-1.0 1.8.22-2 ii gir1.2-pango-1.0 1.44.6-1 ii gir1.2-polkit-1.0 0.116-2 ii gir1.2-rsvg-2.0 2.44.14-1 ii gir1.2-soup-2.4 2.67.92-2 ii gir1.2-upowerglib-1.0 0.99.11-1 ii gjs 1.58.0-1 ii gnome-backgrounds 3.34.0-1 ii gnome-settings-daemon 3.34.0-1 ii gnome-shell-common 3.34.0-1 ii gsettings-desktop-schemas 3.34.0-1 ii libatk-bridge2.0-0 2.34.0-2 ii libatk1.0-0 2.34.0-1 ii libc6 2.29-1 ii libcairo2 1.16.0-4 ii libcroco3 0.6.13-1 ii libecal-2.0-1 3.33.91-3 ii libedataserver-1.2-24 3.32.0-1 ii libgcr-base-3-1 3.33.4-1 ii libgdk-pixbuf2.0-0 2.39.2-3 ii libgirepository-1.0-1 1.62.0-1 ii libgjs0g 1.58.0-1 ii libgles2 1.1.0-1+b1 ii libglib2.0-0 2.62.0-1 ii libglib2.0-bin 2.62.0-1 ii libgnome-autoar-0-0 0.2.3-2 ii libgstreamer1.0-0 1.16.0-3 ii libgtk-3-0 3.24.11-1 ii libical3 3.0.5-2 ii libjson-glib-1.0-0 1.4.4-2 ii libmutter-5-0 3.34.0-1 ii libnm0 1.20.2-1 ii libpango-1.0-0 1.44.6-1 ii libpangocairo-1.0-0 1.44.6-1 ii libpolkit-agent-1-0 0.116-2 ii libpolkit-gobject-1-0 0.116-2 ii libpulse-mainloop-glib0 12.99.2-1 ii libpulse0 12.99.2-1 ii libsecret-1-0 0.18.8-2 ii libsystemd0 242-7 ii libwayland-server0 1.17.0-1 ii libx11-6 2:1.6.7-1 ii libxfixes3 1:5.0.3-1 ii mutter 3.34.0-1 ii python3 3.7.3-1
Versions of packages gnome-shell recommends: ii bolt 0.7-2 ii chrome-gnome-shell 10.1-5 ii gdm3 3.34.0-1 ii gkbd-capplet 3.26.1-1 ii gnome-control-center 1:3.34.0.1-1 ii gnome-user-docs 3.30.2-1 pn ibus ii iio-sensor-proxy 2.4-2+b1 ii switcheroo-control 1.3.1-2 ii unzip 6.0-25
Versions of packages gnome-shell suggests: ii gir1.2-telepathyglib-0.12 0.24.1-2+b1 ii gir1.2-telepathylogger-0.2 0.8.2-3+b1
Versions of packages gnome-session depends on: ii gnome-session-bin 3.33.92-1 ii gnome-session-common 3.33.92-1 ii gnome-settings-daemon 3.34.0-1
Versions of packages gnome-session suggests: ii desktop-base 10.0.3 ii gnome-keyring 3.31.91-1
Versions of packages gnome-settings-daemon depends on: ii gnome-settings-daemon-common 3.34.0-1 ii gsettings-desktop-schemas 3.34.0-1 ii libasound2 1.1.8-1 ii libc6 2.29-1 ii libcairo2 1.16.0-4 ii libcanberra-gtk3-0 0.30-7 ii libcanberra0 0.30-7 ii libcolord2 1.4.3-4 ii libcups2 2.3.0-3 ii libfontconfig1 2.13.1-2+b1 ii libgcr-base-3-1 3.33.4-1 ii libgdk-pixbuf2.0-0 2.39.2-3 ii libgeoclue-2-0 2.5.3-1 ii libgeocode-glib0 3.26.1-1 ii libglib2.0-0 2.62.0-1 ii libgnome-desktop-3-17 3.32.2-1 ii libgtk-3-0 3.24.11-1 ii libgudev-1.0-0 232-2 ii libgweather-3-15 3.32.1-1 ii liblcms2-2 2.9-3+b1 ii libmm-glib0 1.10.4-0.1 ii libnm0 1.20.2-1 ii libnotify4 0.7.8-1 ii libnspr4 2:4.21-2 ii libnss3 2:3.45-1 ii libpam-systemd 242-7 ii libpango-1.0-0 1.44.6-1 ii libpangocairo-1.0-0 1.44.6-1 ii libpolkit-gobject-1-0 0.116-2 ii libpulse-mainloop-glib0 12.99.2-1 ii libpulse0 12.99.2-1 ii libupower-glib3 0.99.11-1 ii libwacom2 0.32-1 ii libwayland-client0 1.17.0-1 ii libx11-6 2:1.6.7-1 ii libxext6 2:1.3.3-1+b2 ii libxi6 2:1.7.9-1
Versions of packages gnome-settings-daemon recommends: ii iio-sensor-proxy 2.4-2+b1 ii pulseaudio 12.99.2-1
Versions of packages libgjs0g depends on: ii gir1.2-glib-2.0 1.62.0-1 ii libc6 2.29-1 ii libcairo-gobject2 1.16.0-4 ii libcairo2 1.16.0-4 ii libffi6 3.2.1-9 ii libgcc1 1:9.2.1-8 ii libgirepository-1.0-1 1.62.0-1 ii libglib2.0-0 2.62.0-1 ii libmozjs-60-0 60.2.3-3+b1 ii libreadline8 8.0-3 ii libstdc++6 9.2.1-8 ii libx11-6 2:1.6.7-1
Versions of packages gnome-shell is related to: ii libegl-mesa0 [libegl-vendor] 19.1.6-1 ii libgl1-mesa-dri 19.1.6-1 ii libglx-mesa0 [libglx-vendor] 19.1.6-1
-- no debconf information