frier
25-11-2007 11:35:38
Im getting a crash when i do the following state changes.
IntroState->PlayState->PauseState->IntroState->PlayState(Crash here)
I run this code:
mWorld = new NxOgre::World();
It crashes here.
ErrorReport Error::getNewReport() {
ErrorReport r;
#if (OGRE_VERSION_MINOR >= 5)
r.frame = Ogre::Root::getSingletonPtr()->getNextFrameNumber() - 1;
#else
r.frame = Ogre::Root::getSingletonPtr()->getCurrentFrameNumber();
#endif
r.second = mDriver->getTime();// <- crash here
return r;
}
NxOgre (NxOgre 0.9-33.Debug) Started, working with:
- PhysX => 2.7.2
- Ogre => 1.5.0 'Shoggoth'
- Platform => Windows Debug
betajaen
25-11-2007 11:49:04
It's crashing because of an invalid PhysXDriver pointer either it's corrupted or most likely null.
Have you created World twice or done anything weird to it? Also what is the value of the PhysXDriver pointer is it zero?
frier
25-11-2007 12:06:44
Ok.. this is what im doing with world
mWorld = new NxOgre::World();
mNxScene = mWorld->createScene("NxMain", mSceneMgr, "gravity: yes, floor: no, time-step-method: variable");
....
mWorld->destroyScene("NxMain");
if(mWorld){
delete mWorld;
mWorld = 0;
}
mWorld->getPhysXDriver()->setTimeModifier(0.0f);
i just relised do have a playstate still stuck in my StateVector. but all its attributes have been cleaned up properly. ill try figure out away to get rid of it out of the Vector and see if that maybe fixes it.
*edit* the driver = 0xfdfdfdfd {mWorld=??? mSDK=??? mFramelistener=??? ...}
frier
25-11-2007 13:20:17
yes i fixed the states up. Though its still crashing on that line, anyone know the reason why im getting an invalid physX pointer??
betajaen
25-11-2007 13:38:17
Is World an invalid pointer as well?
frier
25-11-2007 22:19:21
r.second = mDriver->getTime();
When i put my cursor over mDriver i get these results
mWorld = CXX0030: Error: expression cannot be evaluated
mSDK = CXX0030: Error: expression cannot be evaluated
betajaen
25-11-2007 22:32:59
World is an invalid pointer. Which is your problem. What does the NxOgre log say?
betajaen
25-11-2007 22:49:18
That's fine. Are you sure that's the right log? And why are you using '33 when '39 is out?
frier
25-11-2007 23:02:08
Yes thats definitely the right log, i didnt want to upgrade my NxOgre because my hand in dates within the week. Would you advise me to upgrade?
frier
25-11-2007 23:54:20
What has
ShapeParams sp.mOffset
been replaced with in NxOgre '38?
NickM
26-11-2007 06:31:17
What has
ShapeParams sp.mOffset
been replaced with in NxOgre '38?
shapeParams.mLocalPose
I think.