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

Ogre exception duplicated resource name #1049

Closed
phil0stine opened this issue Sep 26, 2016 · 3 comments
Closed

Ogre exception duplicated resource name #1049

phil0stine opened this issue Sep 26, 2016 · 3 comments

Comments

@phil0stine
Copy link
Contributor

phil0stine commented Sep 26, 2016

This applies to a non-standard configuration (Ogre 1.10 on OSX and rviz branch osx_ogre_1_9), but it seems like it might apply more broadly so I am reporting.

After successful compilation, running rviz gives the error:

OGRE EXCEPTION(4:ItemIdentityException): Resource with the name rviz/glsl120/include/pass_depth.vert already exists. in ResourceManager::add at /tmp/ogre/OgreMain/src/OgreResourceManager.cpp (line 168)

Looking at the GLSL .program files, there do appear to be 2 instances of the same name, rviz/glsl120/include/pass_depth.vert, in
glsl120 and gsl120/nogp.

My naive workaround was to rename the resource in glsl120/nogp to be rviz/glsl120/nogp/pass_depth.vert, which resolved the exception and rviz seems to be working fine.

@wjwwood wjwwood added the bug label Oct 17, 2016
@wjwwood wjwwood added this to the untargeted milestone Oct 17, 2016
@wjwwood
Copy link
Member

wjwwood commented Oct 17, 2016

Can you open a pull request to this effect. It sounds like a worthwhile change.

@tanay-bits
Copy link

tanay-bits commented Apr 19, 2018

I'm still seeing this error despite recompiling after applying #1063. My OGRE version is 1.10.11 (Xalafu), and I'm using an older rviz (version 1.11.8 on indigo). The exact error I get is:

[ERROR] [1524151129.545731714]: ItemIdentityException: Resource with the name rviz/glsl120/include/pass_depth.vert already exists. in ResourceManager::add at /home/vecna/ogre-ws/ogre-1.10.11/OgreMain/src/OgreResourceManager.cpp (line 158)
terminate called after throwing an instance of 'Ogre::ItemIdentityException'
what(): ItemIdentityException: Resource with the name rviz/glsl120/include/pass_depth.vert already exists. in ResourceManager::add at /home/vecna/ogre-ws/ogre-1.10.11/OgreMain/src/OgreResourceManager.cpp (line 158)
Aborted (core dumped)

I have built my OGRE and rviz from source with the stereo flags on. I use this command to compile rviz:
PKG_CONFIG_PATH=/path/to/ogre-installation/lib/pkgconfig:${PKG_CONFIG_PATH} catkin_make --cmake-args -DCMAKE_SHARED_LINKER_FLAGS:STRING=" -Wl,-rpath,/path/to/ogre-installation/lib" -DCMAKE_CXX_FLAGS:STRING="-DOGRE_STEREO_ENABLE=1" -DUseQt5:BOOL="0"
as mentioned in this tutorial.
Any ideas about how I could resolve this would be much appreciated!

@wjwwood wjwwood removed this from the untargeted milestone May 10, 2018
@rhaschke
Copy link
Contributor

Fixed via #1063.

130s pushed a commit to 130s/rviz that referenced this issue Aug 21, 2024
…s-visualization#1055)

Signed-off-by: Alejandro Hernández Cordero <[email protected]>
(cherry picked from commit 0f6b3ad9c78c97d702f8f52b31e7cb46a64b8d35)

Co-authored-by: Alejandro Hernández Cordero <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants