After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 766823 - alternatetab extension does not switch windows in case of bad window title
alternatetab extension does not switch windows in case of bad window title
Status: RESOLVED DUPLICATE of bug 752788
Product: gnome-shell
Classification: Core
Component: extensions
3.18.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2016-05-23 20:36 UTC by van.de.bugger
Modified: 2016-05-23 23:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
mpv window with bad title (350.52 KB, image/png)
2016-05-23 20:36 UTC, van.de.bugger
Details
Gnome shell output (3.61 KB, text/x-log)
2016-05-23 20:48 UTC, van.de.bugger
Details

Description van.de.bugger 2016-05-23 20:36:08 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.
Comment 1 van.de.bugger 2016-05-23 20:46:46 UTC
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.
Comment 2 van.de.bugger 2016-05-23 20:48:23 UTC
Created attachment 328408 [details]
Gnome shell output
Comment 3 Florian Müllner 2016-05-23 23:35:55 UTC
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 ***