Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  


Starsector 0.95.1a is out! (12/10/21); Blog post: Hostile Activity (09/01/22)

Author Topic: [0.9.1a] Admiral AI crash  (Read 843 times)


  • Admiral
  • *****
  • Posts: 3981
    • View Profile
    • Bitbucket profile
    • Email
[0.9.1a] Admiral AI crash
« on: November 21, 2019, 03:46:48 AM »

From Nexerelin thread:

Got a c2d, not sure if it's related to Nex but it happened during a defense of one of my planets from a Hegemony invasion fleet so I figured I'd post it here. 

4646281 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NullPointerException
at com.fs.starfarer.combat.CombatFleetManager$O0.getLocation(Unknown Source)
at com.fs.starfarer.combat.tasks.CombatTaskManager.computeEta(Unknown Source)
at com.fs.starfarer.combat.tasks.CombatTaskManager.fillTasks(Unknown Source)
at com.fs.starfarer.combat.tasks.CombatTaskManager.return(Unknown Source)
at com.fs.starfarer.combat.tasks.CombatTaskManager.reassignPlayerShipsOnly(Unknown Source)
at com.fs.starfarer.combat.tasks.CombatTaskManager.addTask(Unknown Source)
at com.fs.starfarer.combat.tasks.CombatTaskManager.addTask(Unknown Source)
at Source)
at Source)
at Source)
at Source)
at com.fs.starfarer.combat.CombatFleetManager.advance(Unknown Source)
at com.fs.starfarer.combat.CombatEngine.advanceInner(Unknown Source)
at com.fs.starfarer.combat.CombatEngine.advance(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)
4646397 [Thread-10] INFO  sound.oo0O  - Creating streaming player for music with id [faction_hegemony_encounter_02_hostile.ogg]
4646397 [Thread-10] INFO  sound.null  - Playing music with id [faction_hegemony_encounter_02_hostile.ogg]

This happened when I aided my star fortress against an invasion fleet, there were about 6 of them. When I won, I immediately engaged the remainders of the fleet, and the c2d happened. 

Current modlist:
  "Another Portrait Pack -ReWork-",
  "aaCari UIl",


  • Ensign
  • *
  • Posts: 18
    • View Profile
Re: [0.9.1a] Admiral AI crash
« Reply #1 on: November 21, 2019, 04:52:06 AM »

Haven't been able to repro it, but I was wondering if it's related to the fact that sometimes when you're aiding an orbital base and there are civilian ships that are reserved, if you try to pursue them it kicks you out without letting you actually chase the ships, maybe there's some sort of conflict with multiple invasion fleets where if that situation occurs it causes this? I don't really know anything about the internals of the engine but it was just something I thought fit the circumstances.


  • Administrator
  • Admiral
  • *****
  • Posts: 20803
    • View Profile
Re: [0.9.1a] Admiral AI crash
« Reply #2 on: November 21, 2019, 08:21:47 AM »

This *should* be fixed for the next release - CombatFleetManager$O0.getLocation is, I believe, related to fighter wings under some rare circumstances not having a "leader", so trying to get their location throws an NPE.