new nxOgre::world() crashes

tx

29-03-2007 19:57:24

Hi!

All of the sudden this crashes my program. I can not think of any changes I made that would cause this. It breaks inside dotSceneInterface.dll, is it used by nxOgre? The ogre log shows nothing.

Any ideas?


inline void *operator new(size_t reportedSize)
{
if( !gProcessID )
gProcessID = Ogre::MemoryManager::instance()._getProcessID();
return Ogre::MemoryManager::instance().op_new_sc( reportedSize, gProcessID );
}


It crashes after that. I guees inside it's constructor. It seems like Ogres memory manager is used even though OgreNoMemoryMacros has been used.

tx

30-03-2007 00:07:45

I saw that some people had different problems with the creation of the world. But I assure you it has nothing to do with SystemSoftware not being installed. I have used nxOgre for weeks and not changed anything nxOgre related. And now this happends.

Is there a specific nxOgre exeception that you can catch? Or is it done through nxOgre::error?

luis

30-03-2007 07:59:47

I sugest you to run the app in debug and put a breakpoint in Word's ctor to know exactly what is the line in NxOgre that causes the crash, i belive the "inline void *operator" has nothing to do with the crash....

Edit: if you cant run in debug, use this:
http://www.ogre3d.org/wiki/index.php/Ho ... ug_console
and use traces:
_cprintf( "%s%d\n", __FILE__, __LINE__ );

tx

30-03-2007 13:15:17

Seems like ive been using release libs of nxOgre (remember reading somewhere nxOgre didn't work in debug). But now I can debug it and this returns NULL:

mPhysicsSDK = NxCreatePhysicsSDK(NX_PHYSICS_SDK_VERSION, NULL, mError);

betajaen

30-03-2007 13:27:14

If it's returning NULL, then PhysX couldn't setup the SDK properly. Usually down the SystemSoftware not being installed or the installation is out of date or even broken.

luis

30-03-2007 13:39:11

Then i think you have a problem with the version of the SDK and system software.

You should have system software 7.01.x and SDK 2.7.0, check the versions you have ;)

edit: ups, i didnt see betajean's reply

tx

30-03-2007 13:59:09

I just installed the SystemSoftware and it worked. Strange it can just break like that. I haven't done anything with those stuff in weeks :D

Thank you alot, saved me alot of headache this weekend