Gtk, massive warnings from gobject?

541 views
Skip to first unread message

Andreas Lobinger

unread,
Nov 17, 2013, 9:14:26 AM11/17/13
to julia...@googlegroups.com


Hello colleagues,

i didn't use it for some time, so i updated julia to 0.2.0+15 and rebuild my package directory.

lobi@maroon:~$ julia/julia
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "help()" to list help topics
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.2.0+15 (2013-11-17 02:19 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit ebb70ad (0 days old master)
|__/                   |  i686-linux-gnu

julia> Pkg.update()
INFO: Updating METADATA...
INFO: Computing changes...
INFO: No packages to install, update or remove.

 
julia> using Gtk

(process:2530): GLib-CRITICAL **: g_hash_table_lookup: assertion `hash_table != NULL' failed

(process:2530): GLib-CRITICAL **: g_hash_table_lookup: assertion `hash_table != NULL' failed

(process:2530): GLib-CRITICAL **: g_hash_table_lookup: assertion `hash_table != NULL' failed

(process:2530): GLib-CRITICAL **: g_hash_table_lookup: assertion `hash_table != NULL' failed

(process:2530): GLib-CRITICAL **: g_hash_table_lookup: assertion `hash_table != NULL' failed

(process:2530): GLib-CRITICAL **: g_hash_table_lookup: assertion `hash_table != NULL' failed

(process:2530): GLib-CRITICAL **: g_hash_table_lookup: assertion `hash_table != NULL' failed

julia> w = Gtk.Window("title",200,300)
GtkWindow(
(julia:2530): GLib-GObject-WARNING **: /build/buildd/glib2.0-2.32.4/./gobject/gtype.c:4206: type id `0' is invalid

(julia:2530): GLib-GObject-WARNING **: can't peek value table for type `<invalid>' which is not currently referenced

(julia:2530): GLib-GObject-WARNING **: /build/buildd/glib2.0-2.32.4/./gobject/gvalue.c:192: cannot initialize GValue with type `(null)', this type has no GTypeValueTable implementation
user-data
(julia:2530): GLib-GObject-CRITICAL **: g_value_type_transformable: assertion `G_TYPE_IS_VALUE (dest_type)' failed
, name
(julia:2530): GLib-GObject-CRITICAL **: g_value_type_transformable: assertion `G_TYPE_IS_VALUE (dest_type)' failed
, parent

repeated for some other properties.

Any idea? Version missmatch?

Wishing a happy day,
       Andreas

Jameson Nash

unread,
Nov 17, 2013, 10:11:41 AM11/17/13
to julia...@googlegroups.com
Which version of glib is on your system?

Andreas Lobinger

unread,
Nov 17, 2013, 11:01:22 AM11/17/13
to julia...@googlegroups.com

looks like
 /usr/lib/i386-linux-gnu/libglib-2.0.so
2
32
4

Jameson Nash

unread,
Nov 17, 2013, 1:51:53 PM11/17/13
to julia...@googlegroups.com
Thanks, it's fixed now. I had been doing all my recent testing with a
newer version of glib.

Andreas Lobinger

unread,
Nov 18, 2013, 12:11:06 PM11/18/13
to julia...@googlegroups.com
Well, i get now no complaints with using Gtk and i get a window with w = Gtk.Window("title",x,y).

But now:

julia> canvas = Gtk.Canvas(Gtk.Window("GraphViz"),512,512)
ERROR: no method GtkCanvas(GtkWindow,Int32,Int32)

btw: I feel bad about broadcasting error questions on julia-users, shall i move to the git,issues of Gtk.jl?

Stefan Karpinski

unread,
Nov 18, 2013, 12:17:04 PM11/18/13
to Julia Users
That's probably a better venue since you know it's a problem with a specific package.

Jameson Nash

unread,
Nov 18, 2013, 1:31:15 PM11/18/13
to julia...@googlegroups.com
Every Gtk object is a container of its child elements and an associative mapping to its properties. This differs from Tk, where every object is a leaf node and properties have separate accessors. So the error is saying that you can't put a window in a canvas. Open an issue that I need to start writing the documentation. 
Reply all
Reply to author
Forward
0 new messages