rrd-ffi icon indicating copy to clipboard operation
rrd-ffi copied to clipboard

generating graph sometimes loops glib on OSX 10.7.5

Open rindek opened this issue 11 years ago • 10 comments

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

rindek avatar Apr 02 '13 11:04 rindek

Hello, rindek!

I couldn't reproduce it. I have no idea why this might happen. Can you try using other library versions and see if the loop continues?

morellon avatar Apr 08 '13 15:04 morellon

Hey,

Not sure with what I can experiment, glib 2.36.0 is the newest and actually the only version which can run rrdtool to generate graph successfully (other versions of glib are failing to do on some other error), and this bug seems to be connected with glib somehow, I'm not sure where should I post this bug however, gotta start somewhere :(

rindek avatar Apr 08 '13 19:04 rindek

What versions of aforemetioned libs are you using? Maybe I'll try the very same setup?

rindek avatar Apr 08 '13 19:04 rindek

I'm using these: glib 2.32.4, pango 1.30.1, rrdtool 1.4.7

morellon avatar Apr 08 '13 19:04 morellon

Under those the following error is happening when trying to generate graph:

(process:75451): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

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

(process:75451): GLib-GObject-CRITICAL **: g_object_set_qdata_full: assertion `G_IS_OBJECT (object)' failed

(process:75451): Pango-CRITICAL **: pango_fontset_foreach: assertion `PANGO_IS_FONTSET (fontset)' failed

(process:75451): Pango-CRITICAL **: pango_fontset_foreach: assertion `PANGO_IS_FONTSET (fontset)' failed

(process:75451): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderCoreText', script='latin'

(process:75451): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(process:75451): Pango-WARNING **: couldn't load font "DejaVu Sans Mono,Bitstream Vera Sans Mono,monospace,Courier Not-Rotated 8", modified variant/weight/stretch as fallback, expect ugly output.

(process:75451): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(process:75451): Pango-ERROR **: Could not load fallback font, bailing out.
Trace/BPT trap: 5

rindek avatar Apr 08 '13 19:04 rindek

I've updated xcode to latest version, removed all the libs, installed them again, along with reinstalling rrd-ffi, and it still 'loops' (not every time though) but not with slightly diffrent output:

(process:6087): GLib-GObject-CRITICAL **: gpointer g_object_get_qdata(GObject *, GQuark): assertion `G_IS_OBJECT (object)' failed

(process:6087): GLib-GObject-CRITICAL **: gboolean g_object_replace_qdata(GObject *, GQuark, gpointer, gpointer, GDestroyNotify, GDestroyNotify *): assertion `G_IS_OBJECT (object)' failed

It efficiently stops me from working on a project, cause the only way out of this is to kill -9 the app :)

rindek avatar Apr 24 '13 09:04 rindek

Oh my. This. Exact same error for multiple versions. Spent hours and hours on this, and as rindek said, only way out is kill -9.

Glib 2.36.1 Pango 1.34.0 rrdtool 1.4.7

Same as rindek with regard to the graph generating.. my messages started like this, and repeat the last two errors infinitely:

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

(process:41262): GLib-GObject-CRITICAL **: gpointer g_object_get_qdata(GObject *, GQuark): assertion `G_IS_OBJECT (object)' failed

(process:41262): GLib-GObject-CRITICAL **: gboolean g_object_replace_qdata(GObject *, GQuark, gpointer, gpointer, GDestroyNotify, GDestroyNotify *): assertion `G_IS_OBJECT (object)' failed

charleskirk avatar Apr 24 '13 15:04 charleskirk

Hey guys, please check https://github.com/mxcl/homebrew/issues/13587 See if it is the same issue as yours.

morellon avatar Apr 24 '13 16:04 morellon

Aforementioned issue is slightly diffrent, it doesn't generate any graph (segault / fallback font) - I've actually had this issue but managed to resolve it.

rindek avatar Apr 24 '13 16:04 rindek

Try opening a new issue in https://github.com/oetiker/rrdtool-1.x/issues Since this loop happens in the librrdtool internals, I'm not of much help. Maybe they can point out where the bug or how rrd-ffi misused the library functions some how.

morellon avatar Apr 24 '13 16:04 morellon