Bug 2011 - Pango-CRITICAL **: pango_cairo_font_map_create_context: assertion `PANGO_IS_CAIRO_FONT_MAP (fontmap)' failed
Summary: Pango-CRITICAL **: pango_cairo_font_map_create_context: assertion `PANGO_IS_C...
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P1 normal
Target Milestone: ---
Assignee: Andrew Cagney
URL:
Keywords:
Depends on: 2010 2023
Blocks: 2004
  Show dependency treegraph
 
Reported: 2005-12-09 15:25 UTC by Andrew Cagney
Modified: 2005-12-11 19:52 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Cagney 2005-12-09 15:25:32 UTC
Running 2005-12-08 cvs frysk on rhel 4 gives the error:

(java-gnome:5151): Pango-CRITICAL **: pango_cairo_font_map_create_context:
assertion `PANGO_IS_CAIRO_FONT_MAP (fontmap)' failed
Comment 1 Andrew Cagney 2005-12-11 18:40:16 UTC
This should have barfed during the compile phase:

82      PangoFontMap *
83      pango_cairo_font_map_new (void)
84      {
85        /* Make sure that the type system is initialized */
86        g_type_init ();
87
88      #if defined(HAVE_CAIRO_WIN32)
(gdb)
89        return g_object_new (PANGO_TYPE_CAIRO_WIN32_FONT_MAP, NULL);
90      #elif defined(HAVE_CAIRO_FREETYPE)
91        return g_object_new (PANGO_TYPE_CAIRO_FC_FONT_MAP, NULL);
92      #endif
93      }

as best I can tell, neither of HAVE_CAIRO_WIN32 or HAVE_CAIRO_FREETYPE are defined.
Comment 2 Andrew Cagney 2005-12-11 18:46:49 UTC
this patch is too agressive :-(

cagney@tower$ more pango-skip-cairo-check.patch
--- configure.in.orig   2005-12-04 01:35:14.000000000 -0500
+++ configure.in        2005-12-04 01:40:53.000000000 -0500
@@ -287,11 +287,11 @@
     AC_DEFINE(HAVE_CAIRO_WIN32, 1, [Whether Cairo uses the Win32 GDI for fonts])
   else
     AC_CHECK_LIB(cairo, cairo_ft_scaled_font_lock_face,
have_cairo_freetype=true, :)
-    if $have_cairo_freetype && $have_freetype ; then
-      AC_DEFINE(HAVE_CAIRO_FREETYPE, 1, [Whether Cairo uses FreeType for fonts])
-    else
-      have_cairo=false
-    fi
+#    if $have_cairo_freetype && $have_freetype ; then
+#      AC_DEFINE(HAVE_CAIRO_FREETYPE, 1, [Whether Cairo uses FreeType for fonts])
+#    else
+#      have_cairo=false
+#    fi
   fi
   LDFLAGS=$pango_save_ldflags
 fi
Comment 3 Andrew Cagney 2005-12-11 19:52:23 UTC
* Sun Dec 11  2005 Andrew Cagney <cagney@redhat.com> 0.0.0.20051211.1-0.EL4.1
- Update pango-skip-cairo-check.patch, leave in definition of
  HAVE_CAIRO_FREETYPE.