wb8tyw / D-Rats

D-Rats program for D-Star Ham Radios
https://iz2lxi.jimdofree.com/
Other
7 stars 1 forks source link

Gtk-CRITICAL gtk/gtktreeview.c:6680 (validate_visible_area): assertion `has_next' failed. #91

Open wb8tyw opened 2 years ago

wb8tyw commented 2 years ago

Looks like we need some interlocking to prevent updates of the data used for rendering while the data is being rendered.

01/31/2022 08:20:09:INFO:SessionManager:incoming: Received block 0:0 for session `chat'

(d-rats.py:31859): Gtk-CRITICAL **: 08:20:09.247: ../../../../gtk/gtktreeview.c:6680 (validate_visible_area): assertion `has_next' failed.
There is a disparity between the internal view of the GtkTreeView,
and the GtkTreeModel.  This generally means that the model has changed
without letting the view know.  Any display from now on is likely to
be incorrect.

01/31/2022 08:20:10:INFO:Transporter:_parse_gps: Found GPS string: bytearray(b'$$CRC157A,KG5CEN-1>APRATS,DSTAR*:/142008h3012.76N/08945.22W#/A=000002Ratflector\r
wb8tyw commented 2 years ago

Found a review for a change request for another project that links this error message to this issue. mapwindow - segfault

I could not find any specific information in that change request that could be directly used to fix it.

In reading the current GTK documentation, we have to make sure that we never call any GTK function or method from inside a python thread, you have to use GLib.idle_add, and this could be a result of breaking that rule somewhere.