[Solved]Pango-CRITICAL **: pango_context_load_font:.....

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
tonyd
Posts: 18
Joined: Tue Aug 12, 2008 3:23 am

[Solved]Pango-CRITICAL **: pango_context_load_font:.....

Post by tonyd »

Hi all,

I'm new to Cacti. I've recently gotten acquainted with it. We have it running on our noc server. The other night it broke due to an Net-SNMP update. So I decided it was probably best to try to replicate/backup Cacti on another server. So I installed Cacti and all of it's dependencies on a new server. I copied over the rra dir and did a dump/restore of the sql, made the necessary changes to the config.php. Cacti is displaying existing data already gathered. But I'm getting these errors in my http-error.log as well as not seeing the graphs update with any new info. I'm not even sure that the snmpgets (or whatever Cacti is using to request it's info - walk, bulk, etc.) are taking place. Here are some lines from the log.
(process:69919): Pango-CRITICAL **: pango_context_load_font: assertion `pango_font_description_get_family (desc) != NULL' failed

(process:69919): Pango-CRITICAL **: pango_context_load_font: assertion `pango_font_description_get_family (desc) != NULL' failed
ERROR: invalid y-grid format

(process:74361): Pango-CRITICAL **: pango_context_load_font: assertion `pango_font_description_get_family (desc) != NULL' failed

(process:74361): Pango-CRITICAL **: pango_context_load_font: assertion `pango_font_description_get_family (desc) != NULL' failed
ERROR: invalid y-grid format

(process:74373): Pango-CRITICAL **: pango_context_load_font: assertion `pango_font_description_get_family (desc) != NULL' failed

(process:74373): Pango-CRITICAL **: pango_context_load_font: assertion `pango_font_description_get_family (desc) != NULL' failed
ERROR: invalid y-grid format
My server:
FreeBSD 7
Port tree current, all installed ports to current versions.
cacti-0.8.7b_2
rrdtool-1.3.0_1

EDIT: I've just noticed that Cacti sees only RRDTool v1.2 in the settings interface. However I have 1.3 installed. Also, the Cacti log is empty.

Let me know what other specific ports you may need version info on and I'll supply it. Any help on this would be great. Thanks to all in advance.

tonyd

EDIT: Still have a problem as noted above, but will start a new thread. Thanks
Last edited by tonyd on Wed Aug 13, 2008 12:09 pm, edited 1 time in total.
User avatar
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Post by streaker69 »

When you installed RRDTool 1.3 did you properly install Pango-Cairo?
[b]Cacti Version[/b] - 0.8.7d
[b]Plugin Architecture[/b] - 2.4
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Linux 2.6.18-128.1.6.el5
[b]Web Server[/b] - Apache/2.2.3 (CentOS)
[b]PHP[/b] - 5.2.9
[b]MySQL[/b] - 5.0.45-log
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.3.2.2
[b]Plugins[/b]PHP Network Managing v0.6.1, Global Plugin Settings v0.6,thold v0.4.1,XMLPort v0.3.5,CactiCam v0.1.5,NetTools v0.1.5,pollperf v0.32,RRD Cleaner v1.1,sqlqueries v0.2,superlinks v0.8,syslog v0.5.2,update v0.4,discovery v0.9,zond v0.34a,hostinfo v0.2,Bloom v0.6.5,mactrack v1.1,weathermap v0.96a,mobile v0.1
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

streaker69 wrote:When you installed RRDTool 1.3 did you properly install Pango-Cairo?
The FreeBSD rrdtool port did install cairo/pango last time I used it (a few weeks ago).

rrdtool 1.3 uses a totally different system for fonts (pango), so if your old install used custom fonts or custom font sizes in Cacti, then that might cause the errors you are seeing. Cacti doesn't yet understand 1.3's font stuff.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
tonyd
Posts: 18
Joined: Tue Aug 12, 2008 3:23 am

Post by tonyd »

I don't fully understand the Cacti installation to be sure. But this is a clean Cacti installation on a separate server. As mentioned, I transferred any graph data (as I understand it) via a dump/restore of the sql and copied the rra dir/files. So how is it that Cacti is using the "old font method"? And how can I change this behavior?

@streaker69:

I don't see a "Pango-Cairo" in my ports tree or on freebsd.org ports. All I see are these:
/usr/ports/graphics/cairo
/usr/ports/graphics/cairo/files/patch-src_cairo-ft-font.c
/usr/ports/graphics/cairo/files/patch-src_cairoint.h
/usr/ports/graphics/cairo-java
/usr/ports/graphics/cairo-java/files/patch-cairo-java.pc.in
/usr/ports/graphics/cairo-reference
/usr/ports/graphics/cairomm
/usr/ports/graphics/fpc-cairo
/usr/ports/graphics/gstreamer-plugins-cairo
/usr/ports/graphics/libsvg-cairo
/usr/ports/graphics/py-cairo
/usr/ports/graphics/ruby-cairo
/usr/ports/graphics/linux-cairo
/usr/ports/x11-clocks/cairo-clock
/usr/ports/x11-toolkits/gnustep-cairo
/usr/ports/x11-toolkits/libgdiplus/files/patch-cairo_src_cairo-ft-font.c
/usr/ports/x11-toolkits/swt31/files/manualpatch-cairo
/usr/ports/x11-wm/waimea-devel/files/patch-cairo-fix
/usr/ports/distfiles/cairo-1.6.4.tar.gz

tonyd
tonyd
Posts: 18
Joined: Tue Aug 12, 2008 3:23 am

Post by tonyd »

I think I may have solved my Pango font error. I configured a default font and fonts for the visual. The "ERROR: invalid y-grid format" still exists. My technical report show this:
Date Tue, 12 Aug 2008 13:54:58 -0600
Cacti Version 0.8.7b
Cacti OS unix
SNMP Version net-snmp
RRDTool Version
ERROR: Installed RRDTool version does not match configured version.
Please visit the Configuration Settings and select the correct RRDTool Utility Version.
Hosts 260
Graphs 2861
Data Sources Script/Command: 58
SNMP: 2277
SNMP Query: 1457
Script Query: 7
Script Query - Script Server: 103
Total: 3902
So it's clear that there's a problem with Cacti not understanding that RRDTool v 1.3 is installed. The Settings->RRDTool Utility Version
The version of RRDTool that you have installed. only shows v1.0 and 1.2 as an option.

tonyd
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

This is a known error that was already fixed in SVN. Please see upcoming 087c. Until then, use "rrdtool 1.2" setting
Reinhard
User avatar
Gorbachov
Posts: 29
Joined: Sun May 04, 2008 12:20 pm
Contact:

Post by Gorbachov »

Hello, sorry for posting in this topic but I have the same problem.


I use Debian updated to lenny rrd 1.3

Technical Support
General Information
Date Thu, 07 May 2009 18:03:05 +0300
Cacti Version 0.8.7d
Cacti OS unix
SNMP Version NET-SNMP version: 5.4.1
RRDTool Version RRDTool 1.3.x
Hosts 22
Graphs 384
Data Sources Script/Command: 12
SNMP: 214
SNMP Query: 293
Script Query: 6
Script - Script Server (PHP): 32
Script Query - Script Server: 31
Total: 588


And my apache error log is full of this errors.
I searched for the shared libraries of pango and cairo and all of them are installed ( not the dev packages ).

Can you please guide me where to look for the problem.
stein
Posts: 7
Joined: Thu Apr 02, 2009 8:42 am

Post by stein »

Did you find a solution to this?
I have the same problem with norwegian characters (æøå).

I'm also on Debian Lenny
Rrd 1.3.7
Cacti 0.8.7e
User avatar
Gorbachov
Posts: 29
Joined: Sun May 04, 2008 12:20 pm
Contact:

Post by Gorbachov »

I am still having this problems. I did not manage to get rid of them.
razvanu
Posts: 7
Joined: Thu Jan 08, 2009 4:38 am
Location: Ro
Contact:

Post by razvanu »

same problem and here:
debian lenny main
cacti 0.8.7g, rrd 1.3

Code: Select all

(process:19987): Pango-CRITICAL **: pango_context_load_font: assertion `pango_font_description_get_family (desc) != NULL' failed
(process:19989): Pango-CRITICAL **: pango_context_load_font: assertion `pango_font_description_get_family (desc) != NULL' failed
(process:19989): Pango-CRITICAL **: pango_context_load_font: assertion `pango_font_description_get_family (desc) != NULL' failed
anyone ?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

These problems IMHO are related to rrdtool's usage of pango for displaying fonts.
You may use Graph Management, select the graph and use DEBUG to get the plain rrdtool command.
Run that command from cli (redirect output to /dev/null). If the same error shows up, it's an rrdtool issue. Post to e.g. rrdtool-users mailing list
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests