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

Unknown Error #44

Open
maddy-weaver opened this issue Aug 9, 2023 · 2 comments
Open

Unknown Error #44

maddy-weaver opened this issue Aug 9, 2023 · 2 comments

Comments

@maddy-weaver
Copy link

Hi!
I have installed SOFA v22.12 on a virtual machine with Ubuntu 22.04LTS.
I am trying to run the example test script and it throws an error I am not sure how to fix:

(sofa) vboxuser@Sofa:~/Downloads/SofaGym$ python test_env.py -e trunk-v0 -ep 100 -s 100
---------------------------------------
Checking SOFA_ROOT and SOFAPYTHON3_ROOT
Using environment variable SOFA_ROOT: /home/vboxuser/SOFA/v22.12.00
---------------------------------------
pygame 2.5.0 (SDL 2.28.0, Python 3.8.17)
Hello from the pygame community. https://www.pygame.org/contribute.html
[INFO]    [PluginManager] Loaded plugin: /home/vboxuser/SOFA/v22.12.00/lib/libSofa.Component.so
56975
/home/vboxuser/anaconda3/envs/sofa/lib/python3.8/site-packages/gym/spaces/box.py:73: UserWarning: WARN: Box bound precision lowered by casting to float32
  logger.warn(
Start env  trunk-v0
---------------------------------------
Checking SOFA_ROOT and SOFAPYTHON3_ROOT
Using environment variable SOFA_ROOT: /home/vboxuser/SOFA/v22.12.00
---------------------------------------
pygame 2.5.0 (SDL 2.28.0, Python 3.8.17)
Hello from the pygame community. https://www.pygame.org/contribute.html
[INFO]    [PluginManager] Loaded plugin: /home/vboxuser/SOFA/v22.12.00/lib/libSofa.Component.so
[INFO]    [PluginManager] Loaded plugin: /home/vboxuser/SOFA/v22.12.00/plugins/STLIB/lib/libSTLIB.so
[INFO]    [PluginManager] Loaded plugin: /home/vboxuser/SOFA/v22.12.00/plugins/SoftRobots/lib/libSoftRobots.so
[DEPRECATED] [SofaSparseSolver] SofaSparseSolver is deprecated. It will be removed at v23.06. Use Sofa.Component.LinearSolver.Direct instead.
[INFO]    [PluginManager] Loaded plugin: /home/vboxuser/SOFA/v22.12.00/lib/libSofa.Component.LinearSolver.Direct.so
[INFO]    [PluginManager] Loaded plugin: /home/vboxuser/SOFA/v22.12.00/collections/SofaSparseSolver/lib/libSofaSparseSolver.so
[DEPRECATED] [SofaPreconditioner] SofaPreconditioner is deprecated. It will be removed at v23.06. Use Sofa.Component.LinearSolver.Preconditioner and Sofa.Component.LinearSolver.Iterative instead.
[INFO]    [PluginManager] Loaded plugin: /home/vboxuser/SOFA/v22.12.00/lib/libSofa.Component.LinearSolver.Preconditioner.so
[INFO]    [PluginManager] Loaded plugin: /home/vboxuser/SOFA/v22.12.00/lib/libSofa.Component.LinearSolver.Iterative.so
[INFO]    [PluginManager] Loaded plugin: /home/vboxuser/SOFA/v22.12.00/collections/SofaPreconditioner/lib/libSofaPreconditioner.so
[INFO]    [SofaPython3] Initializing with python version 3.8.17 (default, Jul  5 2023, 21:04:15) 
[GCC 11.2.0]
[INFO]    [SofaPython3] Shared library name is 'libpython3.8m.so'
[INFO]    [SofaPython3] Added '/home/vboxuser/SOFA/v22.12.00/plugins/SofaPython3/lib/python3/site-packages' to sys.path
[INFO]    [PluginManager] Loaded plugin: /home/vboxuser/SOFA/v22.12.00/plugins/SofaPython3/lib/libSofaPython3.so
[INFO]    [PluginManager] Loaded plugin: /home/vboxuser/SOFA/v22.12.00/plugins/BeamAdapter/lib/libBeamAdapter.so
[DEPRECATED] [SofaOpenglVisual] SofaOpenglVisual is deprecated;. Use Sofa.GL.Component.Rendering2D, Sofa.GL.Component.Rendering3D and Sofa.GL.Component.Shader instead.
[INFO]    [PluginManager] Loaded plugin: /home/vboxuser/SOFA/v22.12.00/lib/libSofa.GL.Component.Rendering2D.so
[INFO]    [PluginManager] Loaded plugin: /home/vboxuser/SOFA/v22.12.00/lib/libSofa.GL.Component.Rendering3D.so
[INFO]    [PluginManager] Loaded plugin: /home/vboxuser/SOFA/v22.12.00/lib/libSofa.GL.Component.Shader.so
[INFO]    [PluginManager] Loaded plugin: /home/vboxuser/SOFA/v22.12.00/collections/SofaOpenglVisual/lib/libSofaOpenglVisual.so
[DEPRECATED] [SofaMiscCollision] SofaMiscCollision is deprecated. It will be removed at v23.06. Use Sofa.Component.Collision.Geometry, Sofa.Component.Collision.Detection.Intersection and Sofa.Component.Collision.Response.Contact instead.
[DEPRECATED] [SofaMiscCollision] If you are looking for OBB and Capsule-related components, please use the external plugin CollisionOBBCapsule.
[INFO]    [PluginManager] Loaded plugin: /home/vboxuser/SOFA/v22.12.00/lib/libSofa.Component.Collision.Geometry.so
[INFO]    [PluginManager] Loaded plugin: /home/vboxuser/SOFA/v22.12.00/lib/libSofa.Component.Collision.Detection.Intersection.so
[INFO]    [PluginManager] Loaded plugin: /home/vboxuser/SOFA/v22.12.00/lib/libSofa.Component.Collision.Response.Contact.so
[INFO]    [PluginManager] Loaded plugin: /home/vboxuser/SOFA/v22.12.00/collections/SofaMiscCollision/lib/libSofaMiscCollision.so
[DEPRECATED] [SofaBoundaryCondition] SofaBoundaryCondition is deprecated. It will be removed at v23.06. You may use Sofa.Component.Constraint.Projective and Sofa.Component.MechanicalLoad instead.
[INFO]    [PluginManager] Loaded plugin: /home/vboxuser/SOFA/v22.12.00/lib/libSofa.Component.Constraint.Projective.so
[INFO]    [PluginManager] Loaded plugin: /home/vboxuser/SOFA/v22.12.00/lib/libSofa.Component.MechanicalLoad.so
[INFO]    [PluginManager] Loaded plugin: /home/vboxuser/SOFA/v22.12.00/collections/SofaBoundaryCondition/lib/libSofaBoundaryCondition.so
[DEPRECATED] [SofaConstraint] SofaConstraint is deprecated. It will be removed at v23.06. You may use Sofa.Component.Mapping.MappedMatrix, Sofa.Component.Constraint.Lagrangian.Model, Sofa.Component.Constraint.Lagrangian.Correction, Sofa.Component.Constraint.Lagrangian.Solver, Sofa.Component.AnimationLoop, Sofa.Component.Collision.Detection.Intersection and Sofa.Component.Collision.Response.Contact instead.
[INFO]    [PluginManager] Loaded plugin: /home/vboxuser/SOFA/v22.12.00/lib/libSofa.Component.Mapping.MappedMatrix.so
[INFO]    [PluginManager] Loaded plugin: /home/vboxuser/SOFA/v22.12.00/lib/libSofa.Component.Constraint.Lagrangian.Model.so
[INFO]    [PluginManager] Loaded plugin: /home/vboxuser/SOFA/v22.12.00/lib/libSofa.Component.Constraint.Lagrangian.Correction.so
[INFO]    [PluginManager] Loaded plugin: /home/vboxuser/SOFA/v22.12.00/lib/libSofa.Component.Constraint.Lagrangian.Solver.so
[INFO]    [PluginManager] Loaded plugin: /home/vboxuser/SOFA/v22.12.00/lib/libSofa.Component.AnimationLoop.so
[INFO]    [PluginManager] Loaded plugin: /home/vboxuser/SOFA/v22.12.00/collections/SofaConstraint/lib/libSofaConstraint.so
[DEPRECATED] [SofaEngine] SofaEngine is deprecated. It will be removed at v23.06. Use Sofa.Component.Engine.Select instead.
[INFO]    [PluginManager] Loaded plugin: /home/vboxuser/SOFA/v22.12.00/lib/libSofa.Component.Engine.Select.so
[INFO]    [PluginManager] Loaded plugin: /home/vboxuser/SOFA/v22.12.00/collections/SofaEngine/lib/libSofaEngine.so
[DEPRECATED] [SofaImplicitOdeSolver] SofaImplicitOdeSolver is deprecated. It will be removed at v23.06. Use Sofa.Component.ODESolver.Backward instead.
[INFO]    [PluginManager] Loaded plugin: /home/vboxuser/SOFA/v22.12.00/lib/libSofa.Component.ODESolver.Backward.so
[INFO]    [PluginManager] Loaded plugin: /home/vboxuser/SOFA/v22.12.00/collections/SofaImplicitOdeSolver/lib/libSofaImplicitOdeSolver.so
[DEPRECATED] [SofaLoader] SofaLoader is deprecated. It will be removed at v23.06. Use Sofa.Component.IO.Mesh instead.
[INFO]    [PluginManager] Loaded plugin: /home/vboxuser/SOFA/v22.12.00/lib/libSofa.Component.IO.Mesh.so
[INFO]    [PluginManager] Loaded plugin: /home/vboxuser/SOFA/v22.12.00/collections/SofaLoader/lib/libSofaLoader.so
[DEPRECATED] [SofaSimpleFem] SofaSimpleFem is deprecated;. It will be removed at v23.06. You may use Sofa.Component.Diffusion and Sofa.Component.SolidMechanics.FEM.Elastic instead.
[INFO]    [PluginManager] Loaded plugin: /home/vboxuser/SOFA/v22.12.00/lib/libSofa.Component.Diffusion.so
[INFO]    [PluginManager] Loaded plugin: /home/vboxuser/SOFA/v22.12.00/lib/libSofa.Component.SolidMechanics.FEM.Elastic.so
[INFO]    [PluginManager] Loaded plugin: /home/vboxuser/SOFA/v22.12.00/collections/SofaSimpleFem/lib/libSofaSimpleFem.so
[WARNING] [GenericConstraintCorrection(unnamed)] String data "solverName" is now replaced by explicit data link: "linearSolver" (PR #3152)
[DEPRECATED] [BruteForceDetection(BruteForceDetection)] As a replacement, use a BroadPhase component, such as [BruteForceBroadPhase, IncrSAP],  
  AND a NarrowPhase component, such as [BVHNarrowPhase, DirectSAPNarrowPhase, IncrSAP, RayTraceNarrowPhase].  
  BruteForceBroadPhase and BVHNarrowPhase have been automatically added to your scene for backward compatibility.
libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  148 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Value in failed request:  0x0
  Serial number of failed request:  106
  Current serial number in output stream:  107
(sofa) vboxuser@Sofa:~/Downloads/SofaGym$ [ERROR]   [SofaRuntime] ConnectionRefusedError: [Errno 111] Connection refused
Traceback (most recent call last):
  File "/home/vboxuser/Downloads/SofaGym/sofagym/rpc_client.py", line 181, in <module>
    task = s.getNextTask(stateId)
  File "/home/vboxuser/anaconda3/envs/sofa/lib/python3.8/xmlrpc/client.py", line 1109, in __call__
    return self.__send(self.__name, args)
  File "/home/vboxuser/anaconda3/envs/sofa/lib/python3.8/xmlrpc/client.py", line 1450, in __request
    response = self.__transport.request(
  File "/home/vboxuser/anaconda3/envs/sofa/lib/python3.8/xmlrpc/client.py", line 1153, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/home/vboxuser/anaconda3/envs/sofa/lib/python3.8/xmlrpc/client.py", line 1165, in single_request
    http_conn = self.send_request(host, handler, request_body, verbose)
  File "/home/vboxuser/anaconda3/envs/sofa/lib/python3.8/xmlrpc/client.py", line 1278, in send_request
    self.send_content(connection, request_body)
  File "/home/vboxuser/anaconda3/envs/sofa/lib/python3.8/xmlrpc/client.py", line 1308, in send_content
    connection.endheaders(request_body)
  File "/home/vboxuser/anaconda3/envs/sofa/lib/python3.8/http/client.py", line 1251, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/home/vboxuser/anaconda3/envs/sofa/lib/python3.8/http/client.py", line 1011, in _send_output
    self.send(msg)
  File "/home/vboxuser/anaconda3/envs/sofa/lib/python3.8/http/client.py", line 951, in send
    self.connect()
  File "/home/vboxuser/anaconda3/envs/sofa/lib/python3.8/http/client.py", line 922, in connect
    self.sock = self._create_connection(
  File "/home/vboxuser/anaconda3/envs/sofa/lib/python3.8/socket.py", line 808, in create_connection
    raise err
  File "/home/vboxuser/anaconda3/envs/sofa/lib/python3.8/socket.py", line 796, in create_connection
    sock.connect(sa)
@EtienneMenager
Copy link
Collaborator

Hello,

It seems that there is a problem with libGL. Can you try without visualisation?

Let me know,

Etienne

@alxbilger
Copy link
Member

Hi @maddy-weaver,

have you been able to solve your issue?

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

3 participants