Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI doesn't come up #148

Open
tebeka opened this issue Jan 17, 2024 · 4 comments
Open

UI doesn't come up #148

tebeka opened this issue Jan 17, 2024 · 4 comments
Labels
bug Something isn't working upstream Issues caused by one of our dependencies

Comments

@tebeka
Copy link

tebeka commented Jan 17, 2024

Running gotraceui, the GUI does not come up.

$ gotraceui
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:39:34: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:40:29: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:41:29: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:42:29: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:43:29: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:44:27: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:45:27: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:46:27: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:47:27: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:48:29: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:49:29: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:49:29: too many errors
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:49:29: failed to parse file
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:39:34: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:40:29: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:41:29: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:42:29: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:43:29: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:44:27: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:45:27: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:46:27: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:47:27: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:48:29: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:49:29: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:49:29: too many errors
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:49:29: failed to parse file
2024/01/17 09:42:20 wayland: newXKB: xkb_compose_table_new_from_locale failed
$ echo $?
0

My system is Manjaro with Gnome (wayland) on amd64.
I've installed via go install.

@dominikh
Copy link
Owner

Can you share the output of env | grep -E "LC_ALL|LC_CTYPE|LANG" as well the output of head -50 /usr/share/X11/locale/iso8859-1/Compose?

@dominikh dominikh added the bug Something isn't working label Jan 17, 2024
@tebeka
Copy link
Author

tebeka commented Jan 17, 2024

$ env | grep -E "LC_ALL|LC_CTYPE|LANG"
LANG=en_IL
GDM_LANG=en_IL
$ head -50 /usr/share/X11/locale/iso8859-1/Compose
#
# ISO 8859-1 (Latin1) Compose Sequence
#
#
#
# Sequence Definition
#
# <Multi_key> Means <Compose>
# Special Character
<Multi_key> <plus> <plus>		: "#"	numbersign
<Multi_key> <apostrophe> <space>	: "'"	apostrophe
<Multi_key> <space> <apostrophe>	: "'"	apostrophe
<Multi_key> <A> <T>			: "@"	at
<Multi_key> <parenleft> <parenleft>	: "["	bracketleft
<Multi_key> <slash> <slash>		: "\\"	backslash
<Multi_key> <slash> <less>		: "\\"	backslash
<Multi_key> <less> <slash>		: "\\"	backslash
<Multi_key> <parenright> <parenright>	: "]"	bracketright
<Multi_key> <asciicircum> <space>	: "^"	asciicircum
<Multi_key> <space> <asciicircum>	: "^"	asciicircum
<Multi_key> <greater> <space>		: "^"	asciicircum
<Multi_key> <space> <greater>		: "^"	asciicircum
<Multi_key> <grave> <space>		: "`"	grave
<Multi_key> <space> <grave>		: "`"	grave
<Multi_key> <parenleft> <minus>		: "{"	braceleft
<Multi_key> <minus> <parenleft>		: "{"	braceleft
<Multi_key> <slash> <asciicircum>	: "|"	bar
<Multi_key> <asciicircum> <slash>	: "|"	bar
<Multi_key> <V> <L>			: "|"	bar
<Multi_key> <L> <V>			: "|"	bar
<Multi_key> <v> <l>			: "|"	bar
<Multi_key> <l> <v>			: "|"	bar
<Multi_key> <parenright> <minus>	: "}"	braceright
<Multi_key> <minus> <parenright>	: "}"	braceright
<Multi_key> <asciitilde> <space>	: "~"	asciitilde
<Multi_key> <space> <asciitilde>	: "~"	asciitilde
<Multi_key> <minus> <space>		: "~"	asciitilde
<Multi_key> <space> <minus>		: "~"	asciitilde
<Multi_key> <exclam> <exclam>		: "\241"	exclamdown
<Multi_key> <c> <slash>			: "\242"	cent
<Multi_key> <slash> <c>			: "\242"	cent
<Multi_key> <C> <slash>			: "\242"	cent
<Multi_key> <slash> <C>			: "\242"	cent
<Multi_key> <C> <bar>			: "\242"	cent
<Multi_key> <bar> <C>			: "\242"	cent
<Multi_key> <c> <bar>			: "\242"	cent
<Multi_key> <bar> <c>			: "\242"	cent
<Multi_key> <l> <minus>			: "\243"	sterling
<Multi_key> <minus> <l>			: "\243"	sterling
<Multi_key> <L> <minus>			: "\243"	sterling

@dominikh dominikh added the upstream Issues caused by one of our dependencies label Jan 17, 2024
@dominikh
Copy link
Owner

dominikh commented Jan 17, 2024

The easiest workaround would be to set LANG=en_IL.UTF-8 when launching Gotraceui. xkb_compose_table_new_from_locale seems to interpret en_IL as meaning en_IL.ISO8859-1 and then fails to parse the Compose file it finds because it contains non-UTF-8. I don't know how the rest of your system behaves wrt this and whether your system is actually set up to use ISO 8859-1 or UTF-8, and you may want to look into that, as some other software has issues similar to this.

In the meantime, I'll look into sending a patch to Gio to fail gracefully when it can't load the Compose table.

Related: xkbcommon/libxkbcommon#76

@tebeka
Copy link
Author

tebeka commented Jan 17, 2024

The easiest workaround would be to set LANG=en_IL.UTF-8 when launching Gotraceui.

That worked thanks! Feel free to close (in case you want to keep this around).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream Issues caused by one of our dependencies
Projects
None yet
Development

No branches or pull requests

2 participants