Ticket #320 (closed defect: fixed)

Opened 2 months ago

Last modified 1 week ago

Distensionbot crash stalemate

Reported by: Maverick Assigned to: dugwyler
Priority: normal Component: Bots - Other
Version: Latest version from repository Severity: minor
Keywords: Cc:

Description

Distensionbot went into stalemate mode then freq 1 almost won. At the last second (timer stopped at 1 second), the bot crashed:

java.lang.ArrayIndexOutOfBoundsException: -2
        at twcore.bots.distensionbot.distensionbot$DistensionArmy.getPilotsOfShip(distensionbot.java:9121)
        at twcore.bots.distensionbot.distensionbot.handleEvent(distensionbot.java:1925)
        at twcore.core.net.GamePacketInterpreter.handlePlayerDeath(Unknown Source)
        at twcore.core.net.GamePacketInterpreter.translateNormalPacket(Unknown Source)
        at twcore.core.net.GamePacketInterpreter.translateGamePacket(Unknown Source)
        at twcore.core.net.ReliablePacketHandler.handleReliableMessage(Unknown Source)
        at twcore.core.net.GamePacketInterpreter.translateSpecialPacket(Unknown Source)
        at twcore.core.net.GamePacketInterpreter.translateGamePacket(Unknown Source)
        at twcore.core.net.GamePacketInterpreter.translateSpecialPacket(Unknown Source)
        at twcore.core.net.GamePacketInterpreter.translateGamePacket(Unknown Source)
        at twcore.core.Session.run(Unknown Source)
28 Oct 2008 14:46:42   DistensionBot (distensionbot) is disconnecting: unhandled exception
28 Oct 2008 14:47:11   DistensionBot (distensionbot) disconnected gracefully.
java.lang.ArrayIndexOutOfBoundsException: -2
        at twcore.bots.distensionbot.distensionbot$DistensionArmy.getPilotsOfShip(distensionbot.java:9121)
        at twcore.bots.distensionbot.distensionbot.handleEvent(distensionbot.java:1925)
        at twcore.core.net.GamePacketInterpreter.handlePlayerDeath(Unknown Source)
        at twcore.core.net.GamePacketInterpreter.translateNormalPacket(Unknown Source)
        at twcore.core.net.GamePacketInterpreter.translateGamePacket(Unknown Source)
        at twcore.core.net.ReliablePacketHandler.handleReliableMessage(Unknown Source)
        at twcore.core.net.GamePacketInterpreter.translateSpecialPacket(Unknown Source)
        at twcore.core.net.GamePacketInterpreter.translateGamePacket(Unknown Source)
        at twcore.core.net.GamePacketInterpreter.translateSpecialPacket(Unknown Source)
        at twcore.core.net.GamePacketInterpreter.translateGamePacket(Unknown Source)
        at twcore.core.Session.run(Unknown Source)

Attachments

Change History

10/28/08 12:41:46 changed by Maverick

  • owner changed from nobody to dugwyler.

10/28/08 12:45:35 changed by Maverick

Chat transcript:

SECTOR HOLD: People's Republic of Misanthropy(0) - leningrad
    Mjollnir> topp ok
Shock Therap> got it
    Beta-One> Nice lagtach, fail
SECTOR HOLD: Intergalactic Planetary, Inc.(1) - Shock Therapy
       TeCH-> !!!
    Mjollnir> they got 9 secs
    Mjollnir> Attach to HELP north!
Intergalactic Planetary, Inc. will win the battle in 10 seconds . . .
       CLAMY> u need to increase limit
    Mjollnir> Attach to HELP north!
    Mjollnir> Attach to HELP north!
    Mjollnir> Attach to HELP north!
    Mjollnir> Attach to HELP north!
8:TWHub> DistensionBot(distensionbot) has disconnected.

10/29/08 11:04:07 changed by dugwyler

Strangely, may be an unrelated bug (to stalemate, that is). I put in some code that should fix it. Will leave this open in case it repeats.

12/28/08 15:25:30 changed by dugwyler

  • status changed from new to closed.
  • resolution set to fixed.

Add/Change #320 (Distensionbot crash stalemate)




Change Properties
Action