Rviz fails to start
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 ()
Asked by amine23 on 2013-04-21 07:46:26 UTC
Comments
does your computer have nvidia graphics card ?
Asked by prasanna.kumar on 2013-04-21 07:53:17 UTC
@prasanna.kumar no but ati and using proprietary driver
Asked by amine23 on 2013-04-21 20:38:00 UTC
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
).Asked by dgossow on 2013-04-22 05:36:13 UTC
What versions of ROS and Ubuntu are you using?
Asked by Eric Perko on 2013-04-22 06:20:39 UTC
@EricPerko groovy on quantal. everything is up to date.
Asked by amine23 on 2013-04-22 07:25:38 UTC
@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.
Asked by amine23 on 2013-04-22 21:24:10 UTC
@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
Asked by amine23 on 2013-04-22 21:35:19 UTC
Disable desktop effects before running RViz. Also, you need to type
run
in gdb to actually start RViz.Asked by dgossow on 2013-04-23 08:15:09 UTC
@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!!!
Asked by amine23 on 2013-04-24 03:13:22 UTC
Please provide the backtrace from gdb. Type
bt
after you have Ctrl-C'd it.Asked by dgossow on 2013-04-24 05:27:26 UTC
@dgossow I updated the question with the output of 'bt'.
Asked by amine23 on 2013-04-24 06:02:15 UTC
The backtrace doesn't give a lot of hints, unfortunately.
Asked by dgossow on 2013-04-24 11:05:39 UTC
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?Asked by dgossow on 2013-04-24 11:09:10 UTC
@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:
Asked by amine23 on 2013-04-24 21:19:40 UTC
@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.!!
Asked by amine23 on 2013-04-24 21:23:29 UTC
Have you tried uninstalling the proprietary drivers?
Asked by dgossow on 2013-04-25 06:00:02 UTC
@dgossow no, but I will need it, and it was not easy to install it !
Asked by amine23 on 2013-04-25 06:02:32 UTC
Another thing you could try would be to
rosrun rviz rviz --opengl 210
Asked by dgossow on 2013-04-25 06:04:36 UTC
@dgossow same.
Asked by amine23 on 2013-04-25 06:06:04 UTC
OK, so I tested the current RViz release on an ATI machine without any problems. Probably the drivers are broken for your GPU.
Asked by dgossow on 2013-04-25 08:20:25 UTC
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.Asked by dgossow on 2013-04-25 08:21:14 UTC
@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
Asked by amine23 on 2013-04-25 14:37:05 UTC
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.
Asked by dgossow on 2013-04-29 17:04:32 UTC
Ok, I'll see. Thanks a bunch @dgossow.
Asked by amine23 on 2013-04-29 21:23:29 UTC
@dgossow Well, I updated to Ver 1.9.29 and tried
rosrun rviz rviz --opengl 210
with no sucess :/ fairly strange.Asked by amine23 on 2013-05-09 16:15:28 UTC