Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  


Starsector 0.95a is out! (03/26/21); Blog post: A Tale of Two Tech Levels (05/28/21)

Author Topic: [0.7.2a] Array out of bounds in ship render code  (Read 1558 times)


  • Admiral
  • *****
  • Posts: 3242
    • View Profile
    • Bitbucket profile
    • Email
[0.7.2a] Array out of bounds in ship render code
« on: March 12, 2016, 05:53:31 AM »

Originally posted in Combat Chatter thread:

5335853 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.ArrayIndexOutOfBoundsException: 4
java.lang.ArrayIndexOutOfBoundsException: 4
   at com.fs.starfarer.combat.entities.ship.A.G.render(Unknown Source)
   at com.fs.starfarer.combat.entities.Ship.render(Unknown Source)
   at com.fs.starfarer.combat.entities.Ship.render(Unknown Source)
   at com.fs.starfarer.combat.entities.BaseEntity.render(Unknown Source)
   at Source)
   at com.fs.starfarer.combat.CombatEngine.render(Unknown Source)
   at com.fs.starfarer.combat.CombatState.traverse(Unknown Source)
   at com.fs.state.AppDriver.begin(Unknown Source)
   at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
   at com.fs.starfarer.StarfarerLauncher$ Source)
   at Source)

(It's likely not Combat Chatter, seeing as its plugin's renderInWorldCoords() and renderInUICoords() methods are empty; it does use CombatEngineAPI.addFloatingText)


  • Administrator
  • Admiral
  • *****
  • Posts: 18684
    • View Profile
Re: [0.7.2a] Array out of bounds in ship render code
« Reply #1 on: March 12, 2016, 09:52:09 AM »

This is a crash due to a beam weapon's animation trying to render a frame that doesn't exist. Most likely a decorative weapon's animation script gone wrong, I'd say.

(Also, the stack trace is from 0.7.2a-RC2, though it doesn't matter for this one.)