Skip to content
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

[rrd-ffi] generating graph sometimes loops glib on OSX 10.7.5 #386

Open
rindek opened this issue Apr 24, 2013 · 13 comments
Open

[rrd-ffi] generating graph sometimes loops glib on OSX 10.7.5 #386

rindek opened this issue Apr 24, 2013 · 13 comments

Comments

@rindek
Copy link

rindek commented Apr 24, 2013

Hi,

Originally issue posted on rrd-ffi lib (ruby wrapper for librrd) but it looks like the issue is inside the librrd itself, you can see the conversation here: morellon/rrd-ffi#24

Maybe you'll be able to help here?
Cheers,

Hi,

Having all latest libraries (glib 2.36.0, pango 1.34.0, rrdtool 1.4.7).
I'm trying to generate an rrdgraph using very simple command

RRD.graph! tmp.path, :title => "graf", :start => 1.hour.ago do
  line filename, :sum => :average, :color => "#ff0000", :label => "test"
end

it sometimes generates graph instantly but quite often command hungs up and looping output:

(process:3461): GLib-GObject-CRITICAL **: g_object_get_qdata: assertion `G_IS_OBJECT (object)' failed

(process:3461): GLib-GObject-CRITICAL **: g_object_replace_qdata: assertion `G_IS_OBJECT (object)' failed

(process:3461): GLib-GObject-CRITICAL **: g_object_get_qdata: assertion `G_IS_OBJECT (object)' failed

(process:3461): GLib-GObject-CRITICAL **: g_object_replace_qdata: assertion `G_IS_OBJECT (object)' failed

It never ends, just showing these information, I have to kill -9 whole rails app to terminate it.

Using rrdtool command from console never behaved like this.

Any idea why it goes like this?

Cheers

@charleskirk
Copy link

I have the exact same problem.

@rdvdijk
Copy link

rdvdijk commented Apr 24, 2013

I have this too, but note that the loop of errors start with:

(process:92745): Pango-CRITICAL **: PangoContext *pango_cairo_font_map_create_context(PangoCairoFontMap *): assertion `PANGO_IS_CAIRO_FONT_MAP (fontmap)' failed

@charleskirk
Copy link

Mine too. I suspect rindek didn't see that initial error, as thousands do spurt out immediately...

@rdvdijk
Copy link

rdvdijk commented Apr 24, 2013

This bug goes away if I downgrade pango to 1.33.8. Both 1.33.9 and 1.34.0 crash. So this might not be a bug in rrdtool after all, but in pango.

@rindek
Copy link
Author

rindek commented Apr 24, 2013

I'm having troubles installing pango 1.33.8 the ./configure commands ends with

checking for FONTCONFIG... no
no
checking for CoreText availability... yes
checking for CAIRO... no
no
configure: error: *** Could not enable any backends.

Even if I point the PKG_CONFIG_PATH env variable to the cairo libs

Edit: Nevermind I managed to install it :-)

@rindek
Copy link
Author

rindek commented Apr 24, 2013

@rdvdijk unfortunately downgrading pango to 1.33.8 didn't resolve it for me, I am still getting this loop :/

@rdvdijk
Copy link

rdvdijk commented Apr 24, 2013

Sorry, I spoke too soon. It worked longer, but I ended up in that loop as well 😢

@rdvdijk
Copy link

rdvdijk commented Apr 24, 2013

I downgraded back to pango 1.32.5 and things now do seem stable. All other versions crashed more or less immediately.

@rdvdijk
Copy link

rdvdijk commented Apr 24, 2013

Will try that tomorrow when I wake up, thanks! 👍

@oetiker
Copy link
Owner

oetiker commented Apr 24, 2013

sending patches via email to the bug tracker seems not to work very well ...

--- a/src/rrd_graph.c
+++ b/src/rrd_graph.c
@@ -4282,7 +4282,7 @@ void rrd_graph_init(
         fontmap = pango_cairo_font_map_get_default();
     }

-    context =  pango_cairo_font_map_create_context((PangoCairoFontMap*)fontmap);
+    context =  pango_font_map_create_context(fontmap);

     pango_cairo_context_set_resolution(context, 100);

@nowhereman158
Copy link

I applied the patch to rrdtool svn rev 2305 but it doesn't seem to help much:

(process:8027): GLib-GObject-CRITICAL **: g_object_ref: assertion `object->ref_count > 0' failed

(process:8027): Pango-CRITICAL **: pango_font_map_get_serial: assertion `PANGO_IS_FONT_MAP (fontmap)' failed

Segmentation fault

I'm trying to render from Perl using RRDs::graph()

@JoakimSoderberg
Copy link
Contributor

Has there been any fix for this?

@oetiker
Copy link
Owner

oetiker commented Mar 30, 2015

not sure these are all about the same thing ... in any event, best is to test with the latest master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants