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

Fix Ogre::ItemIdentityException when loading mesh without material #1105

Merged
merged 1 commit into from
Jul 17, 2017
Merged

Fix Ogre::ItemIdentityException when loading mesh without material #1105

merged 1 commit into from
Jul 17, 2017

Conversation

kartikmohta
Copy link
Contributor

When loading meshes without a material defined, rviz crashes with error:

terminate called after throwing an instance of 'Ogre::ItemIdentityException'
  what():  ItemIdentityException: Resource with the name RVIZ/ShadedRed0Robot already exists.

Seems like this was the intended purpose of adding the static int count.

When loading a mesh without a material defined rviz crashes with error:
terminate called after throwing an instance of 'Ogre::ItemIdentityException'
  what():  ItemIdentityException: Resource with the name RVIZ/ShadedRed0Robot already exists.
@wjwwood
Copy link
Member

wjwwood commented May 18, 2017

Thanks for the pull request, can you provide a urdf snippet (and bag file with /tf if needed) that reproduces this problem?

@wjwwood wjwwood added the bug label May 18, 2017
@kartikmohta
Copy link
Contributor Author

Here is the urdf + dae which cause the crash: robot_model.zip

Just launching with roslaunch urdf_tutorial display.launch model:=robot.urdf causes rviz to crash.

@kartikmohta
Copy link
Contributor Author

I should mention that this is with Ogre v1.10

@v4hn
Copy link
Contributor

v4hn commented Jun 13, 2017

+1

I just wanted to contribute the exact same patch.
Ogre 1.10 became more strict when the user tries to add existing resources.
Looking at the code, the patch creates the behavior that was originally planned, but was implemented broken.
Please merge and release soon.

@wjwwood
Copy link
Member

wjwwood commented Jul 17, 2017

I confirmed the bug last week and this fix. I just finished reviewing the code (not many changes but I wanted to look at the context to understand the fix) and it lgtm.

@wjwwood wjwwood merged commit 4c8793b into ros-visualization:kinetic-devel Jul 17, 2017
@kartikmohta kartikmohta deleted the fix/ogre-item-identity-exception branch July 19, 2017 10:31
130s pushed a commit to 130s/rviz that referenced this pull request Aug 21, 2024
In RHEL-8, std::filesystem is not completely implemented,
so we can't rely on it.  Switch to rcpputils::fs here instead,
which has the functionality we need.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants