On Fri, May 1, 2009 at 12:37 PM, Hazen Babcock <[email protected]> wrote:
> Hezekiah M. Carty wrote:
>>
>> While doing some comparisons using the Qt and Cairo devices on my own
>> plots, I noticed that the:
>>
>> plsdev(something_cairo);
>> plenv ...;
>> plend();
>> plsdev(something_cairo);
>> plenv...;
>>
>> sequence with Cairo output devices no longer gives segmentation faults
>> on my Ubuntu Intrepid system using the latest PLplot SVN!  Previously,
>> rendering text on a Cairo device in a new PLplot session after calling
>> plend() for a previous Cairo PLplot session would lead to a
>> segmentation fault.  The version of Cairo installed on my system has
>> not changed since the last time I tested this, so it seems that
>> something has changed in the PLplot sources to fix this.
>
> I thought it might have something to do with the recent changes to cairo
> text handling, but unfortunately I have to report that I am still seeing the
> old behavior.
>
> Could you try changing line 871 in drivers/cairo.c from:
> pls->alt_unicode = 1;
> to:
> pls->alt_unicode = 0;
> and see if you get the old behavior?
>
> -Hazen

Hazen,

I do not see the segmentation faults in either case, pls->alt_unicode
= 0 or pls->alt_unicode = 1.

For what it's worth, I configured PLplot using:

cmake -DCMAKE_INSTALL_PREFIX=/home/hcarty/Applications/plplot \
  -DBUILD_TEST=ON -DDEFAULT_NO_BINDINGS=ON -DENABLE_ocaml=ON
-DPLD_extcairo=ON ../ >& cmake.out

I think the -DPLD_extcairo=ON option is extraneous now.

Hez

-- 
Hezekiah M. Carty
Graduate Research Assistant
University of Maryland
Department of Atmospheric and Oceanic Science

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to