GNOME Bugzilla – Bug 743401
[window-list] Gjs-WARNING **: JS ERROR: TypeError: app is null
Last modified: 2015-02-20 17:29:55 UTC
When running window-list (most recent version as of today) under gnome-shell 3.14.3 I get this printed to stdout/syslog: (gnome-shell:1899): Gjs-WARNING **: JS ERROR: TypeError: app is null WindowTitle<._init@/usr/share/gnome-shell/extensions/window-list@gnome-shell-extensions.gcampax.github.com/extension.js:147 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 _Base.prototype._construct@resource:///org/gnome/gjs/modules/lang.js:110 Class.prototype._construct/newClass@resource:///org/gnome/gjs/modules/lang.js:204 AppButton<._windowsChanged@/usr/share/gnome-shell/extensions/window-list@gnome-shell-extensions.gcampax.github.com/extension.js:485 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 AppButton<._init@/usr/share/gnome-shell/extensions/window-list@gnome-shell-extensions.gcampax.github.com/extension.js:436 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 _Base.prototype._construct@resource:///org/gnome/gjs/modules/lang.js:110 Class.prototype._construct/newClass@resource:///org/gnome/gjs/modules/lang.js:204 WindowList<._addApp@/usr/share/gnome-shell/extensions/window-list@gnome-shell-extensions.gcampax.github.com/extension.js:996 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 WindowList<._onAppStateChanged@/usr/share/gnome-shell/extensions/window-list@gnome-shell-extensions.gcampax.github.com/extension.js:990 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 (gnome-shell:1899): Gjs-WARNING **: JS ERROR: TypeError: app is null WindowTitle<._init@/usr/share/gnome-shell/extensions/window-list@gnome-shell-extensions.gcampax.github.com/extension.js:147 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 _Base.prototype._construct@resource:///org/gnome/gjs/modules/lang.js:110 Class.prototype._construct/newClass@resource:///org/gnome/gjs/modules/lang.js:204 AppButton<._windowsChanged@/usr/share/gnome-shell/extensions/window-list@gnome-shell-extensions.gcampax.github.com/extension.js:485 wrapper@resource:///org/gnome/gjs/modules/lang.js:169
Created attachment 295281 [details] [review] window-list: Fix for "app-less" windows While rare, it is possible to have a window not associated with any app (not even a fake window-based one). We currently throw an error when trying to set the icon for such a window, so handle this case and use a fallback icon instead of the app icon. (I should add that I don't have a reproducer here, so this code is untested)
Review of attachment 295281 [details] [review]: looks good
Attachment 295281 [details] pushed as 93a1fd0 - window-list: Fix for "app-less" windows