ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
2

image_view giving glib errors and not displaying a window

asked 2012-06-05 21:28:29 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

When I try to launch image_view no window is display and I get these errors on stderr.

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

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

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

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

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

(process:8973): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

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

(process:8973): GLib-GObject-CRITICAL **: g_type_interface_add_prerequisite: assertion `G_TYPE_IS_INTERFACE (interface_type)' failed

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

(process:8973): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

(process:8973): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)' in cast to `<invalid>'

(process:8973): GLib-GObject-WARNING **: instance of invalid non-instantiatable type `(null)'

(process:8973): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

What could be causing this? I'm running Gentoo and have installed ROS manually. On other systems I have not had problems and have not seen these error messages.

edit retag flag offensive close merge delete

4 Answers

Sort by ยป oldest newest most voted
1

answered 2012-06-06 01:40:54 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I guess on Gentoo you have a much more recent version of glib. You will have to patch image_view manually. Did you try adding a call to g_type_init() somewhere in image_view as the error message suggests?

edit flag offensive delete link more
1

answered 2014-05-21 03:31:47 -0500

MartinHummel gravatar image

Hi, I have the same problem running ROS Indigo on a Linux Mint 17 (trusty) image.

tobias@ros-engine:~/find_obj_2d_ws$ rosrun image_view image_view image:=/camera/image _image_transport:=comprsed init done opengl support available

(image_view:43558): GLib-GObject-WARNING **: invalid uninstantiatable type '(null)' in cast to 'GtkWidget'

(image_view:43558): GLib-GObject-WARNING **: instance of invalid non-instantiatable type '(null)'

(image_view:43558): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

Can you tell how to patch image_view?

edit flag offensive delete link more

Comments

Also getting the same problem. There must be some problem with Indigo version of image_view. Any tips?

TSC gravatar image TSC  ( 2014-06-25 13:08:51 -0500 )edit

I also getting this erro with indigo

weblucas gravatar image weblucas  ( 2015-01-19 07:03:38 -0500 )edit
0

answered 2015-02-13 08:27:05 -0500

Exact same problem in Ubuntu 14.04 x64 with Indigo version of image_view! Anyone out there with a fix?

edit flag offensive delete link more
0

answered 2015-03-24 20:36:41 -0500

lilouch gravatar image

updated 2015-03-24 20:41:40 -0500

Same problem ! I didn't find a solution. Instead i used rosrun rqt_image_view rqt_image_view and it seems to work. I can choose the topic i want.

But i also would like to use image_view correctly.

Thank for helping.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2012-06-05 21:28:29 -0500

Seen: 1,753 times

Last updated: Mar 24 '15