Vector going out of range


26-04-2011 16:46:16

Hi, I am using the Cthugha 1.21 version compiled on Ubuntu. When I play a 3-minute streamed ogg file it plays fine through the song, but when I use a 5minute ogg it crashes after about 30 seconds of playback with the following:
terminate called after throwing an instance of 'std::length_error'
what(): vector::_M_range_insert

This is a very basic implementation of OgreOggSound, pretty much just:

m_pSoundManager->init() ;
m_pSoundManager->createSound("Sound1", "sound.ogg", true, false, false) ;

I added an update function call to the update function I'm using as well because I figured that might be the issue but it didn't seem to make a difference. I also added play and pause elsewhere, but they aren't called. Removing the ogreoggsound stuff gets rid of the crash so I figure it must be an internal OgreOggSound issue.


03-05-2011 10:30:53

Hi there,

Is this crash happening with a specific sound file or any file longer then 5mins?

Can you post a stack trace?