Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.98a is out! (03/27/25)

Author Topic: PermGen Space CTD while Interacting with Markets [0.95]  (Read 1108 times)

SwaggyCthulhu

  • Ensign
  • *
  • Posts: 12
    • View Profile
PermGen Space CTD while Interacting with Markets [0.95]
« on: November 11, 2021, 06:50:36 AM »

This is the second time I've had this exact crash occur in the last week. The first one happened when attempting to check a market's bar, and the last happened when attempting to check a market's ship yard. Both instances occurred roughly two hours into the play sessions. I have 8GB of memory allocated in VMparams. I'm using an I5-9300H, a 1660TI, and have 16GB's of memory in total.

All mods are updated to their latest versions, but I am using the discord versions of SWP and Vayra's Sector. If I recall correctly, the 0.95 version of Vayra's Sector is a bit of a hack job, but I'm hopeful that it isn't the issue.

I lack any kind of relevant expertise, so any info or advice is appreciated. Thank you.

Modlist:
 "anotherportraitpack",
  "armaa23",
  "raccoonarms",
  "battletechportraitpack",
  "beyondthesector",
  "BSC",
  "HMI_brighton",
  "CWSP",
  "CaptainsLog",
  "capturecrew",
  "Csp",
  "clearCommands",
  "chatter",
  "timid_commissioned_hull_mods",
  "lw_console",
  "domain_mship_controllable",
  "diyplanets",
  "istl_dassaultmikoyan",
  "DetailedCombatResults",
  "diableavionics",
  "dronelib",
  "dynamictariffs",
  "edshipyard",
  "exshippack",
  "XLU",
  "HHE",
  "fluffships",
  "gladiatorsociety",
  "GrandColonies",
  "HMI_SV",
  "HMI",
  "gunnyhegexpeditionary",
  "hte",
  "hm_barratry",
  "IndEvo",
  "kadur_remnant",
  "kazeron",
  "kingdomofterra",
  "LTA",
  "lw_lazylib",
  "ArkLeg",
  "luddenhance",
  "mag_protect",
  "MagicLib",
  "Mayasuran Navy",
  "missingships",
  "su_CarrierHullmod",
  "more_hullmods",
  "nexerelin",
  "OcuA",
  "Ocutek",
  "old_hyperion",
  "oas",
  "ORA",
  "pn",
  "wisp_perseanchronicles",
  "PulseIndustry",
  "QualityCaptains",
  "rotcesrats",
  "roider",
  "sanguinary_autonomist_defectors",
  "tahlan_scalartech",
  "SCY",
  "Seafood",
  "SEEKER",
  "shadow_ships",
  "swp",
  "sun_starship_legends",
  "StopGapMeasures3",
  "superweapons",
  "timid_supply_forging",
  "tahlan",
  "Terraforming and Station Construction",
  "exalted",
  "star_federation",
  "TORCHSHIPS",
  "underworld",
  "UNSC",
  "US",
  "UGH",
  "va11portraits",
  "vic",
  "vanidad",
  "vayrashippack",
  "weftinships",
  "whichmod",
  "XhanEmpire",
  "yunru_midline_expansion",
  "yunru_pirate_collection",
  "yunrucore",
  "astroidships",
  "prv",
  "shaderLib"

Log:
Code
8688849 [Thread-3] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.OutOfMemoryError: PermGen space
java.lang.OutOfMemoryError: PermGen space
at sun.misc.Unsafe.defineClass(Native Method)
at sun.reflect.ClassDefiner.defineClass(Unknown Source)
at sun.reflect.MethodAccessorGenerator$1.run(Unknown Source)
at sun.reflect.MethodAccessorGenerator$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.reflect.MethodAccessorGenerator.generate(Unknown Source)
at sun.reflect.MethodAccessorGenerator.generateConstructor(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at com.fs.starfarer.loading.scripts.ScriptStore.Ó00000(Unknown Source)
at com.fs.starfarer.loading.L.getNewPluginInstance(Unknown Source)
at com.fs.starfarer.campaign.econ.Submarket.<init>(Unknown Source)
at com.fs.starfarer.campaign.econ.Market.addSubmarket(Unknown Source)
at com.fs.starfarer.api.plugins.addOrRemovePlugins.IndEvo_subMarketAddOrRemovePlugin.addSubMarket(IndEvo_subMarketAddOrRemovePlugin.java:52)
at com.fs.starfarer.api.plugins.addOrRemovePlugins.IndEvo_subMarketAddOrRemovePlugin.advance(IndEvo_subMarketAddOrRemovePlugin.java:42)
at com.fs.starfarer.campaign.CampaignEngine.advance(Unknown Source)
at com.fs.starfarer.campaign.CampaignState.advance(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(Unknown Source)
8689020 [Thread-9] INFO  sound.oo0O  - Creating streaming player for music with id [miscallenous_corvus_campaign_music.ogg]
8689021 [Thread-9] INFO  sound.OooO  - Playing music with id [miscallenous_corvus_campaign_music.ogg]
Logged

Histidine

  • Admiral
  • *****
  • Posts: 5100
    • View Profile
    • GitHub profile
Re: PermGen Space CTD while Interacting with Markets [0.95]
« Reply #1 on: November 11, 2021, 05:09:34 PM »

(from Googling the topic a bit)

These vmparams flags were suggested here:
Code
-XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled

You could also increase MaxPermSize: -XX:MaxPermSize=128m

Making Starsector use Java 8 may also solve the problem.
Logged

SwaggyCthulhu

  • Ensign
  • *
  • Posts: 12
    • View Profile
Re: PermGen Space CTD while Interacting with Markets [0.95]
« Reply #2 on: December 11, 2021, 02:15:18 AM »

(from Googling the topic a bit)

These vmparams flags were suggested here:
Code
-XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled

You could also increase MaxPermSize: -XX:MaxPermSize=128m

Making Starsector use Java 8 may also solve the problem.

Thank you.
« Last Edit: December 11, 2021, 02:17:11 AM by SwaggyCthulhu »
Logged