project-navigation
Personal tools

Author Topic: game crash when entering the "EQUIP SOLDIER" on the base in R24813  (Read 7912 times)

8472

  • Guest
R24813

Hi, i've just wanted to enter the "EQUIP SOLDIER" on the base\aircraft , and the game crashed with this:

{
[STATS] 2009/06/24 14:20:37 - Soldier Tyler Sanchez earned 0 experience points in skill #8 (totalShutdown server: Mission end
==== ShutdownGame ====
}

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: game crash when entering the "EQUIP SOLDIER" on the base in R24813
« Reply #1 on: June 24, 2009, 02:56:55 pm »
R24813

Hi, i've just wanted to enter the "EQUIP SOLDIER" on the base\aircraft , and the game crashed with this:

{
[STATS] 2009/06/24 14:20:37 - Soldier Tyler Sanchez earned 0 experience points in skill #8 (totalShutdown server: Mission end
==== ShutdownGame ====
}

Okay, that's the last message but it couldn't cause it - I think. My guess is the inventory bug reappeared. Please create a backtrace with gdb.

To reproduce the bug you may need to do a mission first then enter the soldier equip screen in the base.

-geever

8472

  • Guest
Re: game crash when entering the "EQUIP SOLDIER" on the base in R24813
« Reply #2 on: June 24, 2009, 03:21:42 pm »
Okay, that's the last message but it couldn't cause it - I think. My guess is the inventory bug reappeared. Please create a backtrace with gdb.

To reproduce the bug you may need to do a mission first then enter the soldier equip screen in the base.

-geever

do you have any howto about how to create that backtrace with gdb? because i've never used it before.

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: game crash when entering the "EQUIP SOLDIER" on the base in R24813
« Reply #3 on: June 24, 2009, 03:34:40 pm »
do you have any howto about how to create that backtrace with gdb? because i've never used it before.

We have Debugging article on wiki.

-geever

8472

  • Guest
Re: game crash when entering the "EQUIP SOLDIER" on the base in R24813
« Reply #4 on: June 24, 2009, 04:32:04 pm »
so, here is the backtrack of gdb

1. this is what the game died/crashed on:
{
[STATS] 2009/06/24 16:26:38 - Soldier Sam Al Hussein earned 0 experience points in skill #8 (total experience: 0). It is nTeam 7 ended round, team 0's round started!
Team 0 ended round, team 1's round started!
Shutdown server: Mission end
==== ShutdownGame ====
music change to van_geoscape (from greecei)
Cvar 'mission_recoverybase' wasn't found
Cvar 'mission_recoverynation' wasn't found
I: setting mode 8:I: set swap control to 0
 1280x1024 (fullscreen: no)
music change to karlmacklin_geoscape (from ufo2)

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb5f59740 (LWP 15533)]
0x08167b98 in Com_AddToInventory (i=0xaa63514, item={a = 0, m = 0x0, t = 0xd6ecf80, amount = 0, rotated = 0},
    container=0xd94fecc, x=0, y=0, amount=1) at src/game/inv_shared.c:686
686      invUnused = ic->next;
(gdb)

}

2. and this is what the 'bt full' returned:
{

(gdb) bt full
#0  0x08167b98 in Com_AddToInventory (i=0xaa63514, item=
      {a = 0, m = 0x0, t = 0xd6ecf80, amount = 0, rotated = 0}, container=0xd94fecc, x=0, y=0, amount=1)
    at src/game/inv_shared.c:686
   ic = (invList_t *) 0x4029fcb6
   __PRETTY_FUNCTION__ = "Com_AddToInventory"
#1  0x08117cb5 in MN_ContainerNodeUpdateEquipment (inv=0xaa63514, ed=0xbf8994f4)
    at src/client/menu/node/m_node_container.c:269
   item = {a = 0, m = 0x0, t = 0xd6ecf80, amount = 0, rotated = 0}
   i = 12
   __PRETTY_FUNCTION__ = "MN_ContainerNodeUpdateEquipment"
#2  0x080beaf2 in CL_UpdateEquipmentMenuParameters_f () at src/client/campaign/cp_team_callbacks.c:242
   unused = {name = '\0' <repeats 63 times>, num = {0 <repeats 12 times>, 10, 5, 0, 3, 5, 3, 0, 0, 0, 0,
    15, 0, 9, 9, 0, 48, 30, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 17, 5, 2, 0, 0, 0, 0, 0, 0, 0, 0, 2, 18, 1, 12, 23,
    69, 0, 0, 6, 20, 1, 10, 4, 16, 1, 12, 1, 12, 4, 13, 4, 21, 0, 22, 65, 56, 8, 0, 0, 0, 0, 23, 0, 0, 22, 2, 0,
    0, 19, 10, 0, 0, 0, 0, 0, 0, 0, 4, 7, 0, 0, 0, 0, 88, 149, 14, 25, 4, 7, 0 <repeats 19 times>},
  numLoose = '\0' <repeats 69 times>, "\002\000\000\000\000\005\000\000\000\000\000\000\000\000\000\f", '\0' <repeats 42 times>, minInterest = 0, maxInterest = 0}
   p = 8
   aircraft = (aircraft_t *) 0xaa49cc0
   base = (base_t *) 0xaa49a8c
#3  0x08132acc in Cmd_ExecuteString (text=0xbf899824 "team_updateequip") at src/common/cmd.c:912
   cmd = (const cmd_function_t *) 0x194580bc
   a = (const cmd_alias_t *) 0x4
   str = 0x1aee47d4 "team_updateequip"
   hash = 21
#4  0x08131899 in Cbuf_Execute () at src/common/cmd.c:229
   text = 0x9320020 "update_item_list;equip_select 0;\n;equip_select 0;\nuip_select 0;\npush equipment\nhange\naircraft_status_change\n\naircraft_status_change\nstatus_change\n\naircraft_status_change\nisprs;dispra;\nra;\ndisprs;dispr"...
   quotes = 0
   i = 17
   line = "team_updateequip\000\000ipment@onClose team.listen_close_equipment\000\200F�t\230\211�|�P�\000\000\000\000\000\000\000\200\016\000\000\000�\230\211��\200\234]�\230\211�\000�M�\b�C�b����\200F�\016\000\000\000�\230---Type <return> to continue, or q <return> to quit---
\211� \000\000\000�\200F�,\203R��\200F�\000\000\000\000\000\000\000\200\002\000\000\000\002\000\000\000\000�M�\f\000\000\000\004\000\000\000\000\000\000\0007�ܶ\000�M�HN��\000\000\000\000\004", '\0' <repeats 15 times>, "\230:O�\000"...
#5  0x0808ed98 in CL_SendCommand () at src/client/cl_main.c:892
No locals.
#6  0x0808f284 in CL_Frame (now=718736, data=0x0) at src/client/cl_main.c:1066
   delta = 20
   lastFrame = 718736
#7  0x0813f9ff in tick_timer (now=718736, data=0x17b8e86c) at src/common/common.c:1041
   timer = (struct timer *) 0x17b8e86c
   old_interval = 20
   lateness = 0
#8  0x0813fcc8 in Qcommon_Frame () at src/common/common.c:1122
   event = (struct event *) 0x198f6054
   time_to_next = 0
#9  0x0818f651 in main (argc=7, argv=0xbf899da4) at src/ports/linux/linux_main.c:58
No locals.

}

8472

  • Guest
Re: game crash when entering the "EQUIP SOLDIER" on the base in R24813
« Reply #5 on: June 24, 2009, 05:02:05 pm »
second crash leaved this:

{

[STATS] 2009/06/24 16:57:56 - Soldier Sam Al Hussein earned 0 experience points in skill #8 (total experience: 0). It is Team 0 ended round, team 1's round started!
Shutdown server: Mission end
==== ShutdownGame ====
music change to karlmacklin_geoscape (from dawn)
Cvar 'mission_recoverybase' wasn't found
Cvar 'mission_recoverynation' wasn't found
********************
ERROR: PR_ProductionRun: Can not find craft_ufo_scout in small UFO Hangar
********************
/mnt/data2_1TB/svn_sources/ufoai/trunk/ufo(Sys_Backtrace+0x1f)[0x81908ee]
/mnt/data2_1TB/svn_sources/ufoai/trunk/ufo(Com_Error+0xdf)[0x813e002]
/mnt/data2_1TB/svn_sources/ufoai/trunk/ufo(PR_ProductionRun+0x917)[0x80e01f5]
/mnt/data2_1TB/svn_sources/ufoai/trunk/ufo(CL_CampaignRun+0x1fc)[0x80c6c14]
/mnt/data2_1TB/svn_sources/ufoai/trunk/ufo[0x811e2d7]
/mnt/data2_1TB/svn_sources/ufoai/trunk/ufo[0x81092b0]
/mnt/data2_1TB/svn_sources/ufoai/trunk/ufo[0x81092d3]
/mnt/data2_1TB/svn_sources/ufoai/trunk/ufo(MN_Draw+0xfd)[0x81095bf]
/mnt/data2_1TB/svn_sources/ufoai/trunk/ufo(SCR_UpdateScreen+0xbe)[0x8093f37]
/mnt/data2_1TB/svn_sources/ufoai/trunk/ufo(CL_Frame+0xcb)[0x808f270]
/mnt/data2_1TB/svn_sources/ufoai/trunk/ufo[0x813f9ff]
/mnt/data2_1TB/svn_sources/ufoai/trunk/ufo(Qcommon_Frame+0x9a)[0x813fcc8]
/mnt/data2_1TB/svn_sources/ufoai/trunk/ufo(main+0x66)[0x818f651]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb780e775]
/mnt/data2_1TB/svn_sources/ufoai/trunk/ufo[0x8069c01]
music change to van_geoscape (from ufo2)
Calling subsystems
...subsystem 'base' - saved
...subsystem 'campaign' - saved
...subsystem 'hospital' - saved
...subsystem 'market' - saved
...subsystem 'research' - saved
...subsystem 'employee' - saved
...subsystem 'aliencont' - saved
...subsystem 'production' - saved
...subsystem 'aircraft' - saved
...subsystem 'messagesystem' - saved
...subsystem 'stats' - saved
...subsystem 'nations' - saved
...subsystem 'transfer' - saved
...subsystem 'alien base' - saved
...subsystem 'xvirate' - saved
...subsystem 'installation' - saved
...subsystem 'messageoptions' - saved
XML Written to buffer (1346006 Bytes)
music change to van_geoscape (from van_geoscape)
I: setting mode 8:I: set swap control to 0
 1280x1024 (fullscreen: no)
music change to van_geoscape (from van_geoscape)
Calling subsystems
...subsystem 'base' - saved
...subsystem 'campaign' - saved
...subsystem 'hospital' - saved
...subsystem 'market' - saved
...subsystem 'research' - saved
...subsystem 'employee' - saved
...subsystem 'aliencont' - saved
...subsystem 'production' - saved
...subsystem 'aircraft' - saved
...subsystem 'messagesystem' - saved
...subsystem 'stats' - saved
...subsystem 'nations' - saved
...subsystem 'transfer' - saved
...subsystem 'alien base' - saved
...subsystem 'xvirate' - saved
...subsystem 'installation' - saved
...subsystem 'messageoptions' - saved
XML Written to buffer (1345435 Bytes)
music change to van_geoscape (from van_geoscape)
/mnt/data2_1TB/svn_sources/ufoai/trunk/ufo(Sys_Backtrace+0x1f)[0x81908ee]
/mnt/data2_1TB/svn_sources/ufoai/trunk/ufo(Sys_Error+0x22)[0x818fa68]
/mnt/data2_1TB/svn_sources/ufoai/trunk/ufo(Com_AddToInventory+0x40)[0x8167a65]
/mnt/data2_1TB/svn_sources/ufoai/trunk/ufo(MN_ContainerNodeUpdateEquipment+0xe6)[0x8117cb5]
/mnt/data2_1TB/svn_sources/ufoai/trunk/ufo[0x80beaf2]
/mnt/data2_1TB/svn_sources/ufoai/trunk/ufo(Cmd_ExecuteString+0xcb)[0x8132acc]
/mnt/data2_1TB/svn_sources/ufoai/trunk/ufo(Cbuf_Execute+0x15a)[0x8131899]
/mnt/data2_1TB/svn_sources/ufoai/trunk/ufo[0x808ed98]
/mnt/data2_1TB/svn_sources/ufoai/trunk/ufo(CL_Frame+0xdf)[0x808f284]
/mnt/data2_1TB/svn_sources/ufoai/trunk/ufo[0x813f9ff]
/mnt/data2_1TB/svn_sources/ufoai/trunk/ufo(Qcommon_Frame+0x9a)[0x813fcc8]
/mnt/data2_1TB/svn_sources/ufoai/trunk/ufo(main+0x66)[0x818f651]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb780e775]
/mnt/data2_1TB/svn_sources/ufoai/trunk/ufo[0x8069c01]
Error: Com_AddToInventory: No free inventory space!

Program exited with code 01.
(gdb)

}

and there wasn't anything for the 'bt full'

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: game crash when entering the "EQUIP SOLDIER" on the base in R24813
« Reply #6 on: June 27, 2009, 08:10:19 am »
i think your data files are not up-to-date.

8472

  • Guest
Re: game crash when entering the "EQUIP SOLDIER" on the base in R24813
« Reply #7 on: June 27, 2009, 11:20:54 am »
i think your data files are not up-to-date.

can you be pls more specific what are you talking about?

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: game crash when entering the "EQUIP SOLDIER" on the base in R24813
« Reply #8 on: June 27, 2009, 07:48:46 pm »
The Production bug is known, I'm working on it. No idea about the second.

-geever

8472

  • Guest
Re: game crash when entering the "EQUIP SOLDIER" on the base in R24813
« Reply #9 on: July 02, 2009, 02:42:09 pm »
this problem looks like solved (R24943). the game doesn't crash anymore.
thx

8472

  • Guest
Re: game crash when entering the "EQUIP SOLDIER" on the base in R25053
« Reply #10 on: July 08, 2009, 10:10:36 am »
it looks like the problem is back
current SVN version: R25053



[STATS] 2009/07/08 10:05:48 - Soldier GustShutdown server: Mission end
==== ShutdownGame ====

music change to van_geoscape (from PsymongR5)
Calling subsystems
...subsystem 'base' - saved
...subsystem 'campaign' - saved
...subsystem 'hospital' - saved
...subsystem 'market' - saved
...subsystem 'research' - saved
...subsystem 'employee' - saved
...subsystem 'aliencont' - saved
...subsystem 'production' - saved
...subsystem 'aircraft' - saved
...subsystem 'messagesystem' - saved
...subsystem 'stats' - saved
...subsystem 'nations' - saved
...subsystem 'transfer' - saved
...subsystem 'alien base' - saved
...subsystem 'xvirate' - saved
...subsystem 'installation' - saved
...subsystem 'messageoptions' - saved
XML Written to buffer (1909768 Bytes)
Calling subsystems
...subsystem 'base' - saved
...subsystem 'campaign' - saved
...subsystem 'hospital' - saved
...subsystem 'market' - saved
...subsystem 'research' - saved
...subsystem 'employee' - saved
...subsystem 'aliencont' - saved
...subsystem 'production' - saved
...subsystem 'aircraft' - saved
...subsystem 'messagesystem' - saved
...subsystem 'stats' - saved
...subsystem 'nations' - saved
...subsystem 'transfer' - saved
...subsystem 'alien base' - saved
...subsystem 'xvirate' - saved
...subsystem 'installation' - saved
...subsystem 'messageoptions' - saved
XML Written to buffer (1909768 Bytes)
music change to van_geoscape (from ufo2)
./ufo(Sys_Backtrace+0x1f)[0x81916f6]
./ufo[0x8191756]
[0xb801e400]
./ufo(MN_ContainerNodeUpdateEquipment+0xe6)[0x811800d]
./ufo[0x80bed12]
./ufo(Cmd_ExecuteString+0xcb)[0x8133824]
./ufo(Cbuf_Execute+0x15a)[0x81325f1]
./ufo[0x808ef2c]
./ufo(CL_Frame+0xdf)[0x808f418]
./ufo[0x8140757]
./ufo(Qcommon_Frame+0x9a)[0x8140a20]
./ufo(main+0x66)[0x8190459]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb784c775]
./ufo[0x8069d31]
./ufo(Sys_Backtrace+0x1f)[0x81916f6]
./ufo(Sys_Error+0x22)[0x8190870]
./ufo(Sys_InitSignals+0x0)[0x8191769]
[0xb801e400]
./ufo(MN_ContainerNodeUpdateEquipment+0xe6)[0x811800d]
./ufo[0x80bed12]
./ufo(Cmd_ExecuteString+0xcb)[0x8133824]
./ufo(Cbuf_Execute+0x15a)[0x81325f1]
./ufo[0x808ef2c]
./ufo(CL_Frame+0xdf)[0x808f418]
./ufo[0x8140757]
./ufo(Qcommon_Frame+0x9a)[0x8140a20]
./ufo(main+0x66)[0x8190459]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb784c775]
./ufo[0x8069d31]
Error: Received signal 11.

Offline Another Guy

  • Squad Leader
  • ****
  • Posts: 239
    • View Profile
Re: game crash when entering the "EQUIP SOLDIER" on the base in R24813
« Reply #11 on: July 08, 2009, 07:36:14 pm »
I got that too once on R25053. Not reproduceble though. I started game again, did same thing on inventory and didn't get the crash. Maybe it has to do with memory issues. Same thing as starting a battlescape and keep hitting retry untill program crashes because of memory issues. Aparently, program does not clean memory that it doesn't use anymore. Just keep taking more and more memory untill it crashes eventually.

Edit: mutton has already stated this battlescape memory issue on another topic. Not sure if it is in fact related to the inventory issue, but it is worth to check it out.
« Last Edit: July 08, 2009, 07:41:11 pm by Another Guy »

Offline bayo

  • Professional loser
  • Project Coder
  • Captain
  • ***
  • Posts: 733
    • View Profile
Re: game crash when entering the "EQUIP SOLDIER" on the base in R24813
« Reply #12 on: July 08, 2009, 09:59:10 pm »
imo no body understand MN_ContainerNodeUpdateEquipment  ;D

odie

  • Guest
Re: game crash when entering the "EQUIP SOLDIER" on the base in R24813
« Reply #13 on: July 09, 2009, 06:50:26 am »
I got that too once on R25053. Not reproduceble though. I started game again, did same thing on inventory and didn't get the crash. Maybe it has to do with memory issues. Same thing as starting a battlescape and keep hitting retry untill program crashes because of memory issues. Aparently, program does not clean memory that it doesn't use anymore. Just keep taking more and more memory untill it crashes eventually.

Edit: mutton has already stated this battlescape memory issue on another topic. Not sure if it is in fact related to the inventory issue, but it is worth to check it out.

I can confirm what Another Guy said about the "RETRY AT BATTLESCAPE" issue.

That is reproducible 100%. Try this:

1) Start battlescape - any mission.
2) Enter mission, wait for load to complete.
3) At any point of mission (Even w/o doing anything right from the start), press ESC and call up the retry option.
4) If it works, good for ye. repeat 1 to 3..... u will hit nos 5 eventually (as fast as sometime just 1 retry).
5) System crash.

Ah! I need consolelogs for this, but i guess anyone can just post.... it be the same....

Probably bayo is right, cos i rmbr seeing something abt equipment issue..... in one of the lines.

Offline Another Guy

  • Squad Leader
  • ****
  • Posts: 239
    • View Profile
Re: game crash when entering the "EQUIP SOLDIER" on the base in R24813
« Reply #14 on: July 09, 2009, 06:57:27 am »
It actually seems to acumulate from batlescape to batlescape. If u retry a mission like 15 times, then on next map (if u leave the program running) then some more on next, then a few retries on third map should do the crash instead of many retrys on same one.