From: Alan W. I. <ir...@be...> - 2010-05-07 04:16:18
|
On 2010-05-07 03:00+0100 Leo wrote: > Hello, > > I am using plplot through the common lisp binding cl-plplot. > > While using the xwin driver on linux, if I close the plot window using > the standard way i.e. clicking on the 'close' button, it crashes and > takes the lisp with it. (hitting return exit normally). > > This appears to be due to somewhere in the plplot code calls exit. > Further debug info can be found in http://paste.lisp.org/display/98883. > > The bug is so easy to happen accidentally and the impact is very > intrusive. I wonder if someone can help fix this bug? > > On OSX I use aqt driver and I have no such crashes. Thank you. Hi Leo: I confirm the issue for -dev xwin, -dev xcairo, but not -dev wxwidgets or -dev qtwidget for the C core library of PLplot. These results clearly show the device drivers are the source of the trouble and not the cl-plplot lisp bindings or even the PLplot core library. software@raven> examples/c/x01c -dev xwin PLplot library version: 5.9.5 XIO: fatal IO error 11 (Resource temporarily unavailable) on X server "localhost:10.0" after 2957 requests (42 known processed) with 0 events remaining. software@raven> examples/c/x01c -dev xcairo PLplot library version: 5.9.5 XIO: fatal IO error 11 (Resource temporarily unavailable) on X server "localhost:10.0" after 39 requests (30 known processed) with 0 events remaining. software@raven> examples/c/x01c -dev wxwidgets PLplot library version: 5.9.5 Program aborted software@raven> examples/c/x01c -dev qtwidget PLplot library version: 5.9.5 In all four cases I closed the window by hitting the "Close" window button supplied by the window manager at the far upper right. That action generated a fatal error for -dev xwin and -dev xcairo, but generated the "Program aborted" message and smooth exit after that for -dev wxwidgets and simply generated a smooth exit for -dev qtwidget. The actions of closing the window by using the upper-left menu item or by hitting alt+F4 gave the same results; fatal IO errors for -dev xwin and -dev xcairo but the desired smooth exits for -dev wxwidgets (with "Program aborted" message) and -dev qtwidget (with no message). I think the solution is better handling of the case when the X server is suddenly not available (as apparently happens when you close the window) for -dev xwin and -dev xcairo, but someone else with more driver and X expertise than me will have to implement fixes. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); PLplot scientific plotting software package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |