[Lablgtk] segfault when reattaching a tree model to a tree view

Jacques Garrigue garrigue at math.nagoya-u.ac.jp
Wed Sep 15 07:05:58 CEST 2010


I forgot to mention that you must either run it with using the lablgtk2
toplevel or link it with gtkInit.cmo. (Your error messages just show
that Gtk is not initialized.)

Jacques

On Wed, Sep 15, 2010 at 1:41 PM, Peter Groves <pdgroves at gmail.com> wrote:
> Thanks for looking into it Jacques. The code sample you provided
> segfaults before any window displays on both my machines. I've
> attached the output to the terminal.
>
> One more update: when I put the tree_view in a scrolled_window the
> "wrong" way, where the column headers scroll away like everything
> else, the problem also goes away. I do this by adding the tree_view to
> the scrolled_window using scroller#add_with_viewport instead of
> scroller#add.
>
> On Tue, Sep 14, 2010 at 11:24 PM, Jacques Garrigue
> <garrigue at math.nagoya-u.ac.jp> wrote:
>> On Wed, Sep 15, 2010 at 8:53 AM, Peter Groves <pdgroves at gmail.com> wrote:
>>> The newest development is that the segfault is avoided if the treeview
>>> is not displayed in a scrolled_window. However, there are several
>>> hundred rows to be displayed, so this isn't a long term option. Also,
>>> when it's not in the scrolled_window, the entire user interface is much
>>> much slower (I assume because all rows are being displayed, even if
>>> they are off screen). So now I'm considering just trying to find
>>> another way to display this table, which will probably just mean
>>> implementing my own less-pretty but more stable version of treeview.
>>
>> This is strange. At least, using the newest version of lablgtk2 (subversion
>> repository) with Gtk 2.16.6, I see no such problem.
>> (I just tried to wrap a scrolled_window around the tree_model.ml example,
>> but no problem appears.)
>>
>> Can you try the enclosed code, and see whether it segfaults when you
>> press "Dump data" twice?
>> (Your code being not self-contained, I cannot test it).
>>
>> Jacques
>>
>

_______________________________________________
Lablgtk mailing list
Lablgtk at yquem.inria.fr
http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk




More information about the Lablgtk-list mailing list