Closed sercero closed 3 years ago
Update: Now I see that the culprit is OgreOggSoundManager::~OgreOggSoundManager()
if ( mListener )
{
Ogre::SceneManager* s = mListener->getSceneManager();
s->destroyAllMovableObjectsByType("OgreOggISound");
_destroyListener();
}
Do you think that this could be safely removed?
probably. The SceneManager will destroy all movable objects if it goes down anyway.
However this will leak if OgreOggSoundManager is destroyed, but the SceneManager is not.
I managed to solve it this way:
mSceneMgr->clearScene();
mRoot->destroySceneManager(mSceneMgr);
mSoundManager->setSceneManager(nullptr);
mRoot->shutdown();
delete mRoot;
So, I will probably make a guide on how to use OgreOggSound with all the pitfalls I know...
Hey @paroj, I believe there where some changes introduced in Ogre 1.12 that relate to Scene Managers (because this wasn't an issue in OGRE 1.11 or earlier versions of OgreOggSound).
It seems that it produced a bug in OgreOggSound, because I am observing this behaviour:
Produces a Segmentation fault. with the following backtrace:
It seems that the OgreOggSoundPlugin is being shutdown before the SceneManager.
Can you help me with this?
Thanks