project-navigation
Personal tools

Author Topic: Game crash on the end of a mission  (Read 4476 times)

stoerenfried

  • Guest
Game crash on the end of a mission
« on: April 16, 2008, 03:55:10 pm »
Hi,
got a problem here, ufo:ai crashes on the end of crashed-ufo-mission when i hit the continue button. it says:
Code: [Select]
==== ShutdownGame ====
ufo: src/client/cl_campaign.c:5322: CL_UpdateCharacterStats: Assertion `gd.employees[EMPL_SOLDIER][i].hired && gd.employees[EMPL_SOLDIER][i].baseHired == gd.interceptAircraft->homebase' failed.
Wrote keys.cfg
Error: Received signal 6.

It's the 2.3dev on a debian box. Any idea what to do?

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools

Offline kracken

  • Squad Leader
  • ****
  • Posts: 159
    • View Profile
Re: Game crash on the end of a mission
« Reply #2 on: April 17, 2008, 11:53:47 am »
That would be nice to find a way to reproduce the bug. I tried to, but I didn't manage to reproduce it.

Here's some questions that may help:
Did you make transfer of soldiers before this crash ?
Did you hire / dismiss soldiers before this crash ?
Did some soldiers die during the mission ?

shl

  • Guest
Re: Game crash on the end of a mission
« Reply #3 on: June 20, 2008, 06:43:38 pm »
Hi I have the same problem.

I played two missions, in the first one no one died. No Crash.

second one, 4 dead. Crashes with the same error msg.

but this can be a coincidence...

cheers, shl.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Game crash on the end of a mission
« Reply #4 on: June 20, 2008, 08:23:53 pm »
which revision?

shl

  • Guest
Re: Game crash on the end of a mission
« Reply #5 on: June 20, 2008, 08:46:51 pm »
Which rev ... ?

I do not remember. I already updated to the head and compiling right now ...

Will see if it still crashes ...

And one more thing which might be related:
This "crashing mission" was the first one I played with a soldier I hired. What I mean, is that at the beginning I had 8 soldiers. This was the first mission where I replaced one of these "original" ones ....

shl

  • Guest
Re: Game crash on the end of a mission
« Reply #6 on: June 24, 2008, 07:08:08 pm »
So it happened again. revision 17382.

at the end of a mission it crashed saying:

Map: +ufocrash
music change to PsymongR2 (from ufo2)
Starting the game...
christov has joined team 0
(player 0) It's team 1's round
christov has taken control over team 1.
music change to van_mission3 (from PsymongR2)
Team 1 ended round, team 7's round started!
Team 7 ended round, team 0's round started!
Team 0 ended round, team 1's round started!
Team 1 ended round, team 7's round started!
Team 7 ended round, team 0's round started!
Team 0 ended round, team 1's round started!
[STATS] 2008/06/24 19:02:52 - End of game - Team 1 is the winner
[STATS] 2008/06/24 19:02:52 - End of game - Team 1 is the winner
==== ShutdownGame ====
ufo: src/client/cl_campaign.c:5691: CL_UpdateCharacterStats: Assertion `gd.employees[EMPL_SOLDIER].hired' failed.
Wrote keys.cfg
Error: Received signal 6.


BTW: none of my soldiers were killed ...
cheers, shl

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Game crash on the end of a mission
« Reply #7 on: June 24, 2008, 07:24:02 pm »
please retry with current rev - there should be an error message with a little bit more information now. (the crash is still not fixed..)

Tycho-Brahe

  • Guest
Re: Game crash on the end of a mission
« Reply #8 on: June 24, 2008, 08:49:11 pm »
Hi,

i have the same Problem, First map i played, no soldiers died and than i got a crash. Posted that here:
http://ufoai.ninex.info/forum/index.php?topic=2740.0

Includes all message from Console.

Regards
Jens

[EDIT]
 Just grabed the latest version and tried again, heres output from Console:

Map: +ufocrash
music change to PsymongN2 (from karlmacklin_geoscape)
Starting the game...
jens has joined team 0
(player 0) It's team 1's round
jens has taken control over team 1.
music change to dawn (from PsymongN2)
S_Music_Start: Playing music: 'music/dawn'
Team 1 ended round, team 7's round started!
Team 7 ended round, team 0's round started!
Team 0 ended round, team 1's round started!
Can't perform action - weapon already fully loaded with the same ammunition!
Can't perform action - weapon already fully loaded with the same ammunition!
Team 1 ended round, team 7's round started!
[STATS] 2008/06/24 21:03:53 - End of game - Team 1 is the winner
[STATS] 2008/06/24 21:03:53 - End of game - Team 1 is the winner
Team 7 ended round, team 0's round started!
==== ShutdownGame ====
S_Music_Start: Playing music: 'music/ufo2'
Wrote keys.cfg
Error: Employee Lorena Vasquez is reported as being on the aircraft (craft_drop_firebird), but he is not hired (4/26)

« Last Edit: June 24, 2008, 09:07:54 pm by Tycho-Brahe »

azazello

  • Guest
Re: Game crash on the end of a mission
« Reply #9 on: June 25, 2008, 09:08:47 pm »
I had the same problem, and now I know the reason.
I had a soldier who wasn't hired, but had been automatically put into my dropship. He wasn't hired so I couldn't take him out of the dropship, but surprisingly I could give him weapons and he participated in the team at mission.
Somebody's logfile wrote something similar.

After that I hired that soldier. Then I saw him on the first page in the list when clicking "Assign soldiers" (before he wasn't there). Anyway, on the second page, where equipping the soldeirs, he had already been before I hired him.

So I think the bug is that a nonhired person got into the dropship.

regards,
Balazs

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Game crash on the end of a mission
« Reply #10 on: June 25, 2008, 11:21:47 pm »
if someone can tell me a way to reliable reproduce this, please let me know. i did almost everything to get to that error - without luck.

any special configuration (soldier assignment), is there a savegame available which crashed the game? can someone send me his quicksave (directly after your game crashed - see our FAQ to get the path where ufo stores its savegames).

and please be as verbose as possible what happend to produce this crash - which soldiers (the numbers from the panel) survived, which died and so on. every little hint can help. once i can reproduce this it should be (relatively) easy to fix

azazello

  • Guest
Re: Game crash on the end of a mission
« Reply #11 on: June 27, 2008, 12:30:18 pm »
As I remember one of my soldiers died in the previous battle, but I don't remeber other circumstances. Maybe there is an automatism which fills the remaining places of the dropship also in that case when you haven't got more hired soldiers.