#169 show_clocked_out_employees = False causes errors with ungang

v2.0
closed-fixed
sndcs_gtk (61)
9
2008-01-02
2007-12-29
No

When show_clocked_out_employees = False in the client config file you will get the following error when a client ungangs off of some jobs:

/usr/lib/python2.5/site-packages/sndcs_client/gtk/ActiveEmployeesTreeView.py:207: GtkWarning: gtk_tree_model_filter_get_value: assertion `GTK_TREE_MODEL_FILTER (model)->priv->stamp == iter->stamp' failed
self.model[p] = self.model[(p,0)]
/usr/lib/python2.5/site-packages/sndcs_client/gtk/ActiveEmployeesTreeView.py:207: Warning: g_value_get_string: assertion `G_VALUE_HOLDS_STRING (value)' failed
self.model[p] = self.model[(p,0)]
/usr/lib/python2.5/site-packages/sndcs_client/gtk/ActiveEmployeesTreeView.py:207: Warning: g_value_unset: assertion `G_IS_VALUE (value)' failed
self.model[p] = self.model[(p,0)]
/usr/lib/python2.5/site-packages/sndcs_client/gtk/ActiveEmployeesTreeView.py:208: GtkWarning: gtk_tree_model_filter_real_unref_node: assertion `filter->priv->stamp == iter->stamp' failed
del self.model[(p,0)]

I believe this problem may be caused by some newer versions of GTK becuase this error is not exhibited in clients using older versions of GTK.

-Seth

Discussion

  • Seth Remington

    Seth Remington - 2007-12-31

    Logged In: YES
    user_id=667337
    Originator: YES

    This seems to be caused by having several TreeModelFilters stacked on top of each other. I'm not convivinced that this isn't a bug in GTK+. Googling for answers revealed several other peoplr having the same problem and the only workaround seems to be getting rid of the filter stacking. This also seemed to work in older versions of GTK+ since the current code is already in production without this error. Looks like the only work around is to remove the clocked_out_employee_filter and actually remove / add employees completely from the model like what is done with the terminal / department filtering.

    These changes will require that the server be at version 2.0.7 but that was already required by a previous change in the 2.0.7 client so that shouldn't be a problem.

     
  • Seth Remington

    Seth Remington - 2008-01-02

    Logged In: YES
    user_id=667337
    Originator: YES

    Fixed in CVS

     
  • Seth Remington

    Seth Remington - 2008-01-02
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks