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: crash to desktop, probably related to Sylphon RnD mod 0.8/0.8.1  (Read 3272 times)

pairedeciseaux

  • Captain
  • ****
  • Posts: 340
    • View Profile
crash to desktop, probably related to Sylphon RnD mod 0.8/0.8.1
« on: October 19, 2018, 02:22:31 PM »

[edit: fixed typo in topic subject]

Hello,

I just joined the forum so I can give feedback, report bugs, and be part of the community as a contributing member. Discovered Starfarer/Starsector several years ago, started playing Starsector with version 0.8.1a one year ago, added more and more mods. Great experience overall.

I got several "crash to desktop" during my last campaign : Nexerelin/Dynasector, playing as Sylphon RnD. Started the campaign after upgrading the Sylphon RnD mod to version 0.8. Maybe also upgraded Sanguinary Anarchistic Defectors. Crashes have happened during battle. I think they are related to the Sylphon RnD mod, specifically both versions 0.8 and 0.8.1 of the mod. I never had a crash with previous version of Sylphon RnD.

Other than Sylphon RnD upgrade (first to 0.8, then to 0.8.1), the only recent change to my mod list below is the addition of Combat Chatter.

System:
  • macOS 10.12.6
  • Starsector 0.8.1a-RC8
  • Java 1.7.0_79 (64 bit)
  • 40 GB RAM, -Xms24G -Xmx24G -Xss2M
  • 8 GB VRAM
  • 27 inches display, native resolution is 5120x2880, playing in 2560x1440
  • playerMaxLevel = 80 (but the maximum I've reached so far is around 53 IIRC)
  • maxBattleSize = 600


Enabled mods:
  • Dynasector 1.4.6
  • Blackrock Drive Yards 0.9.1
  • Combat Chatter 1.9.1
  • Dassault-Mikoyan Enginneering 0.9.9
  • Diable Avionics 1.93
  • Disassemble Reassemble 1.3.2
  • nterstellar Imperium 1.19.0
  • LazyLib 2.2
  • Nexerelin 0.8.4b
  • Outer Rim Alliance 0.79
  • Sanguinary Anarchistic Defectors 0.81
  • Scy Nation 1.40
  • Shadowyards 0.7
  • Ship/Weapon Pack 1.7.2
  • Sylphon RnD ... initially 0.8, then 0.8.1       <--------
  • Tyrador Safeguard Coalition 1.5.1
  • Underworld 1.2.2
  • GraphicsLib 1.2.1

Below you will find 4 crash log messages. After I got the second crash I searched the forum for similar reports - found none, then saw the new version of the Sylphon RnD mod (0.8.1), thought it might contain a fix, got it and resumed playing. All crashes look the same : data.scripts.shipsystems.SRD_FluxExchanger.unapply(SRD_FluxExchanger.java:191). I see several changes related to the Flux Exchanger system in the Sylphon RnD 0.8 ChangeLog, they may be related.

First crash:


609120 [Thread-5] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.ArrayIndexOutOfBoundsException: -1
java.lang.ArrayIndexOutOfBoundsException: -1
   at java.util.ArrayList.elementData(ArrayList.java:400)
   at java.util.ArrayList.get(ArrayList.java:413)
   at data.scripts.shipsystems.SRD_FluxExchanger.unapply(SRD_FluxExchanger.java:191)
   at com.fs.starfarer.combat.systems.OOoOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.advance(Unknown Source)
   at com.fs.starfarer.combat.entities.Ship.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(Thread.java:745)


Second crash:


4907578 [Thread-5] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.ArrayIndexOutOfBoundsException: -1
java.lang.ArrayIndexOutOfBoundsException: -1
   at java.util.ArrayList.elementData(ArrayList.java:400)
   at java.util.ArrayList.get(ArrayList.java:413)
   at data.scripts.shipsystems.SRD_FluxExchanger.unapply(SRD_FluxExchanger.java:191)
   at com.fs.starfarer.combat.systems.OOoOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.advance(Unknown Source)
   at com.fs.starfarer.combat.entities.Ship.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(Thread.java:745)


Third crash:


4157944 [Thread-5] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
   at java.util.ArrayList.rangeCheck(ArrayList.java:635)
   at java.util.ArrayList.get(ArrayList.java:411)
   at data.scripts.shipsystems.SRD_FluxExchanger.unapply(SRD_FluxExchanger.java:191)
   at com.fs.starfarer.combat.systems.OOoOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.advance(Unknown Source)
   at com.fs.starfarer.combat.entities.Ship.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(Thread.java:745)


Fourth crash:


3293861 [Thread-5] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
   at java.util.ArrayList.rangeCheck(ArrayList.java:635)
   at java.util.ArrayList.get(ArrayList.java:411)
   at data.scripts.shipsystems.SRD_FluxExchanger.unapply(SRD_FluxExchanger.java:191)
   at com.fs.starfarer.combat.systems.OOoOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.advance(Unknown Source)
   at com.fs.starfarer.combat.entities.Ship.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(Thread.java:745)
« Last Edit: October 20, 2018, 05:36:53 AM by pairedeciseaux »
Logged

MesoTroniK

  • Admiral
  • *****
  • Posts: 1731
  • I am going to destroy your ships
    • View Profile
Re: crash to desktop, probably related dy Sylphon RnD mod 0.8/0.8.1
« Reply #1 on: October 19, 2018, 03:54:47 PM »

40 GB RAM, -Xms24G -Xmx24G -Xss2M
8 GB VRAM

Quick note, *never* allocate more than 8 gigs of ram, nor should you ever change the Xss figure.

Tartiflette

  • Admiral
  • *****
  • Posts: 3529
  • MagicLab discord: https://discord.gg/EVQZaD3naU
    • View Profile
Re: crash to desktop, probably related dy Sylphon RnD mod 0.8/0.8.1
« Reply #2 on: October 19, 2018, 03:59:35 PM »

What a stellar bug report...
Logged
 

Nicke535

  • Commander
  • ***
  • Posts: 240
  • Degenerate Core
    • View Profile
Re: crash to desktop, probably related dy Sylphon RnD mod 0.8/0.8.1
« Reply #3 on: October 20, 2018, 04:42:47 AM »

This is indeed related to Sylphon RnD. I've fixed this issue in the next version; for now, try avoiding to field the Seresvalla, as it is the reason behind the crash. It's not guaranteed to trigger with a seresvalla in the battle, but it's guaranteed to not trigger without one.

pairedeciseaux

  • Captain
  • ****
  • Posts: 340
    • View Profile
Re: crash to desktop, probably related to Sylphon RnD mod 0.8/0.8.1
« Reply #4 on: October 20, 2018, 06:03:37 AM »

MesoTroniK, well I don't remember how I ended up with these values. Probably trial and error. There were crashes related to lack of RAM, because I added mods. And of course the dreaded crash while saving - which I still get. I hope it will improve in Starsector 0.9. Just curious: what's special about having JVM heap higher than 8 GB in Starsector ?

Nicke535, ok good news, I'll wait for the next version of Sylphon RnD.
Logged

pairedeciseaux

  • Captain
  • ****
  • Posts: 340
    • View Profile
Re: crash to desktop, probably related to Sylphon RnD mod 0.8/0.8.1
« Reply #5 on: November 09, 2018, 01:46:01 PM »

Currently playing with the latest Sylphon RnD (0.8.2a), I just got another crash. It happened at the beginning of a battle. My ships where moving towards the middle of the battlefield and had not yet started to fight.

I had an AI controlled Seresvalla in my fleet, and it was using its system - uselessly, because all ship's flux was at 0. Doing so  I think its own flux reach the maximum (or almost), then the game crashed.


java.lang.ArrayIndexOutOfBoundsException: -1
   at java.util.ArrayList.elementData(ArrayList.java:400)
   at java.util.ArrayList.get(ArrayList.java:413)
   at data.scripts.shipsystems.SRD_FluxExchanger.unapply(SRD_FluxExchanger.java:194)
   at com.fs.starfarer.combat.systems.OOoOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.advance(Unknown Source)
   at com.fs.starfarer.combat.entities.Ship.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(Thread.java:745)
Logged

Nicke535

  • Commander
  • ***
  • Posts: 240
  • Degenerate Core
    • View Profile
Re: crash to desktop, probably related to Sylphon RnD mod 0.8/0.8.1
« Reply #6 on: November 10, 2018, 01:49:46 AM »

Currently playing with the latest Sylphon RnD (0.8.2a), I just got another crash. It happened at the beginning of a battle. My ships where moving towards the middle of the battlefield and had not yet started to fight.

I had an AI controlled Seresvalla in my fleet, and it was using its system - uselessly, because all ship's flux was at 0. Doing so  I think its own flux reach the maximum (or almost), then the game crashed.
...I have no idea how I missed that. The entire code was inverted during the last "fix", making it even less reliable than before. This'll be hotfixed within short. Sorry for the inconvenience.

pairedeciseaux

  • Captain
  • ****
  • Posts: 340
    • View Profile
Re: crash to desktop, probably related to Sylphon RnD mod 0.8/0.8.1
« Reply #7 on: November 12, 2018, 12:51:16 PM »

I am happy to report that, after a few hours of gameplay, Seresvalla ship being deployed in almost every battle, I have not had a single crash since your last update.  :)
Logged