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 :
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()".
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()".