Rviz fails to start [closed]
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 ()
does your computer have nvidia graphics card ?
@prasanna.kumar no but ati and using proprietary driver
Please run rviz in gdb (
gdb /opt/ros/groovy/lib/rviz/rviz
, on the gdb shell enterrun
), then ctrl-c it and provide a backtrace of where it is stuck (bt
).What versions of ROS and Ubuntu are you using?
@EricPerko groovy on quantal. everything is up to date.
@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.
@dgossow and sometimes it starts but it looks not normal : https://dl.dropboxusercontent.com/u/6960485/Screenshot%20from%202013-04-23%2008%3A34%3A38.png
Disable desktop effects before running RViz. Also, you need to type
run
in gdb to actually start RViz.@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!!!
Please provide the backtrace from gdb. Type
bt
after you have Ctrl-C'd it.@dgossow I updated the question with the output of 'bt'.
The backtrace doesn't give a lot of hints, unfortunately.
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 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:
@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.!!
Have you tried uninstalling the proprietary drivers?
@dgossow no, but I will need it, and it was not easy to install it !
Another thing you could try would be to
rosrun rviz rviz --opengl 210
@dgossow same.
OK, so I tested the current RViz release on an ATI machine without any problems. Probably the drivers are broken for your GPU.
Ok, so please post the full console output of these:
gdb --ex run --args /opt/ros/groovy/lib/rviz/rviz -l
anddpkg -s ros-groovy-rviz | grep Version
in your question. Maybe that gives some clues, but I'm not very optimistic.@dgossow the output of the first command is here https://dl.dropboxusercontent.com/u/6960485/cmd1 and the second is :
Version: 1.9.28-0quantal-20130326-0349-+0000
Well, nothing there that really looks RViz-related. All the Gtk errors are probably responsible for the missing GUI elements. If you wait for RViz 1.9.29 or compile it from source, the --opengl command line param will work and might do something for you.
Ok, I'll see. Thanks a bunch @dgossow.
@dgossow Well, I updated to Ver 1.9.29 and tried
rosrun rviz rviz --opengl 210
with no sucess :/ fairly strange.