Game Development Community

Crash in explosion code

by Jari · in Torque Game Engine · 04/06/2007 (12:43 pm) · 8 replies

Hello. I just ran to this crash once again and I decided to just take screen shot and post here in case some figures what is causing the crash.
So here's the screen shot: click

I don't have anything too remarkable in my missions, I think the crash just has something to do with timing of the explosions and terrain.

I have the latest TGE.

#1
04/06/2007 (1:22 pm)
Interesting! This might already have been adressed though. Can you post a screenshot of the callstack?

How do you spawn your explosion? Via projectile, ShapeBase or something else?
#2
04/06/2007 (2:16 pm)
Very interesting! I noticed a crash bug when having debris in the explosion datablock. But due to the low performance of my machine I'm not really able to run and trace a debug build. But would like to hear what you find out.
#3
04/06/2007 (3:04 pm)
Can you reproduce the crash, Martin? If you supply a NULL debris datablock to Explosion, it will crash. Could that be it?
#4
04/07/2007 (12:35 am)
@Stefan: Yes, can reproduce the crash everytime. It's in the Flying Starter Kit. I'm going to test your suggestion, interesting point. Will check that. Thanks!
#5
04/07/2007 (12:25 pm)
Yeah, we fixed this in our 1.3 code base.

The code shouldn't be deleting said object and then referencing it .

if (mCurrMS >= mEndingMS)
{
   deleteObject();
   return;
}

is probably the simplest fix.
#6
04/08/2007 (8:22 am)
Sorry I cannot post screen shot of the call stack because I dont know how to reproduce this. But looks like Tim has the fix.
Edit: sorry, mixed names
#7
04/08/2007 (8:58 am)
Looks good, Tim.