Delivered-To: garrigue at math.nagoya-u.ac.jp Authentication-Results: mailhost.math.nagoya-u.ac.jp sender=lablgtk-bounces at yquem.inria.fr; domainkey=neutral (no query protocol specified; no policy for yquem.inria.fr) Delivered-To: Lablgtk at yquem.inria.fr DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=zgVnsdqGN3vT2dY3Wk15/CQQY0JPLGEsacQOem8OrlA=; b=EWpphSqu/oVDjmb7MDKwKboed3iZsrQG3Yp+Lo7BRnHuafriI7b3tFJ4bb7PlMmlLI eI/yUGPcFTrfY+Qn490SQC50Nl6k5ZHWovAwotKhOYfF136S5hq+mwzkT9rgkD4Iyq98 YsNAPSEaqBjE3dKjvExXJfIjraNh5n2GxycaA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=XHWyB6Y9O9kPGAISHMD6U0bUhcLwtvF1ZOC601jThxM0fvYd527pEA300KSHdltJmV 7fAm7nRtDq1giugOO0OSEOds44ejTxXTnaIag2SxGBEqRSp2rZNsNXq+eEnKAUt8iAFQ eFe/EN/tIE1vEgbBnKJXjqDx74fh/I4toD8dc= MIME-Version: 1.0 In-Reply-To: References: <20100913205658.026ac951.pdgroves at gmail.com> <20100914154914.9a890dc1.pdgroves@gmail.com> <20100914185304.67bedad5.pdgroves@gmail.com> Date: Wed, 15 Sep 2010 14:05:58 +0900 Message-ID: Subject: Re: [Lablgtk] segfault when reattaching a tree model to a tree view From: Jacques Garrigue To: Peter Groves Content-Type: text/plain; charset=ISO-8859-1 Cc: Lablgtk at yquem.inria.fr Status: U 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 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 > wrote: >> On Wed, Sep 15, 2010 at 8:53 AM, Peter Groves 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@yquem.inria.fr http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk