On Wed, Mar 19, 2008 at 9:51 PM, Hazen Babcock <[EMAIL PROTECTED]> wrote:
> Agreed, but the segfault occurs because I did not think to check the
> return value of the function pango_cairo_create_layout(). It should
> return a pointer to a PangoLayout, but when it fails, as it does in
> our test case, it returns NULL. The program crashes when this null
> pointer is passed to the next function which expects a valid
> PangoLayout pointer. I can add a test for this and the program will
> no longer segfault, but this does not solve the problem of why
> pango_cairo_create_layout() is failing in the first place. Presumably
> it is trying to tell us something with the message:
>
> (process:10860): GLib-GObject-WARNING **: cannot register existing
> type `PangoCairoFcFontMap'
>
> Or maybe this could just mean that at some other point we are
> overwriting some crucial bit of memory?

This error does not occur on my Fedora 9 64bit installation, using the
latest PLplot from Subversion.  It does still occur on my Ubuntu Hardy
64bit install though.

Ubuntu library versions:
Cairo 1.6.0
Pango 1.20.5

Fedora library versions:
Cairo 1.6.4
Pango 1.20.1

The library versions are similar, if not the same, between the two
distributions.  I have not used either Pango or Cairo directly, but I
would be happy to do some testing here if you have any suggestions
about what might help diagnose this problem.

Hez

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

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to