Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Simulator Enhancements (03/13/24)

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

Histidine

  • Admiral
  • *****
  • Posts: 4661
    • View Profile
    • GitHub profile
[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. 

Code
4646281 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NullPointerException
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 com.fs.starfarer.combat.ai.admiral.BaseBattleStrategy.?00000(Unknown Source)
at com.fs.starfarer.combat.ai.admiral.BaseBattleStrategy.?00000(Unknown Source)
at com.fs.starfarer.combat.ai.admiral.OoOO.?00000(Unknown Source)
at com.fs.starfarer.combat.ai.admiral.AdmiralAI.advance(Unknown 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$1.run(Unknown Source)
at java.lang.Thread.run(Unknown 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:
Spoiler
"$$$_trailermoments",
  "Another Portrait Pack -ReWork-",
  "raccoonarms",
  "lw_autosave",
  "blackrock_driveyards",
  "aaCari UIl",
  "CombatAnalytics",
  "chatter",
  "timid_commissioned_hull_mods",
  "lw_radar",
  "lw_console",
  "istl_dam",
  "diableavionics",
  "DisassembleReassemble",
  "edshipyard",
  "gates_awakened",
  "HMI",
  "Imperium",
  "junk_pirates_release",
  "kadur_remnant",
  "lw_lazylib",
  "leadingPip",
  "ArkLeg",
  "luddenhance",
  "MagicLib",
  "nexerelin",
  "wyv_planetaryShieldAccessControl",
  "SCY",
  "shadow_ships",
  "swp",
  "bonomel_skilledup",
  "speedUp",
  "sun_starship_legends",
  "Sylphon_RnD",
  "tahlan",
  "THI",
  "underworld",
  "US",
  "vayrasector",
  "vayrashippack",
  "lw_version_checker",
  "toggleWeapons",
  "audio_plus",
  "shaderLib"
[close]
Logged

puffzor

  • 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.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23986
    • 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.
Logged