segfault when accessing Listener methods

jauthu

16-04-2012 19:02:39

I initialise OgreOggSound:

Ogre::Root::getSingleton().loadPlugin("libOgreOggSound");
OgreOggSound::OgreOggSoundManager* soundManager = OgreSnd::OgreOggSoundManager::getSingletonPtr();
soundManager->setSceneManager(scm);
soundManager->init();

Ogre::ResourceGroupManager::getSingleton().createResourceGroup("Sounds",
true);
Ogre::ResourceGroupManager::getSingleton().addResourceLocation(
APP_SOUNDS_DIR,
"FileSystem",
"Sounds",
false);
Ogre::ResourceGroupManager::getSingleton().initialiseResourceGroup("Sounds");
Ogre::ResourceGroupManager::getSingleton().loadResourceGroup("Sounds");


and sounds are played fine, but when I try to work with Listener:

std::cout << OgreOggSound::OgreOggSoundManager->getSingletonPtr()->getListener()->getPosition() << std::endl;

I get Segmentation Fault. Obviously, attaching Listener to Ogre::SceneNode engages SegFault as well.

Should I post it to http://sourceforge.net/tracker/?group_i ... id=1102048 tracker or anywhere else?
What additional information can I post?

jauthu

22-04-2012 03:15:35

Still no progress...

btw, I've found this viewtopic.php?f=19&t=13349 thread.

There was similar issue. It seems that boost(or what?) was the problem.

my

boost 1.49
OGRE 1.8.0RC1
OgreOggSound is 1.22 (tried SVN version, but /OgreOggSoundManager.h:42:31: fatal error: Poco/ScopedLock.h: No such file or directory)
GCC 4.7.0

stickymango

12-05-2012 00:03:31

Hi There,

is the listener valid?

Anything in the log file at all? debug stack trace?