Assertion failed - Help? [noob]

azrialelf

22-09-2007 21:11:50

Hello all,

I had a program up and running great a couple days ago, but I reformatted my computer yesterday and had to rebuild the program from the back-ups I made. The project is created just fine and I've relinked all the libs and stuff I use. It compiles fine with no errors.

However when I execute the program I get an "Assertion Failed" message from "c:\OgreSDK\include\OgreOSMScene.cpp" Line: 519
Expression : pSceneRoot

My great confusion is that I didnt change the code in any way, I simply recompiled it from my newly rebuilt project. Is there some linking or something that I need to do to fix this? Please help.

Here is a clip from my log from OFusion:

16:05:01: ********************************
16:05:01: ** oScene Loader Lib **
16:05:01: ********************************
16:05:01: oSceneLoader: Loading 'Caledon2.osm' file
16:05:01: oSceneLoader: Creating scene on 'Root' node

Thats the end. It crashes when trying to load the first mesh of the 'Caledon2.osm' scene. (Which worked perfectly before).

EDIT: The assertion failure is from this line of code :


SceneNode* pSceneRoot = mSceneMgr->getRootSceneNode()->createChildSceneNode();
assert(pSceneRoot);


Why would that fail an assertion? I don't understand it... The mSceneMgr is created and passes an assertion test right before that line is executed, so the error must be in the "->getRootSceneNode()" or the "->createChildSceneNode()".

azrialelf

24-09-2007 12:36:30

kintaro posted here http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=3619&postdays=0&postorder=asc&start=0 that oSceneLoader doesnt support Eihort yet? Is that true? Could this possibly be related to my problem?

azrialelf

24-09-2007 13:09:20

Upon further review I think the error is not oFusion related. I tried skipping the initialization and creation of the oFusion scene until later in my program, and I got errors later on in the program when trying to create another node to use as my camera controller. So it seems the problem is rooted in the node creation somehow. I'll take a look in the Ogre forums and see what I can find.

Lioric

24-09-2007 15:29:25

Are you using the Ogre sdk file, or Ogre compiled in your machine? it might be that you are mixing different release/debug versions or other different libs (singlethread/multithread)

Or that you compiled with a different Ogre .lib that is not for the .dll in your application folder