rviz does not start, no error messages
Hello, I have been trying to run rviz (ros kinetic) on an Ubutnu 16.04 machine, but I am not having any luck. The messages look right and stop at OpenGL version: 3 (GLSL 1.3)
. I have checked everything I could find online (obviously to no avail):
Edit: I'm running it with rosrun rviz rviz
- Running with --debug does not produce anything useful
rosrun --debug rviz rviz
- Running something like image_view works - so some of the underlying libraries are still working
rosrun image_view image_view image:=/camera/rgb/image_color
- Trying to start with
export LIBGL_ALWAYS_SOFTWARE=1
does not resolve the problem. Also, OpenGL still stays at 3LIBGL_ALWAYS_SOFTWARE=1 rosrun rviz rviz
- Running under
gdb
only tells me that two threads exit shortly after rviz is started. Does not tell me what they are doing or even if they are the problem. For all I know, this could be rviz loading config. This was run usinggdb -ex run /opt/ros/kinetic/lib/rviz/rviz
.
An additional clue is that the ubuntu launcher icon for Rviz does not have a filled triangle on the left - this implies that the application does not have a window.
Edit:
The machine I am running it on is:
- Bare metal
- Ubuntu 16.04, kernel 4.15
- i7 3770
The graphics driver info is:
*-display
description: VGA compatible controller
product: Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 09
width: 64 bits
clock: 33MHz
capabilities: msi pm vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: irq:29 memory:f7800000-f7bfffff memory:e0000000-efffffff ioport:f000(size=64) memory:c0000-dffff
Also, the following command as per this response:
user@computer-2:~$ modinfo i915 | grep filename
produces
filename: /lib/modules/4.15.0-24-generic/kernel/drivers/gpu/drm/i915/i915.ko
I tested OpenGL using glmark2
, as suggested below, and it worked. However, the version of OpenGL is 3, not 4.6. It is using the mesa 17.* drivers, if that matters.
What command are you using to run it?
'rosrun rviz rviz'
Do you have the proper drivers installed? If you have an Nvidia card, install the nvidia binary drivers. If this is a Virtual Machine, it's going to be difficult.
I have updated the original question. I have an onboard GPU in the processor that I am using. It was already using the i915 driver, I have just updated it to the latest one as well. However, this has not resolved the issue :/.
RViz uses OpenGL extensively. Without that working, it won't start, or it'll be very slow.
Can you run other OpenGL applications?
Hi, thank you for your response. I tested OpenGL with
glmark2
and it worked - the horse pops up and spins around. glmark reports OpenGL version 3, using the mesa 17.* drivers (so quite recent).