Game Development Community

Crash in Torque Release build run via Torsion

by Kirk Haynes · in Torsion · 04/30/2007 (4:38 pm) · 7 replies

When in doubt, blow all the breakpoints out!

The telnet debugger crashes in TelnetDebugger::breakProcess when there's a breakpoint that shouldn't be there (ie. doesn't have any corresponding code available).

I've been experiencing break point crashes when launching from Torsion. I believe it's related to the handling of the /* */ comment block.

So, instead of deleting all the code you've spent the time to write when you're faced with a crashing release version of your TGE or TGEA or TBG project when run from Torsion, use the Debug->Remove All Breakpoints menu item and that should fix this type of crash.

#1
05/13/2007 (6:20 pm)
What version of Torque are you using? There were some bugs in the TelnetDebugger that have been fixed in 1.5, but 1.4 and older versions of TGB and TGEA have crash bugs in the TelnetDebugger.
#2
05/14/2007 (7:43 am)
I'm using TGEA 1.0. The crash was in telnedebugger::breakProcess where the codeblock was invalid.
I've put a simple check for it in the breakProcess which works around the problem for now.
#3
05/14/2007 (8:23 am)
Using Torsion daily, I've notice that version 1.0.852 seems to miss many script errors at compile time, but displays them when they're execed at runtime. Also, using /* */ comments seems to mess up the breakpoints not only in the script file they're entered into, but others as well.
#4
05/14/2007 (10:56 am)
Make sure both this fix and this fix are in your TGEA 1.0 codebase. I thought they were, but maybe they didn't make it in until 1.01.
#5
05/16/2007 (9:51 am)
The first fix was in 1.0, but the 2nd wasn't.

Thanks
#6
05/16/2007 (9:56 am)
Oh... and the /* */ comments... look to see if this fix is in.

I've been pretty good at alerting GG to these fixes, but sometimes they slip thru the cracks.
#7
06/30/2007 (2:30 pm)
This problem still exists in TGEA 1.0.1.

added following as line 375 and 376 in console/telnetDebugger.cpp TelnetDebugger::breakProcess() to temporarily fix code block crash. I didn't track down the underlying problem.


if ( code == 0 )
continue;