Hallo,
so I compiled plplot with wxwidgets debug enabled,
a message is delivered as soon as I right click
the first window appearing:
../src/gtk/dcclient.cpp(248): assert "wxAssertFailure" failed in
wxFreePoolGC(): Wrong GC
I opened gdb and returned from wxwidgets, until I landed back
in plplot at position
#0 plD_tidy_wxwidgets (pls=0x7ffd3bf647e0)
at /home/fc/Downloads/plplot-5.9.9/drivers/wxwidgets.cpp:773
773 pls->dev = NULL; // since in plcore.c pls->dev is free_mem'd
i.e. after
delete dev;
In one of my mails above, I have already noticed that commenting
// delete dev;
the window does not close but another simply opens.
Fulvio
From: phil rosenberg <[email protected]>
Subject: Re: [Plplot-devel] [ plplot-Bugs-3604554 ] wxwidgets window
Date: Fri, 22 Feb 2013 16:25:29 -0800 (PST)
> Hi Fulvio
> Yes wxWidgets immediately aborts in this circumstance. Looking at the source
> code this feature appears to have been added by design, although I don't know
> the reason. I'm not sure it is necessarilly what we want to occur. It can
> also cause memory leaks during exit because control never returns to the main
> function.
>
> Alan what do you think? Changing this behaviour should only be a matter of
> removing a few lines of code.
>
> Phil
>
>
> ________________________________
> From: fulvio ciriaco <[email protected]>
> To: [email protected]
> Cc: [email protected]; [email protected];
> [email protected]
> Sent: Friday, 22 February 2013, 17:39
> Subject: Re: [Plplot-devel] [ plplot-Bugs-3604554 ] wxwidgets window
>
> Hallo,
> since my students keep to compulsively hit all kind of buttons,
> I reviewed also what the different plotting drivers do on hitting
> the window close button or menu exit where existant, of course when
> the application is meant to survive the window, e.g. in test.c
> xwin: exits with fpe
> wxwidgets: immediate abort
> wxwidgets,menu:immediate abort
> xcairo: does not close the first but opens a new window where all
> works correctly. Xcairo has refreshing problems, but this
> is another story.
> tk: closes the window and pauses indefinitely
> tk, menu: aborts application
> qtwidget: works correctly
>
> It seems only qtwidget has an high probability to survive the efforts
> of my students to break things.
>
> Fulvio
>
>
> From: "Alan W. Irwin" <[email protected]>
> Subject: Re: [Plplot-devel] [ plplot-Bugs-3604554 ] wxwidgets window
> Date: Thu, 21 Feb 2013 16:40:45 -0800 (PST)
>
>> On 2013-02-21 15:14-0800 phil rosenberg wrote:
>>
>>> Thanks for the report Fulvio
>>> In that case I will download a clean version of plplot tomorrow and
>>> check how it works with that. Unfortunately I do almost all my coding
>>> on a windows environment - mostly because the debugging tools are so
>>> good.
>>>
>>> Speak soon
>>> Phil
>>
>> Hi Phil:
>>
>> I confirm fulvio's results on my own Debian (wheezy) system. With
>> Fulvio's test.c example the wxwidgets (wxGC) GUI from the first plinit
>> does not disappear, and the second plinit segfaults. These (bad)
>> results occur regardless of whether your wxwidgets patch is applied
>> or not.
>>
>> So I suspect your wxwidgets patch (which, by the way, does apply
>> cleanly to the svn trunk version of PLplot) addresses part of the
>> issue but not all of it.
>>
>> Will you try test.c yourself for testing purposes rather than your
>> modified x00c ? I have attached a slightly modified form of it here
>> (plwid ==> plwidth is required for the trunk version) for your
>> convenience. Note I have tried this test.c for a number of interactive
>> devices and the only device where there are issues appears to be
>> wxwidgets.
>>
>> Note, I normally run the default backend=2 (wxGC) but I also just now
>> tried -drvopt backend=0 (basic) and got the same (bad) results with
>> test.c. I have not tried backend=1 (AGG) for the wxwidgets device
>> because the AGG library is not installed on my system.
>>
>> 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); the Time
>> Ephemerides project (timeephem.sf.net); PLplot scientific plotting
>> software package (plplot.sf.net); 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
>> __________________________
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel