gwui.py:909:set_overlay_text:AttributeError: 'InputTextView' object has no attribute 'pango_overlay'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gwibber |
Won't Fix
|
Medium
|
Unassigned | ||
gwibber-midgard-backend |
New
|
Undecided
|
Unassigned |
Bug Description
First reported here: https:/
gwibber tracebacked on a user like this:
Traceback (most recent call last):
File "/usr/lib/
on_input_changed
self.
File "/usr/lib/
set_overlay_text
self.
text))
AttributeError: 'InputTextView' object has no attribute 'pango_overlay'
Looking at the code, there are three ways that set_overlay_text gets called:
1. as part of gwui.py:expose_view
2. as part of client.
3. as part of lib/gtk/
This specific traceback happens as result of codepath #2. When it gets called before expose_view is called, pango_overlay doesn't exist. The solution looks to either be to always call expose_view before on_input_changed, or to simply make sure that pango_overlay is created before we try to use it.
I've attached a patch which does the latter.
Related branches
Changed in gwibber: | |
importance: | Undecided → Medium |
milestone: | none → 2.91.2 |
status: | New → Confirmed |
The fix is not right.
Traceback (most recent call last): python2. 6/dist- packages/ gwibber/ client. py", line 475, in on_input_changed input.textview. set_overlay_ text(str( MAX_MESSAGE_ LENGTH - cnt)) python2. 6/dist- packages/ gwibber/ gwui.py" , line 958, in set_overlay_text
File "/usr/lib/
self.
File "/usr/lib/
if not self.pango_overlay:
AttributeError: 'InputTextView' object has no attribute 'pango_overlay'