Open GoogleCodeExporter opened 9 years ago
This happened in the idle-add branch!
Original comment by gbtami
on 10 Dec 2014 at 10:14
The idle_add's should probably be threads_idle_add. But we need to convert
to pygi to use that.
Original comment by mattgatto
on 10 Dec 2014 at 3:58
Original comment by gbtami
on 10 Dec 2014 at 8:22
This and 925 are different bugs with different code paths, although they're
occurring for the same reason, I'd bet: the crashing thread doesn't have the
gdk lock when it's trying to update the GUI. After reading
https://wiki.gnome.org/Projects/PyGObject/Threading again, specifically
https://wiki.gnome.org/Projects/PyGObject/Threading#line-227 , it would seem we
need to finish removing glock.py/threads_enter so we can remove
Gdk.threads_init() and use GLib.idle_add() instead of Gobject.idle_add().
Original comment by mattgatto
on 10 Dec 2014 at 8:58
Or we do what I said in comment 2, use threads_add_idle instead of idle_add,
but the fix in comment 4 is the better solution.
Original comment by mattgatto
on 10 Dec 2014 at 9:10
Either solution requires pygi being merged.
Original comment by mattgatto
on 10 Dec 2014 at 9:11
Original issue reported on code.google.com by
gbtami
on 10 Dec 2014 at 10:11Attachments: