Ticket #320 (closed defect: fixed)

Opened 21 months ago

Last modified 19 months ago

Distensionbot crash stalemate

Reported by: Maverick Owned by: 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

Changed 21 months ago by Maverick

  • owner changed from nobody to dugwyler

Changed 21 months ago 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.

Changed 21 months ago 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.

Changed 19 months ago by dugwyler

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

Add/Change #320 (Distensionbot crash stalemate)

Author


E-mail address and user name can be saved in the Preferences.


Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.