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

Loading same mesh twice segfaults with ogre2. #805

Closed
Levi-Armstrong opened this issue Jan 17, 2023 · 3 comments · Fixed by #807
Closed

Loading same mesh twice segfaults with ogre2. #805

Levi-Armstrong opened this issue Jan 17, 2023 · 3 comments · Fixed by #807
Labels
bug Something isn't working

Comments

@Levi-Armstrong
Copy link
Contributor

Levi-Armstrong commented Jan 17, 2023

Environment

  • OS Version: Ubuntu 20.04
  • Source or binary build: Binary rendering6

Description

When using the MeshManager to load the same mesh twice it segfaults with Ogre2.

image

Steps to reproduce

        ignition::rendering::MeshDescriptor descriptor;
        descriptor.meshName = resource->getFilePath();
        ignition::common::MeshManager* mesh_manager = ignition::common::MeshManager::Instance();
        descriptor.mesh = mesh_manager->Load(descriptor.meshName);
        ignition::rendering::MeshPtr mesh_geom = scene.CreateMesh(descriptor);
        mesh_geom = scene.CreateMesh(descriptor); // REMOVE

Output

segfault

/var/lib/jenkins/workspace/ogre-2.2-debbuilder/repo/OgreMain/src/OgreHlmsDatablock.cpp:198: virtual Ogre::HlmsDatablock::~HlmsDatablock(): Assertion `mLinkedRenderables.empty() && "This Datablock is still being used by some Renderables." " Change their Datablocks before destroying this."' failed.
@Levi-Armstrong Levi-Armstrong added the bug Something isn't working label Jan 17, 2023
@Levi-Armstrong
Copy link
Contributor Author

There is no issue when using ogre render engine.

@iche033
Copy link
Contributor

iche033 commented Jan 18, 2023

#807 should fix the bug

@Levi-Armstrong
Copy link
Contributor Author

Thanks for the quick turnaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants