[pygtk] gtk_text_layout_real_invalidate: assertion
`layout->wrap_loop_count == 0' failed
N. French
nbm_clan at yahoo.com
Thu Aug 10 23:31:12 WST 2006
In my multi-threaded GTK app I see this at startup:
nw_gtk.py:68: GtkWarning: gtk_text_layout_real_invalidate: assertion
`layout->wrap_loop_count == 0' failed
The line it refers to is the insert() call in the below function.
def push(self, text):
"""Writes text to the buffer."""
end_iter = self.buffer.get_end_iter()
self.buffer.insert(end_iter, text)
self.tv.scroll_to_mark(self.buffer.get_insert(), 0)
self.buffer here is a gtk.TextBuffer from a gtk.TextView. The TextView
is set to wrap lines.
This is on GTK 2.6:
gtk2-2.6.7-4
pygtk2-2.6.0-2
pygtk2-devel-2.6.0-2
Any ideas? I didn't find anything googling this error. Well, a lot of
people have this problem but I didn't find any solution other than to
call gtk.threads_enter and gtk.threads_leave around GTK calls in
threads (which I am doing).
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the pygtk
mailing list