qtile
qtile copied to clipboard
parse_markup failing on focus_change hook
The bug:
@elParaguayo asked me to open a new issue about this in #2940.
It happens in a few widgets, parse_markup()
raises an exception in the focus_change
hook.
qtile version
0.18.1
Relevant log
2021-10-23 15:00:24,643 ERROR libqtile hook.py:fire():L382 Error in hook focus_change
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/libqtile/hook.py", line 380, in fire
i(*args, **kwargs)
File "/usr/lib/python3.9/site-packages/libqtile/widget/windowname.py", line 90, in hook_response
self.update(pangocffi.markup_escape_text(unescaped))
File "/usr/lib/python3.9/site-packages/libqtile/widget/base.py", line 469, in update
self.text = text
File "/usr/lib/python3.9/site-packages/libqtile/widget/base.py", line 361, in text
self.layout.text = self.formatted_text
File "/usr/lib/python3.9/site-packages/libqtile/drawer.py", line 71, in text
attrlist, value, accel_char = pangocffi.parse_markup(value)
File "/usr/lib/python3.9/site-packages/libqtile/pangocffi.py", line 183, in parse_markup
raise Exception("parse_markup() failed for %s" % value)
Exception: parse_markup() failed for b'Question / Help - Mouse cursor doesn&apo\xe2\x80\xa6'
- [x] I have searched past issues to see if this bug has already been reported.
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days.
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days.
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days.