Rviz fails to start [closed]

asked 2013-04-21 07:46:26 -0500

amine23 gravatar image

updated 2013-04-24 06:01:22 -0500

Hi,

I am not able to get Rviz to run

When I type in terminal:

rosrun rviz rviz

I get :

(rviz:9663): Gtk-CRITICAL **: IA__gtk_settings_set_long_property: assertion `GTK_SETTINGS (settings)' failed

(rviz:9663): Gtk-CRITICAL **: IA__gtk_settings_set_long_property: assertion `GTK_SETTINGS (settings)' failed

and nothing happen.

Any clues ??

EDIT:

@dgossow I think Gazebo is gtk based. I get the same gtk-critical stuff but it works fine.

I typed the command you wrotte, and it does not even want to halt when I press ctrl-c :

Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /opt/ros/groovy/lib/rviz/rviz...(no debugging symbols found)...done.
(gdb) ^CQuit
(gdb) ^CQuit
(gdb) ^CQuit

EDIT2:

Here is the backtrance :

#0  0xb7fdd424 in __kernel_vsyscall ()
#1  0xb6fc65f0 in poll () from /lib/i386-linux-gnu/libc.so.6
#2  0xb576674b in g_poll () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0xb5757d00 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4  0xb5757e61 in g_main_context_iteration ()
   from /lib/i386-linux-gnu/libglib-2.0.so.0
#5  0xb5fb39a1 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#6  0xb73899aa in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#7  0xb5f8028c in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#8  0xb5f80581 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/i386-linux-gnu/libQtCore.so.4
#9  0xb5f85cda in QCoreApplication::exec() ()
   from /usr/lib/i386-linux-gnu/libQtCore.so.4
#10 0xb72d0fc4 in QApplication::exec() ()
   from /usr/lib/i386-linux-gnu/libQtGui.so.4
#11 0x08048da7 in main ()
edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2015-12-12 01:24:14.421250

Comments

does your computer have nvidia graphics card ?

prasanna.kumar gravatar image prasanna.kumar  ( 2013-04-21 07:53:17 -0500 )edit

@prasanna.kumar no but ati and using proprietary driver

amine23 gravatar image amine23  ( 2013-04-21 20:38:00 -0500 )edit

Please run rviz in gdb (gdb /opt/ros/groovy/lib/rviz/rviz, on the gdb shell enter run), then ctrl-c it and provide a backtrace of where it is stuck (bt).

dgossow gravatar image dgossow  ( 2013-04-22 05:36:13 -0500 )edit

What versions of ROS and Ubuntu are you using?

Eric Perko gravatar image Eric Perko  ( 2013-04-22 06:20:39 -0500 )edit

@EricPerko groovy on quantal. everything is up to date.

amine23 gravatar image amine23  ( 2013-04-22 07:25:38 -0500 )edit

@dgossow when I run it from gdb without roscore it starts and tell me waiting for master. If I run roscore : sometimes it doesn't start, it give the same gtk-critical msgs and when I ctrl-c it I get : Program received signal SIGINT, Interrupt. 0xb4de777f in ?? () from /lib/i386-linux-gnu/libpcre.so.

amine23 gravatar image amine23  ( 2013-04-22 21:24:10 -0500 )edit
amine23 gravatar image amine23  ( 2013-04-22 21:35:19 -0500 )edit

Disable desktop effects before running RViz. Also, you need to type run in gdb to actually start RViz.

dgossow gravatar image dgossow  ( 2013-04-23 08:15:09 -0500 )edit

@dgossow I appreciate your help, but disabling desktop effect did not work either. Yes sure I had to type 'run' to get it to work but not normally as shown in the picture above. REALLY NEED IT!!!

amine23 gravatar image amine23  ( 2013-04-24 03:13:22 -0500 )edit

Please provide the backtrace from gdb. Type bt after you have Ctrl-C'd it.

dgossow gravatar image dgossow  ( 2013-04-24 05:27:26 -0500 )edit

@dgossow I updated the question with the output of 'bt'.

amine23 gravatar image amine23  ( 2013-04-24 06:02:15 -0500 )edit

The backtrace doesn't give a lot of hints, unfortunately.

dgossow gravatar image dgossow  ( 2013-04-24 11:05:39 -0500 )edit

Please post the output of glxinfo | grep OpenGL. Also, did you successfully run other ROS nodes on your system? It might be a network misconfiguration. It might also be that RViz is blocked trying to create the .rviz directory in your home folder. Do you have you home directory on a network drive?

dgossow gravatar image dgossow  ( 2013-04-24 11:09:10 -0500 )edit

@dgossow the outuput: OpenGL vendor string: Advanced Micro Devices, Inc. OpenGL renderer string: AMD Radeon HD 6700M Series OpenGL version string: 4.2.12002 Compatibility Profile Context 9.012 OpenGL shading language version string: 4.20 OpenGL extensions:

amine23 gravatar image amine23  ( 2013-04-24 21:19:40 -0500 )edit

@dgossow Other ROS nodes works well. The folder .rviz has been created in the home. Don't have a network drive. But as you have seen in the picture rviz did start from gdb but some buttons do not apear.!!

amine23 gravatar image amine23  ( 2013-04-24 21:23:29 -0500 )edit