Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Author Topic: Crash to desktop: Error: String index out of range: 16  (Read 642 times)

x-cal

  • Ensign
  • *
  • Posts: 4
    • View Profile
Crash to desktop: Error: String index out of range: 16
« on: September 20, 2021, 02:27:49 AM »

Ive recently got back into playing this game, and all has gone swimmingly for the past week or so. Today suddenly the game has crashed twice. Im no coder but have put part of the log file and hopefully helpful info below
I havent updated or installed any new mods, my OS hasnt updated for 3 days and its run fine the past 2 days.
Happy to provide any other info that might be helpful

Quote
0    [main] INFO  com.fs.starfarer.StarfarerLauncher  - Starting Starsector 0.95a-RC15 launcher
1    [main] INFO  com.fs.starfarer.StarfarerLauncher  - Running in /home/abel/Games/starsector
1    [main] INFO  com.fs.starfarer.StarfarerLauncher  - OS: Linux 5.11.0-34-generic
1    [main] INFO  com.fs.starfarer.StarfarerLauncher  - Java version: 1.7.0_79 (64-bit)
15   [main] INFO  com.fs.starfarer.launcher.ModManager  - Found mod: active_gates [/home/abel/Games/starsector/./mods/Active-Gates]
17   [main] INFO  com.fs.starfarer.launcher.ModManager  - Found mod: lw_autosave [/home/abel/Games/starsector/./mods/Autosave]
18   [main] INFO  com.fs.starfarer.launcher.ModManager  - Found mod: lw_radar [/home/abel/Games/starsector/./mods/Common Radar]
19   [main] INFO  com.fs.starfarer.launcher.ModManager  - Found mod: speedUp [/home/abel/Games/starsector/./mods/SpeedUp]
19   [main] INFO  com.fs.starfarer.launcher.ModManager  - Found mod: lw_lazylib [/home/abel/Games/starsector/./mods/LazyLib]
20   [main] INFO  com.fs.starfarer.launcher.ModManager  - Found mod: diyplanets [/home/abel/Games/starsector/./mods/DIYPlanets]
21   [main] INFO  com.fs.starfarer.launcher.ModManager  - Found mod: DetailedCombatResults [/home/abel/Games/starsector/./mods/DetailedCombatResults]
22   [main] INFO  com.fs.starfarer.launcher.ModManager  - Found mod: nexerelin [/home/abel/Games/starsector/./mods/Nexerelin]
23   [main] INFO  com.fs.starfarer.launcher.ModManager  - Found mod: MagicLib [/home/abel/Games/starsector/./mods/MagicLib]
24   [main] INFO  com.fs.starfarer.launcher.ModManager  - Found mod: fleethistory [/home/abel/Games/starsector/./mods/fleethistory]
25   [main] INFO  com.fs.starfarer.launcher.ModManager  - Found mod: timid_admins [/home/abel/Games/starsector/./mods/Better Colonies]
26   [main] INFO  com.fs.starfarer.launcher.ModManager  - Found mod: automatedcommands [/home/abel/Games/starsector/./mods/AutomatedCommands]
27   [main] INFO  com.fs.starfarer.launcher.ModManager  - Found mod: lw_version_checker [/home/abel/Games/starsector/./mods/Version Checker]
27   [main] INFO  com.fs.starfarer.loading.LoadingUtils  - Loading JSON from [./mods/enabled_mods.json]
28   [main] INFO  com.fs.starfarer.settings.StarfarerSettings  - Loading settings
28   [main] INFO  com.fs.starfarer.loading.LoadingUtils  - Loading JSON from [ABSOLUTE_AND_CWD: null (data/config/settings.json)]



Quote
2158894 [Thread-4] INFO  com.fs.starfarer.api.impl.campaign.events.RepTrackerEvent  - Not enough trade/smuggling with the Luddic Church for a rep change (0.0, 0.0)
2158894 [Thread-4] INFO  com.fs.starfarer.api.impl.campaign.events.RepTrackerEvent  - Not enough trade/smuggling with the Persean League for a rep change (12908.156, 69442.836)
2158894 [Thread-4] INFO  com.fs.starfarer.api.impl.campaign.events.RepTrackerEvent  - Not enough trade/smuggling with the Sindrian Diktat for a rep change (0.0, 0.0)
2158894 [Thread-4] INFO  com.fs.starfarer.api.impl.campaign.events.RepTrackerEvent  - Not enough trade/smuggling with the derelict for a rep change (0.0, 0.0)
2158894 [Thread-4] INFO  com.fs.starfarer.api.impl.campaign.events.RepTrackerEvent  - Not enough trade/smuggling with the Hegemony for a rep change (21.636803, 288.70676)
2158894 [Thread-4] INFO  com.fs.starfarer.api.impl.campaign.events.RepTrackerEvent  - Not enough trade/smuggling with the Knights of Ludd for a rep change (0.0, 0.0)
2158894 [Thread-4] INFO  com.fs.starfarer.api.impl.campaign.events.RepTrackerEvent  - Not enough trade/smuggling with the Luddic Path for a rep change (0.0, 0.0)
2158894 [Thread-4] INFO  com.fs.starfarer.api.impl.campaign.events.RepTrackerEvent  - Not enough trade/smuggling with Tri-Tachyon for a rep change (1177.448, 5152.316)
2158976 [Thread-4] INFO  exerelin.campaign.intel.specialforces.SpecialForcesIntel  - Picking task for Turing
2159345 [Thread-4] INFO  exerelin.campaign.intel.specialforces.SpecialForcesIntel  - Picking task for Gauntlet of Charity
2161390 [Thread-10] INFO  sound.O  - Creating streaming player for music with id [faction_tritach_market_03_friendly.ogg]
2161390 [Thread-10] INFO  sound.OooO  - Playing music with id [faction_tritach_market_03_friendly.ogg]
2191638 [Thread-4] INFO  sound.O  - Cleaning up music with id [campaign_music_part_2_v28.ogg]
2191638 [Thread-4] INFO  sound.O  - Cleaning up music with id [miscallenous_corvus_campaign_music.ogg]
2191642 [Thread-8] INFO  sound.O  - Cleaning up music with id [faction_tritach_market_03_friendly.ogg]
2191661 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.StringIndexOutOfBoundsException: String index out of range: 16
java.lang.StringIndexOutOfBoundsException: String index out of range: 16
   at java.lang.String.charAt(Unknown Source)
   at java.util.regex.Matcher.appendReplacement(Unknown Source)
   at java.util.regex.Matcher.replaceAll(Unknown Source)
   at java.lang.String.replaceAll(Unknown Source)
   at com.fs.starfarer.api.impl.campaign.econ.BaseMarketConditionPlugin.createTooltip(BaseMarketConditionPlugin.java:248)
   at com.fs.starfarer.campaign.ui.MarketConditionsWidget$2.createImpl(Unknown Source)
   at com.fs.starfarer.ui.impl.StandardTooltipV2Expandable.create(Unknown Source)
   at com.fs.starfarer.ui.impl.StandardTooltipV2Expandable.beforeShown(Unknown Source)
   at com.fs.starfarer.ui.Q.showTooltip(Unknown Source)
   at com.fs.starfarer.ui.Objectsuper.oÒ0000(Unknown Source)
   at com.fs.starfarer.ui.Objectsuper.processInput(Unknown Source)
   at com.fs.starfarer.ui.Q.processInput(Unknown Source)
   at com.fs.starfarer.ui.oO00.dispatchEventsToChildren(Unknown Source)
   at com.fs.starfarer.ui.oO00.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.processInput(Unknown Source)
   at com.fs.starfarer.ui.oO00.dispatchEventsToChildren(Unknown Source)
   at com.fs.starfarer.ui.oO00.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.processInput(Unknown Source)
   at com.fs.starfarer.ui.oO00.dispatchEventsToChildren(Unknown Source)
   at com.fs.starfarer.ui.oO00.processInputImpl(Unknown Source)
   at com.fs.starfarer.campaign.command.OutpostItemRow.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.processInput(Unknown Source)
   at com.fs.starfarer.ui.j.o00000(Unknown Source)
   at com.fs.starfarer.ui.newnew.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.processInput(Unknown Source)
   at com.fs.starfarer.ui.Oo0o$Oo.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.processInput(Unknown Source)
   at com.fs.starfarer.ui.oO00.dispatchEventsToChildren(Unknown Source)
   at com.fs.starfarer.ui.oO00.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Oo0o.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.processInput(Unknown Source)
   at com.fs.starfarer.ui.oO00.dispatchEventsToChildren(Unknown Source)
   at com.fs.starfarer.ui.oO00.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.processInput(Unknown Source)
   at com.fs.starfarer.ui.oO00.dispatchEventsToChildren(Unknown Source)
   at com.fs.starfarer.ui.oO00.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.processInput(Unknown Source)
   at com.fs.starfarer.ui.oO00.dispatchEventsToChildren(Unknown Source)
   at com.fs.starfarer.ui.oO00.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.processInput(Unknown Source)
   at com.fs.starfarer.ui.oO00.dispatchEventsToChildren(Unknown Source)
   at com.fs.starfarer.ui.oO00.processInputImpl(Unknown Source)
   at com.fs.starfarer.campaign.command.F.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.processInput(Unknown Source)
   at com.fs.starfarer.ui.oO00.dispatchEventsToChildren(Unknown Source)
   at com.fs.starfarer.ui.oO00.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.newui.class.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.processInput(Unknown Source)
   at com.fs.starfarer.ui.oO00.dispatchEventsToChildren(Unknown Source)
   at com.fs.starfarer.ui.oO00.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Oo0O.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.newui.o0oO.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.processInput(Unknown Source)
   at com.fs.starfarer.ui.oO00.dispatchEventsToChildren(Unknown Source)
   at com.fs.starfarer.ui.oO00.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Oo0O.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.newui.Stringsuper.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.processInput(Unknown Source)
   at com.fs.starfarer.ui.oO00.dispatchEventsToChildren(Unknown Source)
   at com.fs.starfarer.ui.oO00.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.processInput(Unknown Source)
   at com.fs.starfarer.campaign.CampaignState.processInput(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)
2191899 [Thread-10] INFO  sound.O  - Creating streaming player for music with id [faction_tritach_market_03_friendly.ogg]
2191900 [Thread-10] INFO  sound.OooO  - Playing music with id [faction_tritach_market_03_friendly.ogg]

Logged

Histidine

  • Admiral
  • *****
  • Posts: 4688
    • View Profile
    • GitHub profile
Re: Crash to desktop: Error: String index out of range: 16
« Reply #1 on: September 20, 2021, 04:53:58 AM »

I'm guessing it's crashing on interacting with a Tri-Tachyon colony, but which one?

Might be easiest to post the save (zip the folder and upload it to somewhere like Dropbox), could then debug the code involved.
Logged

x-cal

  • Ensign
  • *
  • Posts: 4
    • View Profile
Re: Crash to desktop: Error: String index out of range: 16
« Reply #2 on: September 21, 2021, 01:18:05 AM »

It has also crashed when at one of my own planets, and just now, crashed again while on the planet management screen while in space. Today it crashed after 30seconds of game play, yesterday it lasted 15-30minutes, and prior to that, zero crashes.

Ive uploaded what I believe is the latest Save Here (I have around 20 saves, this one has the latest modified date)

Ive also updated Nexerelin today to see if that changed anything. it doesnt seem to have.
Logged

Histidine

  • Admiral
  • *****
  • Posts: 4688
    • View Profile
    • GitHub profile
Re: Crash to desktop: Error: String index out of range: 16
« Reply #3 on: September 21, 2021, 07:36:03 AM »

Hmm, I loaded the save, looked at all the player planets, docked at all the markets in the Mayasura system, and it didn't crash.
Might be a Linux thing, but that doesn't sound plausible.

Easiest thing to try is probably a reinstall of Starsector.
If the issue persists, someone could supply a modified starfarer_api.jar that prints the string that's causing it to break.
Logged

x-cal

  • Ensign
  • *
  • Posts: 4
    • View Profile
Re: Crash to desktop: Error: String index out of range: 16
« Reply #4 on: September 21, 2021, 05:58:09 PM »

After the 2 quick crashes i mentioned, I tried it again later that day and it ran for an hour without issue.

The only commonality i can think of is that it happens when in a menu, as it has happened docked and while in space, but not during any battles (so far).

I'll try a reinstall if it persists. Thank you for looking into it, its great to have an active community in this, much appreciated!
Logged

x-cal

  • Ensign
  • *
  • Posts: 4
    • View Profile
Re: Crash to desktop: Error: String index out of range: 16
« Reply #5 on: October 01, 2021, 11:45:26 PM »

UPDATE:

I reinstalled starsector, and reverted to a prior version of Nexerelin and have not had a crash for several days (even using the preexisting save game)

My guess is the issue was that I updated Nexerelin from 0.10.2e to 0.10.3c and although it worked for a while, it eventually started crashing
Logged