Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to start stonefish in Ubuntu 21.04 #15

Open
miquelmassot opened this issue Apr 29, 2022 · 1 comment
Open

Unable to start stonefish in Ubuntu 21.04 #15

miquelmassot opened this issue Apr 29, 2022 · 1 comment

Comments

@miquelmassot
Copy link

miquelmassot commented Apr 29, 2022

Hi!

I've followed the same steps to build and run stonefish and I've been able to package it in a docker container. The container works for machines with Ubuntu 22.04 out of the box, but I just found it does not in a Ubuntu 21.04 machine. This is the output in the console log:

process[stonefish_simulator-31]: started with pid [758]
[INFO] Welcome to Stonefish 1.3.                   
[CRITICAL] SDL2: Could not create GL context: BadValue (integer parameter out o$
 range for operation)                           
[stonefish_simulator-31] process has died [pid 758, exit code -6, cmd /opt/ros/$
ola2_ws/devel/lib/stonefish_ros/parsed_simulator /opt/ros/cola2_ws/src/cola2_st$
nefish/data /opt/ros/cola2_ws/src/cola2_stonefish/scenarios/sparus2_tank.scn 30$
.0 1200 800 high __name:=stonefish_simulator __log:=/home/ubuntu/.ros/log/6ac3d$
5e-c7cb-11ec-a76e-b06ebfbc057e/stonefish_simulator-31.log].
log file: /home/ubuntu/.ros/log/6ac3d35e-c7cb-11ec-a76e-b06ebfbc057e/stonefish_$
imulator-31*.log 

The PC I am running it on has an NVIDIA RTX 2070 with 8Gb graphics memory.
This is the output of nvidia-smi

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.86       Driver Version: 470.86       CUDA Version: 11.4     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:01:00.0 Off |                  N/A |
| 23%   28C    P8    26W / 175W |     65MiB /  7973MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
+-----------------------------------------------------------------------------+

and this is the output of glx-info

$ glxinfo | grep "OpenGL version"
OpenGL version string: 3.1 Mesa 21.0.3

Is there something I am missing? Is the issue with "OpenGL 4.3" being the minimum version supported?

@patrykcieslak
Copy link
Owner

patrykcieslak commented May 2, 2022

Hello!
The last part shows the problem. Yes, it is required that the OpenGL version is 4.3 or higher. The question is why your OpenGL version is not correct, because for any modern GPU you will get OpenGL 4.6 support. You need to fix the driver installation or some docker settings? I have no experience with docker.
Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants