qtile icon indicating copy to clipboard operation
qtile copied to clipboard

parse_markup failing on focus_change hook

Open shinobu-uwu opened this issue 3 years ago • 2 comments

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.

shinobu-uwu avatar Nov 01 '21 16:11 shinobu-uwu

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.

github-actions[bot] avatar Feb 06 '22 00:02 github-actions[bot]

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.

github-actions[bot] avatar May 07 '22 08:05 github-actions[bot]

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.

github-actions[bot] avatar Nov 03 '22 12:11 github-actions[bot]