GNOME Bugzilla – Bug 766823
alternatetab extension does not switch windows in case of bad window title
Last modified: 2016-05-23 23:35:55 UTC
Created attachment 328406 [details] mpv window with bad title Fedora 23 x86_64 gnome-shell-3.18.5-1.fc23.x86_64 with alternatetab extension mpv-0.17.0-1.fc23.x86_64 The attached avi file seems to contain tags encoded in CP1251. $ vlc a.avi vlc window title contains some Latin characters with umlauts, accents, etc but everything works. $ mplayer -identify a.avi ... Title: ������� �������� �1. ID_CLIP_INFO_NAME1=Title ID_CLIP_INFO_VALUE1=������� �������� �1. ... Note «�» characters in mplayer output — it seems mplayer interprets movie title as UTF-8, but it contains byte sequence which is incorrect for UTF-8. However, mplayer window title is just "MPlayer", so everything works. $ mpv a.avi mpv window title contains series of squares with "FF FD" inside (see attached picture), everything works, but Alt+Tab does NOT switch windows until the window is closed. While the mpv window is open, it is still possible to switch windows with mouse though. gnome shell error messages: ---------------------------------------------------------------------- Window manager warning: Property _NET_WM_NAME on window 0xa00002 contained invalid UTF-8 (gnome-shell:3811): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text() (gnome-shell:3811): Gjs-WARNING **: JS ERROR: Error: Failed to convert UTF-8 string to JS string: Invalid byte sequence in conversion input WindowIcon<._init@resource:///org/gnome/shell/ui/altTab.js:678 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<._init@resource:///org/gnome/shell/ui/altTab.js:740 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 WindowSwitcherPopup<._init@resource:///org/gnome/shell/ui/altTab.js:371 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 WindowManager<._startWindowSwitcher@resource:///org/gnome/shell/ui/windowManager.js:1755 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 (gnome-shell:3811): Gjs-WARNING **: JS ERROR: TypeError: this._switcherList is null SwitcherPopup<._allocate@resource:///org/gnome/shell/ui/switcherPopup.js:94 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 LayoutManager<._init/<@resource:///org/gnome/shell/ui/layout.js:204 ---------------------------------------------------------------------- If alternatetab extension is disabled, Alt+Tab works, and gnome shell prints only few messages: ---------------------------------------------------------------------- Window manager warning: Property _NET_WM_NAME on window 0xa00002 contained invalid UTF-8 (gnome-shell:3811): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text() ---------------------------------------------------------------------- Oops, sorry — cannot attach a.avi file due to size limit.
A window with bad title is a problem not only for alternatetab extension. Gnome shell does not like it as well. If such a window is open, pressing Meta (aka Win) key causes gnome shell to die. I'll attach gnome-shell output as a separate file.
Created attachment 328408 [details] Gnome shell output
Thanks for taking the time to report this. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of bug 752788 ***