The program throws an assert_fail in some situations which I can reproduce but I don't know why the program doesn't crash in other situations.
One of the situations where the program crashes is if I load a specific model twice in the scene (I didn't test this in an empty scene, but I think it is a combination of the whole scene and this two models). But there are other constellations where this error is thrown.
I tested my project on windows without any problems!
I'm using the Ogre CVS version but this behavior was also there on earlier releases (1.4.1).
Maybe somebody has a clue if this is a bug or if I'm doing something wrong.
Here is the call stack:
Code: Select all
#0 0xffffe410 __kernel_vsyscall() (??:??)
#1 0xb729a875 raise() (/lib/tls/i686/cmov/libc.so.6:??)
#2 0xb729c201 abort() (/lib/tls/i686/cmov/libc.so.6:??)
#3 0xb7293b6e __assert_fail() (/lib/tls/i686/cmov/libc.so.6:??)
#4 0xb7dc32ef Ogre::TextureUnitState::operator=() (../lib_linux/libOgreMain-1.4.4.so:??)
#5 0xb7d4f158 Ogre::SceneManager::deriveShadowCasterPass() (../lib_linux/libOgreMain-1.4.4.so:??)
#6 0xb7d4ffec Ogre::SceneManager::_setPass() (../lib_linux/libOgreMain-1.4.4.so:??)
#7 0xb7d49127 Ogre::SceneManager::BRAND NAME::visit() (../lib_linux/libOgreMain-1.4.4.so:??)
#8 0xb7d13224 Ogre::QueuedRenderableCollection::acceptVisitorGrouped() (../lib_linux/libOgreMain-1.4.4.so:??)
#9 0xb7d13b51 Ogre::QueuedRenderableCollection::acceptVisitor() (../lib_linux/libOgreMain-1.4.4.so:??)
#10 0xb7d49711 Ogre::SceneManager::renderObjects() (../lib_linux/libOgreMain-1.4.4.so:??)
#11 0xb7d4bc7f Ogre::SceneManager::renderTextureShadowCasterQueueGroupObjects() (../lib_linux/libOgreMain-1.4.4.so:??)
#12 0xb7d49017 Ogre::SceneManager::_renderQueueGroupObjects() (../lib_linux/libOgreMain-1.4.4.so:??)
#13 0xb7d4ac5d Ogre::SceneManager::renderVisibleObjectsDefaultSequence() (../lib_linux/libOgreMain-1.4.4.so:??)
#14 0xb7d49778 Ogre::SceneManager::_renderVisibleObjects() (../lib_linux/libOgreMain-1.4.4.so:??)
#15 0xb777a34d Ogre::TerrainSceneManager::_renderVisibleObjects() (../lib_linux/Plugin_OctreeSceneManager.so:??)
#16 0xb7d4a930 Ogre::SceneManager::_renderScene() (../lib_linux/libOgreMain-1.4.4.so:??)
#17 0xb777a706 Ogre::TerrainSceneManager::_renderScene() (../lib_linux/Plugin_OctreeSceneManager.so:??)
#18 0xb7b8d76e Ogre::Camera::_renderScene() (../lib_linux/libOgreMain-1.4.4.so:??)
#19 0xb7dd05b0 Ogre::Viewport::update() (../lib_linux/libOgreMain-1.4.4.so:??)
#20 0xb7d1e593 Ogre::RenderTarget::update() (../lib_linux/libOgreMain-1.4.4.so:??)
#21 0xb7d4ca28 Ogre::SceneManager::prepareShadowTextures() (../lib_linux/libOgreMain-1.4.4.so:??)
#22 0xb7d4aa37 Ogre::SceneManager::_renderScene() (../lib_linux/libOgreMain-1.4.4.so:??)
#23 0xb777a706 Ogre::TerrainSceneManager::_renderScene() (../lib_linux/Plugin_OctreeSceneManager.so:??)
#24 0xb7b8d76e Ogre::Camera::_renderScene() (../lib_linux/libOgreMain-1.4.4.so:??)
#25 0xb7dd05b0 Ogre::Viewport::update() (../lib_linux/libOgreMain-1.4.4.so:??)
#26 0xb7d1e593 Ogre::RenderTarget::update() (../lib_linux/libOgreMain-1.4.4.so:??)
#27 0xb7d225d9 Ogre::RenderWindow::update() (../lib_linux/libOgreMain-1.4.4.so:??)
#28 0xb7d2250c Ogre::RenderWindow::update() (../lib_linux/libOgreMain-1.4.4.so:??)
#29 0xb7d181db Ogre::RenderSystem::_updateAllRenderTargets() (../lib_linux/libOgreMain-1.4.4.so:??)
Code: Select all
mSceneMgr->setShadowTechnique(SHADOWTYPE_TEXTURE_MODULATIVE);
mSceneMgr->setShadowTextureSize(512);
mSceneMgr->setShadowTextureCount(10);
mSceneMgr->setShadowColour(ColourValue(0.7,0.7,0.7));
mSceneMgr->setShadowFarDistance(50);
mSceneMgr->setShadowTextureSelfShadow(false);