project-navigation
Personal tools

Author Topic: Crash when using secondary lander team, and at base attacks.  (Read 3280 times)

Offline Kaerius

  • Rookie
  • ***
  • Posts: 85
    • View Profile
Crash when using secondary lander team, and at base attacks.
« on: April 06, 2007, 12:27:57 am »
As the subject says. I got 4 bases by now, two got fully manned landers, but whenever I try to use the second team, the game crashes(well, it errormessages with abort/retry/ignore, but ignoring crashes it too.) Reference to some c_team file.

The aliens just attacked my second base too(the one with the crashing team) and even if I send my regular team, the game will crash there(reference to c_base.)

Offline Zenerka

  • Sergeant
  • *****
  • Posts: 301
    • View Profile
Crash when using secondary lander team, and at base attacks.
« Reply #1 on: April 06, 2007, 08:28:18 am »
Thanks for this report. That "reference" you are talking about... it would really help if you could post the whole error message (there should be at least the line number in given file name if this is communicate about "assertion failed"). It would even help more, if you could provide backtrace (refer to Debugging section at wiki).

Offline Kaerius

  • Rookie
  • ***
  • Posts: 85
    • View Profile
Crash when using secondary lander team, and at base attacks.
« Reply #2 on: April 06, 2007, 12:21:40 pm »
On base attack:

Assertion failed!
Program ufo.exe
file: /src/qcommon/cmodel.c
Line: 658

Expression: model->headnode < cur Tile >numnodes + 6

Again on line 1951 (same everything else)

Ignoring leads to it toggling between the errors.

Sorry, seams my memory was wrong about c_base.

Trying to send my secondary team(already there...) to that base attack leads to:

Assertion failed!
Program: ufo.exe
file: /src/client/cl_team.c
Line: 584

Expression: cp

Ignoring leads to CTD.

Offline Zenerka

  • Sergeant
  • *****
  • Posts: 301
    • View Profile
Crash when using secondary lander team, and at base attacks.
« Reply #3 on: April 06, 2007, 12:36:11 pm »
Thanks. This at least helps to figure out why this problem appears. Now time to find the real source and the fix.

Mercutio

  • Guest
More information on "Assertion Failed"
« Reply #4 on: April 12, 2007, 09:43:48 am »
FYI, I have been able to reproduce this crash as well.  I get the same error, same line number, etc.  I turned on 'developer 1' prior to the crash.  I'm pasting in the last few dozen lines of the ufoconsole.log file.  The crash occurs whenever I select a weapon to fire and then click on a firing mode.  The screen kind of scrambles and then I get the assertion failed error.  Please let me know if you need me to do anything else on reporting this error.

BTW, thanks for a cool game!

ufoconsole.log file:
MN_Command_f: menu 'hud'
PackFile: ./base/0pics.pk3 : pics/hud/firemode.tga
PackFile: ./base/0pics.pk3 : pics/hud/firemode.tga
PackFile: ./base/0pics.pk3 : pics/hud/firemode.tga
PackFile: ./base/0pics.pk3 : pics/hud/firemode.tga
PackFile: ./base/0pics.pk3 : pics/hud/checkbox.tga
PackFile: ./base/0pics.pk3 : pics/hud/checkbox.tga
PackFile: ./base/0pics.pk3 : pics/hud/checkbox.tga
PackFile: ./base/0pics.pk3 : pics/hud/checkbox.tga
ExecuteString: '-select 178 242734'
G_ClientAction: entnum:31 hand:0 fd:0
ExecuteString: '+select 178 245843'
ExecuteString: 'fireweap r 0'
ExecuteString: ''
ExecuteString: 'set_left_inv0'
MN_Command_f: menu 'hud'
ExecuteString: 'set_right_inv0'
MN_Command_f: menu 'hud'
ExecuteString: 'set_left_inv1'
MN_Command_f: menu 'hud'
ExecuteString: 'set_right_inv1'
MN_Command_f: menu 'hud'
ExecuteString: 'set_left_inv2'
MN_Command_f: menu 'hud'
ExecuteString: 'set_right_inv2'
MN_Command_f: menu 'hud'
ExecuteString: 'set_left_inv3'
MN_Command_f: menu 'hud'
ExecuteString: 'set_right_inv3'
MN_Command_f: menu 'hud'
ExecuteString: 'set_left_inv4'
MN_Command_f: menu 'hud'
ExecuteString: 'set_right_inv4'
MN_Command_f: menu 'hud'
ExecuteString: 'set_left_inv5'
MN_Command_f: menu 'hud'
ExecuteString: 'set_right_inv5'
MN_Command_f: menu 'hud'
ExecuteString: 'set_left_inv6'
MN_Command_f: menu 'hud'
ExecuteString: 'set_right_inv6'
MN_Command_f: menu 'hud'
ExecuteString: 'set_left_inv7'
MN_Command_f: menu 'hud'
ExecuteString: 'set_right_inv7'
MN_Command_f: menu 'hud'

Offline Zenerka

  • Sergeant
  • *****
  • Posts: 301
    • View Profile
Crash when using secondary lander team, and at base attacks.
« Reply #5 on: April 12, 2007, 02:37:30 pm »
Mercutio, you are talking about that (cp) assertion for cl_team.c or other one?
If the first one, if you can bring the backtrace, which would be the best, please do. If you mean other assertion, please tell the file name and line number it reports.

Mercutio

  • Guest
Crash when using secondary lander team, and at base attacks.
« Reply #6 on: April 13, 2007, 10:56:56 pm »
Zenerka, thanks for the help in reporting errors properly.  I'm still a noob to UFOAI.  I'll post more complete information here.

I'm running WinXP, UFOAI-2.1
This particular crash happens when the aliens attack a base of mine that does not have any inhabitants.  I send a ship with 8 troops to the base being attacked.  When I select a weapon and then a firing mode that's when the crash occurs.  Here's what I see in the window:

Assertion Failed!
Program: ufo.exe
File: ../../src/qcommon/cmodel.c
Line: 1951

Expression: headnode < curTile->numnodes + 6

Then I have the MSVCRT  info about how to debug, plus I have Abort/Retry/Ignore.  
A Retry causes the whole program to lock up w/ an empty gray screen.
Abort, of course, ends the program.
Ignore causes a similar error to popup, the only difference being the line number:  
Line: 1871

All other info is the same.  I hit ignore again and I'm back at the gray screen and I can't pull up the console.  The HDD light is flashing like the program is doing something, but I have no sound.  I've let the program run for several minutes to see if anything interesting happens - eventually I get the famous Windows message: "UFO: Alien Invasion has encountered a problem and needs to close.  We are sorry for the inconvenience."   I happen to have MS Visual Studio 2003 so I could probably do some debugging, but I'm a bit green on that kind of stuff.  If you've got any pointers you'd like to share I'd be happy to do what I can.

Thanks!

-Mercutio

bob9000

  • Guest
Crash when using secondary lander team, and at base attacks.
« Reply #7 on: April 15, 2007, 01:11:30 pm »
I also have this bug, under winxp and all that. The error message I get is the same, so no need to reproduce that, however, I used to get it when I used the team from my second base. Then I rebooted the computer, and now I get it when I use the team from my first base, but everything is fine when i use the team from my second base.

Just to complicate the issue.