Fractal Softworks Forum

Starsector => Bug Reports & Support => Bug Reports & Support (modded) => Topic started by: bobmiller on January 22, 2016, 04:27:00 AM

Title: Help me help myself - constant crashing in SS+ and two factions
Post by: bobmiller on January 22, 2016, 04:27:00 AM
My game with SS+3.1.2, Blackrock Driveyards 0.8.1, Tiandong HI 1.0.6, Common Radar 2.1, LazyLib 2.1, MusicLib 3.1.0+ and ShaderLib Beta 1.1.2 keeps crashing and I can't decipher the log output (in the spoiler). The mods are the version that's suggested in the SS+ post. I killed a Nexerelin&SS+ game because it kept crashing so I reduced the number of mods considerably (I prefer Nex because I see more of a goal). Can you point me into some direction?

Further information: I can get around these crashes by re-loading a lot of times. I can't say if me doing random things then helps with it or if that's just voodoo. But if they happen, they do happen at approximately the same time each load.

Spoiler
32845 [Thread-5] INFO  com.fs.starfarer.api.impl.campaign.shared.MarketConnectionActivityData  - Updating connection: [coatl_corvus_IIIa]: trade (s: 0, l: 0), smuggling: (s: 0, l: 0)
32890 [Thread-5] INFO  com.fs.starfarer.api.impl.campaign.fleets.BaseLimitedFleetManager  - 20 out of a maximum 21 fleets in play for [data.scripts.world.SSP_LuddicPathFleetManager]
32897 [Thread-5] INFO  com.fs.starfarer.api.impl.campaign.fleets.BaseLimitedFleetManager  - Spawned fleet [Luddic Path raiders] at hyperloc Vector2f[-10000.0, -2000.0]
33145 [Thread-5] INFO  com.fs.starfarer.api.impl.campaign.shared.MarketConnectionActivityData  - Updating connection: [agreus_eventide]: trade (s: 0, l: 0), smuggling: (s: 0, l: 0)
33480 [Thread-5] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NullPointerException
java.lang.NullPointerException
   at com.fs.starfarer.campaign.CharacterStats.getStatsEffects(Unknown Source)
   at com.fs.starfarer.campaign.CharacterStats.refreshCharacterStatsEffects(Unknown Source)
   at com.fs.starfarer.campaign.CharacterStats.increaseSkill(Unknown Source)
   at com.fs.starfarer.rpg.OfficerData.levelUp(Unknown Source)
   at com.fs.starfarer.api.impl.campaign.events.OfficerManagerEvent.createOfficer(OfficerManagerEvent.java:194)
   at data.scripts.campaign.events.SSP_PersonBountyEvent.initPerson(SSP_PersonBountyEvent.java:693)
   at data.scripts.campaign.events.SSP_PersonBountyEvent.startEvent(SSP_PersonBountyEvent.java:560)
   at com.fs.starfarer.campaign.events.CampaignEventManager.startEvent(Unknown Source)
   at data.scripts.campaign.events.SSP_EventProbabilityManager.startPersonBountiesIfN eeded(SSP_EventProbabilityManager.java:212)
   at com.fs.starfarer.api.impl.campaign.events.CoreEventProbabilityManager.advance(CoreEventProbabilityManager.java:108)
   at data.scripts.campaign.events.SSP_EventProbabilityManager.advance(SSP_EventProbabilityManager.java:96)
   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$2.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
[close]
Title: Re: Help me help myself - constant crashing in SS+ and two factions
Post by: BuckCake on January 22, 2016, 05:27:39 AM
First, you need to install 64 bit java and copy the files into the starsector folder. Instructions for that can be found here:
http://fractalsoftworks.com/forum/index.php?topic=8726
The 64 bit client can be downloaded here:
http://filehippo.com/download_jre_64/download/c04186f6ebf547e3fc9d0737617fcb5d/
(this makes the game use all cores)

Second thing you need to do, you need to go into \Starsector\starsector-core\ and open starsector.bat in notepad. Replace the line "-Xms1024m -Xmx1024m" with "-Xms2048m -Xmx3072m".
(this allocates more memory to the game and prevents memory-related crashes)

Run the game using starsector.bat.

This solves 90% of problems associated with mods. If you are still experiencing crashes, you should delete everything and do a fresh install.
Title: Re: Help me help myself - constant crashing in SS+ and two factions
Post by: bobmiller on January 22, 2016, 05:48:20 AM
I think I already have 64 bit java installed, copied and increased the allocated memory - unless the install failed. I have not started it via the .bat file, so I'll do that from now on and check in if things are still crashing. Thank you!

Edit: wherever I changed the memory last time didn't seem to have been the .bat, so I did that now. But my crash save still reliably crashes.
Title: Re: Help me help myself - constant crashing in SS+ and two factions
Post by: Dark.Revenant on January 22, 2016, 10:01:15 AM
You messed with maximum officer level in settings.json.  If it's above 36, the game WILL crash.
Title: Re: Help me help myself - constant crashing in SS+ and two factions
Post by: bobmiller on January 22, 2016, 02:45:34 PM
I hate everything! I didn't think that would do anything so I didn't include it :(. Thank you so much! I messed with the Gryphon ability to not use CR, increased the Officer level to 40 or something, increased the max battle size to [ludicrous].
I'm very impressed by your ability to read that error because I have no clue where you gathered that from.