RobotecAI / RGLGazeboPlugin

Other
56 stars 10 forks source link

Trying to run `ign gazebo sonoma_with_rgl.sdf` has OGRE_EXCEPTION RenderingAPIException #20

Closed adamsj-ros closed 1 year ago

adamsj-ros commented 1 year ago

versions

nvcc/CUDA

nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Tue_Aug_15_22:02:13_PDT_2023
Cuda compilation tools, release 12.2, V12.2.140
Build cuda_12.2.r12.2/compiler.33191640_0

Nvidia driver version 535.104.05

ign gazebo (latest available)

6.15.0

RGLGazeboPlugin repo at hash 2be4728693e7ccb4e69ef967116af2a4c7ab9c21 (current HEAD of main)

Using prebuilt v0.1.2 of the plugins installed in /usr/lib/x86_64-linux-gnu/ign-gazebo-6/plugins and for completeness set the IGN_GAZEBO_SYSTEM_PLUGIN_PATH and IGN_GUI_PLUGIN_PATH environment variables. to the same path.

steps and results

  1. cd into the test_world directory in the repo
  2. execute ign gazebo sonoma_with_rgl.sdf terminal output
    [Wed Aug 30 12:38:32 2023]: Logging configured: level=info, file=(disabled), stdout=true
    [12:38:32][     9 us][info]: RGL Version 0.11.3 branch=stable commitSHA1=e5ea8a1a74c253a304f4d1d4652391bca9d448e6
    [12:38:32][  2940 us][info]: Running on GPU: NVIDIA RTX A1000 Laptop GPU
    [12:38:32][     5 us][info]: Built against OptiX SDK version: 7.2.0
    [12:38:32][     2 us][info]: Built against OptiX ABI version: 41
    [12:38:32][     1 us][info]: Built against CUDA Toolkit version: 11.2
    [12:38:32][     2 us][info]: Installed CUDA runtime version: 11.2
    [12:38:32][     1 us][info]: Installed CUDA driver version: 12.2
    [12:38:32][  4355 us][info]: Installed NVidia kernel driver version: 535.104.05
    [Wed Aug 30 12:38:32 2023]: Logging configured: level=error, file=(disabled), stdout=true
    libEGL warning: egl: failed to create dri2 screen
    libEGL warning: egl: failed to create dri2 screen
    libEGL warning: egl: failed to create dri2 screen
    libEGL warning: egl: failed to create dri2 screen
    [GUI] [Err] [Ogre2Camera.cc:390] Ogre2Camera::SetVisibilityMask: Mask bits c0000000 are set but will be ignored by ogre2 backend.
    [Err] [Ogre2Camera.cc:390] Ogre2Camera::SetVisibilityMask: Mask bits c0000000 are set but will be ignored by ogre2 backend.
    [Err] [RenderPassSystem.cc:56] RenderPass of typeid 'N8ignition9rendering2v614DistortionPassE' is not registered
    [Err] [Ogre2Camera.cc:390] Ogre2Camera::SetVisibilityMask: Mask bits c0000000 are set but will be ignored by ogre2 backend.
    [Err] [RenderPassSystem.cc:56] RenderPass of typeid 'N8ignition9rendering2v614DistortionPassE' is not registered
    [Err] [Ogre2Camera.cc:390] Ogre2Camera::SetVisibilityMask: Mask bits c0000000 are set but will be ignored by ogre2 backend.
    [Err] [RenderPassSystem.cc:56] RenderPass of typeid 'N8ignition9rendering2v614DistortionPassE' is not registered
    [Err] [Ogre2Camera.cc:390] Ogre2Camera::SetVisibilityMask: Mask bits c0000000 are set but will be ignored by ogre2 backend.
    [Err] [RenderPassSystem.cc:56] RenderPass of typeid 'N8ignition9rendering2v614DistortionPassE' is not registered
  3. press play window crashes and get the additional terminal print of
    terminate called after throwing an instance of 'Ogre::RenderingAPIException'
    what():  OGRE EXCEPTION(3:RenderingAPIException): Vertex Program PointCloudVS_GLSL failed to compile. See compile log above for details. in GLSLShader::compile at /build/ogre-next-UFfg83/ogre-next-2.2.5+dfsg3/RenderSystems/GL3Plus/src/GLSL/OgreGLSLShader.cpp (line 311)
    Stack trace (most recent call last) in thread 14225:
    #10   Object "[0xffffffffffffffff]", at 0xffffffffffffffff, in 
    #9    Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7fb5d6b269ff, in 
    #8    Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7fb5d6a94b42, in 
    #7    Object "/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7fb5d009199d, in 
    #6    Object "/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7fb5d008ff90, in qTerminate()
    #5    Object "/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7fb5d22ae276, in std::terminate()
    #4    Object "/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7fb5d22ae20b, in 
    #3    Object "/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7fb5d22a2b9d, in 
    #2    Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7fb5d6a287f2, in abort
    #1    Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7fb5d6a42475, in raise
    #0    Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7fb5d6a96a7c, in pthread_kill
    Aborted (Signal sent by tkill() 14058 1000)
msz-rai commented 1 year ago

Hi @adamsj-ros Thank you for the report. The error is similar to the issue we have already solved in the past. Could you try the solution from this comment?

adamsj-ros commented 1 year ago

I read a little more about that and just-for-reference, on PopOS you want to set Hybrid mode. This prevented this issue. Peek 2023-09-02 17-45

adamsj-ros commented 1 year ago

Pop OS didn't appear to have prime-select available but can use Hybrid Graphics instead.