Menu

#4332 ECM causes illegal state exception

stable 0.40
closed
None
fixed
1
2014-12-17
2014-11-28
Anonymous
No

Attempting to move the anubis to hex 1222 causes an illegal state exception, seems to be ECM related.

1 Attachments

Discussion

  • Anonymous

    Anonymous - 2014-11-28

    .

     
  • Sebastian Brocks

    Whoever keeps adding anonymous comments with just "." as the content, stop it.

     
  • Anonymous

    Anonymous - 2014-11-28

    Those comments have attached files.

     
  • Sebastian Brocks

    Oh. Nevermind then, I'm an idiot.

     
  • Nicholas Walczak

    I think this saved game may be the wrong one. I don't see any ECM or ECCM units in the saved game. However, I can see the issue by looking at the code mentioned in the stack trace. It looks like the loop that checks for ECCM negating ECM doesn't break out once it finds a match, so that one ECM can try to get negated by multiple ECCMs, and hence the ECM entry tries to get removed multiple times, which causes the exception in the attached logfile.

     
  • Nicholas Walczak

    It looks like the saved game contains an NPE right indirect artillery fire from an artillery bay. This is because artillery bays aren't support yet, and to fire artillery from a bay, you must use the optional rule to individually list all weapons in a bay.

     
  • Nicholas Walczak

    Fixed in [r11389].

     

    Related

    Commit: [r11389]

  • Nicholas Walczak

    • assigned_to: Nicholas Walczak
    • Resolution: none --> fixed
    • Milestone: undetermined --> stable 0.40
     
  • Dylan Myers

    Dylan Myers - 2014-12-17
    • Status: open --> closed
     

Log in to post a comment.