Skip to content

Unable to start stonefish in Ubuntu 21.04 #15

@miquelmassot

Description

@miquelmassot

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions