project-navigation
Personal tools

Author Topic: Console debug command crash  (Read 3609 times)

Offline Wace

  • Rookie
  • ***
  • Posts: 14
    • View Profile
Console debug command crash
« on: September 10, 2009, 07:49:28 am »
Is it ok that some of the "debug_" commands in the console lead to crash? I mean it's not the proper feature of the game, so I'm not sure if I need to report it.

Offline Zenerka

  • Sergeant
  • *****
  • Posts: 301
    • View Profile
Re: Console debug command crash
« Reply #1 on: September 10, 2009, 10:19:57 am »
It is not, however I think some of them leading to crash is a known problem. Can you point out which debug commands?

Offline Wace

  • Rookie
  • ***
  • Posts: 14
    • View Profile
Re: Console debug command crash
« Reply #2 on: September 11, 2009, 12:11:15 pm »
Did testing. The only command which gives me unconditional crash is debug_listtech

I assume that's the command you've mentioned.

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: Console debug command crash
« Reply #3 on: September 11, 2009, 01:11:11 pm »
Did testing. The only command which gives me unconditional crash is debug_listtech

I assume that's the command you've mentioned.

From where it crashes? In main menu? In Campaign? During a skirmish mission?

Techs (may) only defined in game modes, so the fix can be simply guard it with a check if a game is open.

-geever

Offline Wace

  • Rookie
  • ***
  • Posts: 14
    • View Profile
Re: Console debug command crash
« Reply #4 on: September 11, 2009, 02:41:39 pm »
In main menu it does nothing - isn't sent to server.
In skirmish mode it does nothing as well, although is recognized as a command.

In geoscape or tactical mode of campaign it leads to immediate crash, even if it's "blank" campaign with no research done. Here's the console output:
Code: [Select]
debug_listtech
#techs: 201
Tech: rs_laser
... time      -> 0.00
... name      -> Continuous Wave Laser Operation
... requires ALL  ->
... requires ANY  ->
... provides  -> (null)
... type      -> tech
... researchable -> 0
... research  -> done
... research date: 05 04 2084
Tech: rs_baselaser
... time      -> 0.00
... name      -> Laser Turret
... requires ALL  -> rs_laser (tech) rs_laser
... requires ANY  ->
... provides  -> baselaser
... type      -> tech
... researchable -> 0
... research  -> done
... research date: 08 08 2084
Tech: rs_baselaser_ammo
... time      -> 0.00
... name      -> -F Tank
... requires ALL  ->
... requires ANY  ->
... provides  -> baselaser_ammo
... type      -> tech
... researchable -> 0
... research  -> done
... research date: 21 03 2084
Tech: rs_antimatter
... time      -> 0.00
... name      -> Antimatter
... requires ALL  -> rs_alien_ufo_theory (tech) rs_alien_ufo_theory
... requires ANY  ->
... provides  -> (null)
... type      -> tech
... researchable -> 0
... research  -> done
... research date: 10 08 2084
Tech: rs_item_antimatter
... time      -> 0.00
... name      -> Antimatter
... requires ALL  -> rs_antimatter (tech) rs_antimatter
... requires ANY  ->
... provides  -> antimatter
... type      -> weapon
... researchable -> 0
... research  -> done
... research date: 10 08 2084
Tech: rs_craft_upgrade_am_engines
... time      -> 0.00
... name      -> Upgrade - Antimatter engines
... requires ALL  -> rs_antimatter (tech) rs_antimatter rs_craft_alien_propulsion (tech) rs_craft_alien_propulsion
... requires ANY  ->
... provides  -> (null)
... type      -> tech
... researchable -> 0
... research  -> done
... research date: 04 09 2084
Tech: rs_alien_live
... time      -> 0.00
... name      -> Live Alien
... requires ALL  -> rs_contained_organic_alien (tech) rs_contained_organic_alien
... requires ANY  ->
... provides  -> (null)
... type      -> tech
... researchable -> 0
... research  -> done
... research date: 07 09 2084
Tech: rs_alien_breathing
... time      -> 0.00
... name      -> Alien Breathing Apparatus
... requires ALL  ->
... requires ANY  -> rs_alien_ortnok_autopsy (tech) rs_alien_ortnok_autopsy rs_alien_taman_autopsy (tech) rs_alien_taman_autopsy rs_alien_shevaar_autopsy (tech) rs_alien_shevaar_autopsy
... provides  -> (null)
... type      -> tech
... researchable -> 0
... research  -> done
... research date: 31 07 2084
Tech: rs_item_brapparatus
... time      -> 0.00
... name      -> Alien Breathing Apparatus
... requires ALL  -> rs_alien_breathing (tech) rs_alien_breathing
... requires ANY  ->
... provides  -> brapparatus
... type      -> weapon
... researchable -> 0
... research  -> done
... research date: 31 07 2084
Tech: rs_alien_mind
... time      -> 0.00
... name      -> The Alien Mind
ufo: src/client/campaign/cp_research.c:888: RS_TechReqToName: Assertion `req->link' failed.
... requires ALL  -> rs_alien_live (tech) rs_alien_live./ufo(Sys_Backtrace+0x1f)[0x819630e]
./ufo[0x819636e]
[0xb7f22400]
/lib/tls/i686/cmov/libc.so.6(abort+0x188)[0xb78eb098]
/lib/tls/i686/cmov/libc.so.6(__assert_fail+0xee)[0xb78e25ce]
./ufo[0x80e922b]
./ufo[0x80e93f0]
./ufo(Cmd_ExecuteString+0xcb)[0x81374a0]
./ufo(Cbuf_Execute+0x15a)[0x813626d]
./ufo[0x808f8aa]
./ufo(CL_Frame+0xdf)[0x808fd96]
./ufo[0x814447e]
./ufo(Qcommon_Frame+0x7b)[0x81448ee]
./ufo(main+0x66)[0x8195071]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb78d4775]
./ufo[0x806a301]
./ufo(Sys_Backtrace+0x1f)[0x819630e]
./ufo(Sys_Error+0x22)[0x8195488]
./ufo(Sys_InitSignals+0x0)[0x8196381]
[0xb7f22400]
/lib/tls/i686/cmov/libc.so.6(abort+0x188)[0xb78eb098]
/lib/tls/i686/cmov/libc.so.6(__assert_fail+0xee)[0xb78e25ce]
./ufo[0x80e922b]
./ufo[0x80e93f0]
./ufo(Cmd_ExecuteString+0xcb)[0x81374a0]
./ufo(Cbuf_Execute+0x15a)[0x813626d]
./ufo[0x808f8aa]
./ufo(CL_Frame+0xdf)[0x808fd96]
./ufo[0x814447e]
./ufo(Qcommon_Frame+0x7b)[0x81448ee]
./ufo(main+0x66)[0x8195071]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb78d4775]
./ufo[0x806a301]
Error: Received signal 6.

Let me know what else is needed.