project-navigation
Personal tools

Author Topic: [32055] sometimes production page exit on failed assert  (Read 3330 times)

Offline jerikojerk

  • Squad Leader
  • ****
  • Posts: 149
    • View Profile
[32055] sometimes production page exit on failed assert
« on: September 02, 2010, 02:06:46 am »

it says "assert aircraftBase failed".

Code: [Select]
ufo: src/client/campaign/cp_produce_callbacks.c :160 : PR_UpdateProductionList:  L'assertion << aircraftBase >> a ?chou?.
./ufo(Sys_Backtrace+0x1f)[./src/ports/unix/unix_main.c:394 Sys_Backtrace()]
./ufo[./src/ports/unix/unix_main.c:415 Sys_Signal()]
[0x772400]
/lib/tls/i686/cmov/libc.so.6(abort+0x182)[??:0 ??()]
/lib/tls/i686/cmov/libc.so.6(__assert_fail+0xf8)[??:0 ??()]
./ufo[./src/client/campaign/cp_produce_callbacks.c:161 PR_UpdateProductionList()]
./ufo[./src/client/campaign/cp_produce_callbacks.c:518 PR_ProductionType_f()]
./ufo(Cmd_ExecuteString+0xcb)[./src/common/cmd.c:990 Cmd_ExecuteString()]
./ufo(Cbuf_Execute+0x162)[./src/common/cmd.c:242 Cbuf_Execute()]
./ufo[./src/client/cl_main.c:1127 CL_SendCommand()]
./ufo(CL_Frame+0xe2)[./src/client/cl_main.c:1258 CL_Frame()]
./ufo[./src/common/common.c:1200 tick_timer()]
./ufo(Qcommon_Frame+0x7b)[./src/common/common.c:1348 Qcommon_Frame()]
./ufo(main+0x5c)[./src/ports/linux/linux_main.c:54 main()]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[??:0 ??()]
./ufo[??:0 _start()]
./ufo(Sys_Backtrace+0x1f)[./src/ports/unix/unix_main.c:394 Sys_Backtrace()]
./ufo(Sys_Error+0x22)[./src/ports/unix/unix_main.c:87 Sys_Error()]
./ufo(Sys_InitSignals+0x0)[./src/ports/unix/unix_main.c:422 Sys_InitSignals()]
[0x772400]
/lib/tls/i686/cmov/libc.so.6(abort+0x182)[??:0 ??()]
/lib/tls/i686/cmov/libc.so.6(__assert_fail+0xf8)[??:0 ??()]
./ufo[./src/client/campaign/cp_produce_callbacks.c:161 PR_UpdateProductionList()]
./ufo[./src/client/campaign/cp_produce_callbacks.c:518 PR_ProductionType_f()]
./ufo(Cmd_ExecuteString+0xcb)[./src/common/cmd.c:990 Cmd_ExecuteString()]
./ufo(Cbuf_Execute+0x162)[./src/common/cmd.c:242 Cbuf_Execute()]
./ufo[./src/client/cl_main.c:1127 CL_SendCommand()]
./ufo(CL_Frame+0xe2)[./src/client/cl_main.c:1258 CL_Frame()]
./ufo[./src/common/common.c:1200 tick_timer()]
./ufo(Qcommon_Frame+0x7b)[./src/common/common.c:1348 Qcommon_Frame()]
./ufo(main+0x5c)[./src/ports/linux/linux_main.c:54 main()]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[??:0 ??()]
./ufo[??:0 _start()]
Error: Received signal 6.

Offline jerikojerk

  • Squad Leader
  • ****
  • Posts: 149
    • View Profile
Re: [32055] sometimes production page exit on failed assert
« Reply #1 on: September 02, 2010, 02:51:48 am »
how to reproduce
  • load the savegame
  • open Australian base (there is only one)
  • open production panel
  • click on aircraft tab
  • it crash immediatly



Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: [32055] sometimes production page exit on failed assert
« Reply #2 on: September 02, 2010, 12:37:36 pm »
the code there should use AIR_GetNextFromBase anway - i will fix that and retry with your savegame

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: [32055] sometimes production page exit on failed assert
« Reply #3 on: September 02, 2010, 12:44:27 pm »
fixed - will be in git soon

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: [32055] sometimes production page exit on failed assert
« Reply #4 on: September 02, 2010, 05:11:37 pm »
the code there should use AIR_GetNextFromBase anway - i will fix that and retry with your savegame

it was fixed by me already I just couldn't push my commit....

Edit: It is Bug#3055551, you can find my patch uploaded there.

@Mattn: The fix was ready on 29th of August, since that I'm waiting for that f*cking repository to open...

-geever
« Last Edit: September 02, 2010, 06:39:58 pm by geever »

Offline jerikojerk

  • Squad Leader
  • ****
  • Posts: 149
    • View Profile
Re: [32055] sometimes production page exit on failed assert
« Reply #5 on: September 02, 2010, 07:03:35 pm »
is the patch committed in the trunk ? i can't get it through svn.

EDIT: get the patch trough tracker. It works for me.
« Last Edit: September 02, 2010, 07:17:13 pm by jerikojerk »

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: [32055] sometimes production page exit on failed assert
« Reply #6 on: September 02, 2010, 07:24:29 pm »
is the patch committed in the trunk ? i can't get it through svn.

SVN is closed too I can't commit there either. It's read-only.

-geever