Game Development Community

Engine crashes every second time

by Nmuta Jones · in General Discussion · 07/15/2009 (8:54 am) · 1 replies

This is weird and I wonder if it has to do with engine clean up???

My engine crashes every time I exit and re-enter from the main menu screen.

I did a trace.

The time it crashes, the last lines of the console are:

Entering onPhase2Progress(0.657534)
   Leaving onPhase2Progress() - return 
Leaving onGhostAlwaysObjectReceived() - return 
Entering onGhostAlwaysObjectReceived()
   Entering onPhase2Progress(0.671233)
   Leaving onPhase2Progress() - return

And when it does not crash, it completes onPhase2Progress()
all the way to onPhase2Progress(1)

and continues on to:
Entering onPhase2Progress(1)
   Leaving onPhase2Progress() - return 
Leaving onGhostAlwaysObjectReceived() - return 
Entering GameConnection::onGhostAlwaysObjectsReceived(5041)
Leaving GameConnection::onGhostAlwaysObjectsReceived() - return 
Ghost Always objects received.
Entering PitTrigger::onTickTrigger(17, 4879)
Leaving PitTrigger::onTickTrigger() - return 
Entering MessageTrigger::onTickTrigger(19, 4886)
Leaving MessageTrigger::onTickTrigger() - return 
Entering DefaultTrigger::onTickTrigger(14, 5030)
Leaving DefaultTrigger::onTickTrigger() - return 
Mapping string: MissionStartPhase3 to index: 10
Entering clientCmdMissionStartPhase3(1, arcane.fx/data/missions/AFX_TGE_Demo_DAY.mis)
   Client Replication Startup has Happened!
   fxFoliageReplicator - Lev: 2  PotNodes: 21  Used: 19  Objs: 552  Time: 0.0000s.
   fxFoliageReplicator - Approx. 0.06Mb allocated.


So there is something happening during onPhase2Progress( )
that is not being completed the second time the game is run.

Any suggestions? I don't know what is being completed during onPhase2Progress() that could hang the engine every other time I run it.