https://bugs.kde.org/show_bug.cgi?id=457521

--- Comment #1 from Bernhard Rosenkränzer <b...@lindev.ch> ---
If I change
https://invent.kde.org/plasma/plasma-desktop/-/blob/master/applets/kimpanel/backend/ibus/emojier/emojierplugin.cpp#L116
to "continue;", the problem goes away.
Apparently there's a non-emoji object at the very beginning of emoji-en.dict,
and skipping over it allows the remaining bits and pieces to work.

This may well be related to the other error spewed just ahead:
(process:1601754): IBUS-CRITICAL **: 14:12:06.861:
ibus_serializable_deserialize_object: assertion 'g_type_is_a (type,
IBUS_TYPE_SERIALIZABLE)' failed

Something non-serializable at the beginning of the dictionary, before the data
we're interested in.

I don't know the file format of those dictionaries, but xxd looks like the
dictionary starts with an empty IBusEmojiData followed by the real ones.
00000000: 4942 7573 456d 6f6a 6944 6174 6100 0500  IBusEmojiData...
00000010: 4942 7573 456d 6f6a 6944 6174 6100 0000  IBusEmojiData...
00000020: f09f 9880 0000 0000 0400 0000 6661 6365  ............face
00000030: 0073 6d69 6c69 6e67 0067 7269 6e6e 696e  .smiling.grinnin
00000040: 6720 6661 6365 0067 7269 6e00 6772 696e  g face.grin.grin
00000050: 6e69 6e67 2066 6163 6500 536d 696c 6579  ning face.Smiley
00000060: 7320 2620 456d 6f74 696f 6e00 4a3c 3729  s & Emotion.J<7)
00000070: 2115 100e 0028 7361 7b73 767d 7375 7373  !....(sa{sv}suss
00000080: 7373 7373 2900 0000 4942 7573 456d 6f6a  ssss)...IBusEmoj
[...]

Note the first line of xxd output.

Since it can't hurt to skip over invalid(?) or misinterpreted data, I'll add
this patch to our package for now.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to