On Fri, Feb 15, 2013 at 02:07:03PM -0800, Alan Irwin wrote:
> On 2013-02-15 07:58+0100 fulvio ciriaco wrote:
> 
> > Hallo Alan,
> > it is the same on my computers, I too use debian testing actually.
> > So, probably I was not clear enough, all the examples are fine,
> > in that they immediately exit as soon as the example finishes all
> > the pages.
> > You can evidentiate the problem if you place a
> > sleep(10);
> > before
> > exit(0);
> > All the drivers correctly close the window after you right click
> > the window but wxwidgets.
> 
> Hi Fulvio:
> 
> The symptom I get here (for the case of sleep(2) before exit(0) for
> x01c.c) is that for the xwin, xcairo, and qtwidgets device drivers)
> right click or hitting the enter key immediately kills the window and
> then there is a two-second delay before command is returned to the
> command line.  For -dev wxwidgets, the two-second delay occurs while
> the window is still displayed which is a subtle difference but also
> unexpected.  Is that the difference you are referring to for the
> single plinit case?  If so, I have verified at least that part of the
> issue.
> 
> > This is not all the story, if you make
> > a double example, that is a single program that does two examples
> > one after the other, this breaks with segfaults before opening
> > the second window, I imagine at plinit.
> > This is what my example did:
> >
> > perlconsole
> > do 'x01.pl'
> > 12
> > press right mouse => window hangs
> > do 'x01.pl'
> > 12
> > 139% segmentation fault
> >
> > or
> > sbcl
> > (require :plplot-examples)
> > (plplot-examples::example1 "wxwidgets")
> >  ;; window hangs there
> > (plplot-examples::example1 "wxwidgets")
> >  ;; catches segfaults
> 
> These are poor examples in the sense that the perl and lisp bindings
> for PLplot are all external to the PLplot core development so PLplot
> core developers are not particularly familiar with those bindings.
> 
> So please send a temporary patch for a simple example (say for
> examples/c/x01c.c) that generates the segfault in the double plinit
> case for you for wxwidgets but not for other devices. That patch
> should help make it convenient for core PLplot developers to verify
> the issue.
> 

Alan,

You can generate this problem using pltcl. (I suspect some of these 
problems have been around for a while. I haven't searched the archive but 
I have a brief recollection of this.)

Try changing to examples/tcl and executing

$ pltcl
pltcl> plsdev "wxwidgets"
pltcl> plinit
pltcl> source tcldemos.tcl
pltcl> 1
pltcl> plend
pltcl> plsdev "wxwidgets"
pltcl> plinit
pltcl> 1

The first call to plend generates a error 

(pltcl:24280): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that 
doesn't believe we're it's parent.

which is probably pertinent. The second attempt to call example 1 results 
in a seg fault. You don't see this with the xwin or other drivers.

Andrew

------------------------------------------------------------------------------
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, 
is your hub for all things parallel software development, from weekly thought 
leadership blogs to news, videos, case studies, tutorials, tech docs, 
whitepapers, evaluation guides, and opinion stories. Check out the most 
recent posts - join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to