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: Failed calling method when loading save game  (Read 1019 times)

miles341

  • Ensign
  • *
  • Posts: 34
    • View Profile
Failed calling method when loading save game
« on: December 09, 2021, 02:37:07 AM »

Hi all, I'm having a problem where I get an error message when trying to load the save game from the main menu. I have so many mods enabled that I'm not really that surprised that there's a problem at some point, but I still want to know why it happened.

I spent probably a good 6-7 hours on this save without problems, then when I try to start it up the next day it won't load. For reference, I didn't update any mods at all during the save, and I'm using the JRE8 library with everything necessary for that.

I don't mind if there no fix for the save, just as long as I find out why it happened so I can avoid it next time / remove the offending mod for next game.

Let me know if you need the save game and I can upload it for you.

Error Message
Spoiler
137995 [Thread-3] INFO  com.fs.starfarer.loading.LoadingUtils  - Loading CSV data from [DIRECTORY: D:\Games\Starsector v0.95\starsector-core\..\mods\ED Shipyard]
137995 [Thread-3] INFO  com.fs.starfarer.loading.LoadingUtils  - Loading CSV data from [DIRECTORY: D:\Games\Starsector v0.95\starsector-core\..\mods\Interstellar Imperium]
137995 [Thread-3] INFO  com.fs.starfarer.loading.LoadingUtils  - Loading CSV data from [DIRECTORY: D:\Games\Starsector v0.95\starsector-core\..\mods\Nexerelin]
137996 [Thread-3] INFO  com.fs.starfarer.loading.LoadingUtils  - Loading CSV data from [DIRECTORY: D:\Games\Starsector v0.95\starsector-core\..\mods\Templars]
138088 [Thread-3] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Error loading
138088 [Thread-3] ERROR com.fs.starfarer.campaign.save.CampaignGameManager  - Failed calling method
---- Debugging information ----
message             : Failed calling method
cause-exception     : java.lang.NullPointerException
cause-message       : null
method              : com.fs.starfarer.campaign.fleet.FleetMember.readResolve()
class               : com.fs.starfarer.campaign.fleet.FleetMember
required-type       : com.fs.starfarer.campaign.fleet.FleetMember
converter-type      : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
line number         : 1388882
class[1]            : java.util.HashMap
converter-type[1]   : com.thoughtworks.xstream.converters.collections.MapConverter
class[2]            : com.fs.starfarer.campaign.ModAndPluginData
class[3]            : com.fs.starfarer.campaign.CampaignEngine
converter-type[2]   : com.fs.starfarer.campaign.save.I
version             : not available
-------------------------------
com.thoughtworks.xstream.converters.ConversionException: Failed calling method
---- Debugging information ----
message             : Failed calling method
cause-exception     : java.lang.NullPointerException
cause-message       : null
method              : com.fs.starfarer.campaign.fleet.FleetMember.readResolve()
class               : com.fs.starfarer.campaign.fleet.FleetMember
required-type       : com.fs.starfarer.campaign.fleet.FleetMember
converter-type      : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
line number         : 1388882
class[1]            : java.util.HashMap
converter-type[1]   : com.thoughtworks.xstream.converters.collections.MapConverter
class[2]            : com.fs.starfarer.campaign.ModAndPluginData
class[3]            : com.fs.starfarer.campaign.CampaignEngine
converter-type[2]   : com.fs.starfarer.campaign.save.I
version             : not available
-------------------------------
   at com.thoughtworks.xstream.core.util.SerializationMembers.callReadResolve(SerializationMembers.java:82)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshal(AbstractReflectionConverter.java:282)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:70)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
   at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.rea dItem(AbstractCollectionConverter.java:73)
   at com.thoughtworks.xstream.converters.collections.MapConverter.putCurrentEntryInt oMap(MapConverter.java:106)
   at com.thoughtworks.xstream.converters.collections.MapConverter.populateMap(MapConverter.java:98)
   at com.thoughtworks.xstream.converters.collections.MapConverter.populateMap(MapConverter.java:92)
   at com.thoughtworks.xstream.converters.collections.MapConverter.unmarshal(MapConverter.java:87)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:70)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
   at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.rea dItem(AbstractCollectionConverter.java:73)
   at com.thoughtworks.xstream.converters.collections.MapConverter.putCurrentEntryInt oMap(MapConverter.java:110)
   at com.thoughtworks.xstream.converters.collections.MapConverter.populateMap(MapConverter.java:98)
   at com.thoughtworks.xstream.converters.collections.MapConverter.populateMap(MapConverter.java:92)
   at com.thoughtworks.xstream.converters.collections.MapConverter.unmarshal(MapConverter.java:87)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:70)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshallField(AbstractReflectionConverter.java:503)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUn marshal(AbstractReflectionConverter.java:429)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshal(AbstractReflectionConverter.java:281)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:70)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshallField(AbstractReflectionConverter.java:503)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUn marshal(AbstractReflectionConverter.java:429)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unma rshal(AbstractReflectionConverter.java:281)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:70)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
   at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
   at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1486)
   at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1466)
   at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1346)
   at com.fs.starfarer.campaign.save.CampaignGameManager.o00000(Unknown Source)
   at com.fs.starfarer.campaign.save.CampaignGameManager.o00000(Unknown Source)
   at com.fs.starfarer.title.TitleScreenState.menuItemSelected(Unknown Source)
   at com.fs.starfarer.title.Object.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.Stringsuper.super(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.o00000(Unknown Source)
   at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
   at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
   at com.fs.starfarer.api.impl.campaign.econ.impl.BaseIndustry.getSupply(BaseIndustry.java:734)
   at com.fs.starfarer.api.impl.campaign.econ.impl.BaseIndustry.supply(BaseIndustry.java:314)
   at com.fs.starfarer.api.impl.campaign.econ.impl.BaseIndustry.supply(BaseIndustry.java:303)
   at com.fs.starfarer.api.impl.campaign.econ.impl.BaseIndustry.supply(BaseIndustry.java:299)
   at com.fs.starfarer.api.impl.campaign.econ.conditions.IndEvo_RessourceCondition.un applyAdditionalSupDem(IndEvo_RessourceCondition.java:175)
   at com.fs.starfarer.api.impl.campaign.econ.conditions.IndEvo_RessourceCondition.un apply(IndEvo_RessourceCondition.java:99)
   at com.fs.starfarer.campaign.econ.Market.reapplyConditions(Unknown Source)
   at com.fs.starfarer.campaign.CharacterStats.refreshAllOutpostsEffectsForPlayerOutp osts(Unknown Source)
   at com.fs.starfarer.campaign.CharacterStats.refreshCharacterStatsEffects(Unknown Source)
   at com.fs.starfarer.api.impl.hullmods.PhaseField.onFleetSync(PhaseField.java:63)
   at com.fs.starfarer.campaign.fleet.FleetData.syncIfNeeded(Unknown Source)
   at com.fs.starfarer.campaign.fleet.FleetData.getMembers(Unknown Source)
   at com.fs.starfarer.campaign.fleet.CampaignFleet.getMembers(Unknown Source)
   at com.fs.starfarer.campaign.fleet.CampaignFleet.getFlagship(Unknown Source)
   at com.fs.starfarer.campaign.fleet.FleetMember.getCaptain(Unknown Source)
   at com.fs.starfarer.campaign.fleet.FleetMember.getCaptain(Unknown Source)
   at com.fs.starfarer.api.util.Misc.getMemberStrength(Misc.java:4246)
   at com.fs.starfarer.campaign.fleet.FleetData.updateFleetPointsUsed(Unknown Source)
   at com.fs.starfarer.campaign.fleet.FleetData.syncIfNeeded(Unknown Source)
   at com.fs.starfarer.campaign.fleet.FleetData.getCommander(Unknown Source)
   at com.fs.starfarer.campaign.fleet.FleetMember.updateStats(Unknown Source)
   at com.fs.starfarer.campaign.fleet.FleetMember.readResolve(Unknown Source)
   at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:498)
   at com.thoughtworks.xstream.core.util.SerializationMembers.callReadResolve(SerializationMembers.java:78)
   ... 54 more
[close]
Enabled Mods:
Spoiler
{"enabledMods": [
  "$$$_lightshow",
  "$$$_trailermoments",
  "Ex7s",
  "adjustableautomatedships",
  "adjustable_skill_thresholds",
  "Adjusted Sector",
  "sd_advancedHullMods",
  "ARSWP",
  "ARC",
  "armaa23",
  "raccoonarms",
  "arthrships",
  "automatedcommands",
  "lw_autosave",
  "Barack's Namelists",
  "timid_admins",
  "better_deserving_smods",
  "beyondthesector",
  "BSC",
  "BSC_Submod",
  "blackrock_driveyards",
  "bb_plus",
  "CWSP",
  "CaptainsLog",
  "capturecrew",
  "Csp",
  "CSP",
  "charmingly_wearisome",
  "chatter",
  "lw_radar",
  "timid_commissioned_hull_mods",
  "lw_console",
  "Dabble",
  "istl_dassaultmikoyan",
  "hm_flagpack",
  "DetailedCombatResults",
  "diableavionics_regency",
  "diableavionics",
  "dronelib",
  "dynamictariffs",
  "edshipyard",
  "exshippack",
  "exploration",
  "extra_system_reloaded",
  "XLU",
  "fantastic_furniture",
  "HHE",
  "fleethistory",
  "fluffships",
  "sun_fuel_siphoning",
  "gladiatorsociety",
  "GrandColonies",
  "GMDA",
  "HMI",
  "hte",
  "hostileIntercept",
  "hm_barratry",
  "sun_hyperdrive",
  "IndEvo",
  "internalaffairs",
  "Imperium",
  "timid_xiv",
  "JDC_ziggyxiv",
  "kadur_remnant",
  "keruvim_shipyards",
  "lw_lazylib",
  "leadingPip",
  "ArkLeg",
  "logisticsNotifications",
  "mag_protect",
  "mag_protect_soldier",
  "MagicLib",
  "Mayasuran Navy",
  "missingships",
  "mir",
  "more_hullmods",
  "wisp_NeutrinoDetectorMkII",
  "sun_new_beginnings",
  "nexerelin",
  "objects_analysis",
  "OcuA",
  "ORA",
  "wisp_perseanchronicles",
  "phaseFieldFix",
  "TAR",
  "progressiveSMods",
  "PulseIndustry",
  "QualityCaptains",
  "sanguinary_autonomist_defectors",
  "tahlan_scalartech",
  "SCY",
  "Seafood",
  "secretsofthefrontieralt",
  "SEEKER",
  "shadow_ships",
  "PT_ShipDirectionMarker",
  "swp",
  "Smolships",
  "solsystem",
  "speedUp",
  "sun_starship_legends",
  "steelcardinal",
  "stelnet",
  "StopGapMeasures3",
  "superweapons",
  "timid_supply_forging",
  "Sylphon_RnD",
  "tahlan",
  "Terraforming & Station Construction",
  "Templars",
  "star_federation",
  "TORCHSHIPS",
  "transfer_all_items",
  "underworld",
  "unionrailsystems",
  "US",
  "ungp",
  "UGH",
  "URW",
  "vic",
  "PT_VICpad",
  "vanidad",
  "vayrasector",
  "vayrashippack",
  "lw_version_checker",
  "vesperon",
  "whichmod",
  "audio_plus",
  "prv",
  "shaderLib",
  "G1GC_Hide_Leak_Message"
]}
[close]

Thanks for your help.
Logged

Histidine

  • Admiral
  • *****
  • Posts: 4661
    • View Profile
    • GitHub profile
Re: Failed calling method when loading save game
« Reply #1 on: December 09, 2021, 04:31:35 PM »

See this thread (contains a fix mod, and a way to fix saves where the bug is caused by an older version of Fleet Action History mod)

If it fails, zip the save's campaign.xml file and upload it somewhere. Someone found a case where Vayra's Ship Pack might be causing the bug, but it should be possible to rescue the save.
Logged

miles341

  • Ensign
  • *
  • Posts: 34
    • View Profile
Re: Failed calling method when loading save game
« Reply #2 on: December 09, 2021, 11:48:59 PM »

I already had that phase fix mod installed and active, and there was no "CURR_BATTLE_CHILD_PARENT_SHIPS" entry in my campaign file, so I tried that already, and I was using the most current Fleet Action History version.

Here's my campaign and descriptor .xml files, hopefully it helps.
https://www.dropbox.com/s/zmamobt2b1wbws4/Save%20Files.zip?dl=0
Logged

Jaghaimo

  • Admiral
  • *****
  • Posts: 661
    • View Profile
Re: Failed calling method when loading save game
« Reply #3 on: December 10, 2021, 01:56:37 AM »

Quote
Caused by: java.lang.NullPointerException
   at com.fs.starfarer.api.impl.campaign.econ.impl.BaseIndustry.getSupply(BaseIndustry.java:734)
   at com.fs.starfarer.api.impl.campaign.econ.impl.BaseIndustry.supply(BaseIndustry.java:314)
   at com.fs.starfarer.api.impl.campaign.econ.impl.BaseIndustry.supply(BaseIndustry.java:303)
   at com.fs.starfarer.api.impl.campaign.econ.impl.BaseIndustry.supply(BaseIndustry.java:299)
   at com.fs.starfarer.api.impl.campaign.econ.conditions.IndEvo_RessourceCondition.un applyAdditionalSupDem(IndEvo_RessourceCondition.java:175)
   at com.fs.starfarer.api.impl.campaign.econ.conditions.IndEvo_RessourceCondition.un apply(IndEvo_RessourceCondition.java:99)

This looks new, and is caused by Industrial Evolution, not Fleet Action History.
Logged

Histidine

  • Admiral
  • *****
  • Posts: 4661
    • View Profile
    • GitHub profile
Re: Failed calling method when loading save game
« Reply #4 on: December 10, 2021, 02:43:11 AM »

Okay, I looked into the campaign.xml file, and it seems consistent with what modder briansd9 said on Discord regarding someone else's save that had the same problem:

Quote
The vayra_already_looted_tpc element contains three instances of vayra_mudskipper_xiv_rd... but the first one has an entire fleet embedded inside it, this seems bogus

What I'd try to do is: Open campaign.xml in Notepad++ or similar, find the vayra_already_looted_tpc list.


With the tree collapsed (use the +/- buttons at the left), highlight the <map> line till the start of the next line and delete


Then put an empty map with the same ID back in its place


Can't promise this will result in a usable save. You may have to start over without Vayra's Ship Pack.
Logged

miles341

  • Ensign
  • *
  • Posts: 34
    • View Profile
Re: Failed calling method when loading save game
« Reply #5 on: December 10, 2021, 03:40:00 AM »

Alright, I can confirm that this resulted in a loadable save! Thank you very much for taking the time to help me with this! Now I guess we wait and see if it happens again at some point...
Logged