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: NullPointException CTD when clicking doctrine tab *Solved*  (Read 1532 times)

Sjdeany

  • Ensign
  • *
  • Posts: 4
    • View Profile
NullPointException CTD when clicking doctrine tab *Solved*
« on: June 21, 2019, 09:03:53 AM »

Been playing this save for 5 hours or so with no issues, Running a really tame mod list but now it seems to keep ctd when I'm in my colony system its happened randomly a few times but will crash consistently when clicking doctrines tab so something has messed it up.

Mods are all upto date, using;

Spoiler
{"enabledMods": [
  "raccoonarms",
  "blackrock_driveyards",
  "diableavionics",
  "Imperium",
  "lw_lazylib",
  "MagicLib",
  "Mayasuran Navy",
  "nexerelin",
  "ORA",
  "SCY",
  "shadow_ships",
  "swp",
  "US",
  "lw_version_checker",
  "shaderLib"
]}
[close]


Appreciate any help I dont want to restart this save or run into the same bug again in a later save.

Cheers.
« Last Edit: June 23, 2019, 04:20:09 PM by Sjdeany »
Logged

Nick XR

  • Admiral
  • *****
  • Posts: 712
    • View Profile
Re: NullPointException CTD
« Reply #1 on: June 21, 2019, 11:23:57 AM »

Could you look in your \starsector-core and see if there are any exceptions in the log (near the end)?

Sjdeany

  • Ensign
  • *
  • Posts: 4
    • View Profile
Re: NullPointException CTD
« Reply #2 on: June 21, 2019, 11:36:40 AM »

Got this error at the end of .log

Spoiler
java.lang.NullPointerException
   at com.fs.starfarer.ui.A.new.super(Unknown Source)
   at com.fs.starfarer.ui.A.new.<init>(Unknown Source)
   at com.fs.starfarer.campaign.ui.String.<init>(Unknown Source)
   at com.fs.starfarer.ui.P.super(Unknown Source)
   at com.fs.starfarer.campaign.ui.oOOo.addIconFor(Unknown Source)
   at com.fs.starfarer.campaign.command.J.updateSampleFleet(Unknown Source)
   at com.fs.starfarer.campaign.command.J.createIfNeeded(Unknown Source)
   at com.fs.starfarer.campaign.command.F.actionPerformed(Unknown Source)
   at com.fs.starfarer.ui.newnew.buttonPressed(Unknown Source)
   at com.fs.starfarer.ui.I.Ò00000(Unknown Source)
   at com.fs.starfarer.ui.I.processInput(Unknown Source)
   at com.fs.starfarer.ui.O0Oo.o00000(Unknown Source)
   at com.fs.starfarer.BaseGameState.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)
[close]
Logged

Nick XR

  • Admiral
  • *****
  • Posts: 712
    • View Profile
Re: NullPointException CTD
« Reply #3 on: June 21, 2019, 01:32:41 PM »

Looks like one of your mods.  You sure they are all 9.1 compatible?  I didn't recognize a few of them.

Also there was this exception in there, not sure if it's relevant.
Spoiler
5075 [Thread-4] WARN  com.fs.starfarer.loading.WeaponSpreadsheetLoader  - Error figuring out MIRV spec details
java.lang.NullPointerException
   at com.fs.starfarer.loading.WeaponSpreadsheetLoader.Ò00000(Unknown Source)
   at com.fs.starfarer.loading.WeaponSpreadsheetLoader.o00000(Unknown Source)
   at com.fs.starfarer.loading.WeaponSpreadsheetLoader.Ò00000(Unknown Source)
   at com.fs.starfarer.loading.SpecStore.ÒO0000(Unknown Source)
   at com.fs.starfarer.loading.ResourceLoaderState.init(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)
[close]

Sjdeany

  • Ensign
  • *
  • Posts: 4
    • View Profile
Re: NullPointException CTD
« Reply #4 on: June 22, 2019, 02:01:31 AM »

Checked and they are all 9.1a Compatible, everything has been working fine and then something broke and is now causing these crashes, normally if the mods scuffed i'd know much sooner into a save than this, someone else reported a similar crash - http://fractalsoftworks.com/forum/index.php?topic=15508.0

Normally I'd just play vanilla but I think I stumbled across a legit bug here instead of some mod compatibility issue.

Heres the mods folder name instead of name of enabled_mods

Spoiler
Arsenal Expansion
Blackrock Drive Yards
DIABLEAVIONICS
GraphicsLib
Interstellar Imperium
LazyLib
MagicLib
Mayasuran Navy
Nexerelin
ORA
SCY
Shadowyards
Ship and Weapon Pack
UnknownSkies
Version Checker
[close]
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23986
    • View Profile
Re: NullPointException CTD when clicking doctrine tab
« Reply #5 on: June 22, 2019, 11:16:07 AM »

Got your PM, thank you for uploading your mods folder/savefile. This is indeed a vanilla issue; fixed it up.

It has to do with player fleets having a chance to use some of your custom-saved autofit variants for ships, and only affects ships with modules. To get around this in your current save, go into the refit screen and delete all the "goal variants" for the Flourish; that should avoid the crashes both in the campaign and in the doctrine screen.

Although, hmm - some crashes may still occur when you interact in any way with existing player-faction-fleets that have these Flourish variants... so that's a bit of a problem. I think if you removed the patrol HQ and waited a while for the fleets to despawn, that might work out as well. This issue should not affect non-player-faction fleets.
Logged

Sjdeany

  • Ensign
  • *
  • Posts: 4
    • View Profile
Re: NullPointException CTD when clicking doctrine tab
« Reply #6 on: June 22, 2019, 11:52:03 AM »

Awesome. thank you so much Alex.
Logged