Bug

Leandro Rios <[email protected]> Thu, 23 Aug 2007 09:52:52 -0300
Newsgroups gmane.lisp.clg.devel
Message-ID <[email protected]>
Hi, Espen

I'm learning my way through clg. It seems I have found a bug in the 
tree-view-row-data method. On invocation it gives this error:

Gtk: gtk_list_store_get_value: assertion `column < 
list_store->n_columns' failed
    [Condition of type GLIB:CRITICAL-LOG-LEVEL]

Restarts:
   0: [CONTINUE] Return from callback function
   1: [RE-INVOKE] Re-invoke callback function
   2: [ABORT] Disconnect and exit signal handler
   3: [ABORT] Exit debugger, returning to top level.

Backtrace:
   0: (NIL 5990772437936 5990772437935 #<FUNCTION GLIB::LOG-HANDLER>)
   1: ("foreign function: #x41E152")
   2: ("foreign function: #x4177E2")
   3: ("foreign function: #x40001225")

It was iterating over list_store->n_columns + 1 columns, so fixed it and 
the error is gone.

Here is the diff:

------------------------------------------------------------------------

*** clgcvs/gtk/gtktree.lisp     2007-05-10 17:20:05.000000000 -0300
--- asds/clg-cvs/gtk/gtktree.lisp       2007-08-22 23:18:53.000000000 -0300
***************
*** 418,424 ****
     (coerce
      (loop
       with iter = (ensure-tree-iter model row)
!     for index from 0 to (tree-model-n-columns model)
       collect (tree-model-value model iter index))
      'vector))

--- 418,424 ----
     (coerce
      (loop
       with iter = (ensure-tree-iter model row)
!     for index from 0 to (1- (tree-model-n-columns model))
       collect (tree-model-value model iter index))
      'vector))

------------------------------------------------------------------------

Could you please confirm if it is a bug and apply the changes?

Thank you for making clg available.

Leandro


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/