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

generating graph sometimes loops glib on OSX 10.7.5 #24

Open
rindek opened this issue Apr 2, 2013 · 10 comments
Open

generating graph sometimes loops glib on OSX 10.7.5 #24

rindek opened this issue Apr 2, 2013 · 10 comments

Comments

@rindek
Copy link

rindek commented Apr 2, 2013

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

@morellon
Copy link
Owner

morellon commented Apr 8, 2013

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?

@rindek
Copy link
Author

rindek commented Apr 8, 2013

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
Copy link
Author

rindek commented Apr 8, 2013

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

@morellon
Copy link
Owner

morellon commented Apr 8, 2013

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

@rindek
Copy link
Author

rindek commented Apr 8, 2013

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
Copy link
Author

rindek commented Apr 24, 2013

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 :)

@charleskirk
Copy link

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

@morellon
Copy link
Owner

Hey guys, please check Homebrew/legacy-homebrew#13587
See if it is the same issue as yours.

@rindek
Copy link
Author

rindek commented Apr 24, 2013

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.

@morellon
Copy link
Owner

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.

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

3 participants