#229 freewrl-1.22.13 assertion failure with fontconfig-2.9.0

closed-fixed
None
5
2012-08-29
2012-08-02
Ian Abbott
No

Running freewrl on a recent Gentoo Linux system with fontconfig-2.9.0 installed results in the following:

~ $ freewrl
fwl_startFreeWRL called
opengl version=2.1 Mesa 8.1-devel
freewrl: fcmatch.c:548: IA__FcFontMatch: Assertion `result != ((void *)0)' failed.
Aborted

That's from the call FcFontMatch(0,FW_fp,0) from FW_make_fontname() in src/lib/scenegraph/Component_Text.c due to the third parameter being 0.

Discussion

  • Ian Abbott
    Ian Abbott
    2012-08-21

    This bug affects the CVS version as well.

     
  • Ian Abbott
    Ian Abbott
    2012-08-21

    Patch for CVS to pass dummy result parameter to FcFontMatch()

     
  • Ian Abbott
    Ian Abbott
    2012-08-21

    The attached patch 'freex3d-fontconfig-2.9.0.patch' (against the CVS version) fixes the problem by passing a pointer to a dummy FcResult variable to FcFontMatch() instead of passing NULL.

     
  • This was my code, so i'm on it. using zero there was a bit of a hack anyways, iirc; i'll figure out what actually needs to go there.

     
    • assigned_to: nobody --> istakenv
     
  • Fixed in CVS and patch backported to freewrl-1.22.13 in gentoo portage.

    I used a different variable name but otherwise it was your solution verbatum.

     
    • status: open --> closed-fixed