[pygtk] gtk_text_layout_real_invalidate:
assertion `layout->wrap_loop_count == 0' failed
Johan Dahlin
jdahlin at async.com.br
Thu Aug 10 23:33:08 WST 2006
N. French wrote:
> 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).
It looks like it might be a geninue bug.
Can you try to create a minimal example [eg 5-10 lines] and file a bug
report against PyGTK on bugzilla.gnome.org?
Thanks
--
Johan Dahlin <jdahlin at async.com.br>
Async Open Source
More information about the pygtk
mailing list