New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rrdtool graph command hangs up on OSX 10.7.5 #374

Open
rindek opened this Issue Mar 28, 2013 · 2 comments

Comments

Projects
None yet
2 participants
@rindek

rindek commented Mar 28, 2013

I've created very small rrd file and tried to generate graph of it, output:

[13:36:52 rind]/tmp<>$ rrdtool graph graph.png DEF:pkt=datafile.rrd:packets:AVERAGE LINE1:pkt#ff0000:Packets

(process:43697): GLib-GObject-CRITICAL **: gtype.c:2720: You forgot to call g_type_init()

(process:43697): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0' failed

(process:43697): GLib-GObject-CRITICAL **: gtype.c:2720: You forgot to call g_type_init()

(process:43697): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0' failed

(process:43697): GLib-GObject-CRITICAL **: gtype.c:2720: You forgot to call g_type_init()

(process:43697): GLib-GObject-CRITICAL **: gtype.c:2720: You forgot to call g_type_init()

and it just hangs like that, no output, no graph, no errors, no segfaults, just hanging

rrdtool version 1.4.7 installed via homebrew with all latest dependencies

Do you have any idea what can cause such behaviour and how to fix it?

@kazeburo

This comment has been minimized.

kazeburo commented Mar 29, 2013

How about this patch?

--- a/src/rrd_graph.c  2012-01-24 19:08:48.000000000 +0900
+++ b/src/rrd_graph.c   2013-03-29 14:13:53.000000000 +0900
@@ -4066,6 +4066,8 @@
     static PangoFontMap *fontmap = NULL;
     PangoContext *context;

+    g_type_init();
+
 #ifdef HAVE_TZSET
     tzset();
     #endif
@rindek

This comment has been minimized.

rindek commented Mar 29, 2013

@kazeburo thanks a lot! That worked perfectly, no more errors, and graphs are being generated.

Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment