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: Offscreen battle seems to have caused a CTD  (Read 483 times)

BHunterSEAL

  • Lieutenant
  • **
  • Posts: 73
    • View Profile
Offscreen battle seems to have caused a CTD
« on: April 22, 2021, 10:42:45 AM »

Welcome to my first-ever post in the Bug Report forum! I've had the game since 2011 or so (back when it was just single missions!) and this is the first time I recall experiencing a CTD that doesn't seem to have been mod-related. Here is what happened in the campaign prior to the error:

1) I evaded a small detachment of ships guarding the Pirate base in Thule (was never intercepted, no dialog).
2) I raided the Thulian Raider Base
3) Either just before or just after the raid, an Independent fleet engaged the Thulian Raider Base
4) I left the base and was pursued by a detachment of Pirate ships, which intercepted me. I disengaged via dialog
5) The pirate detachment joined the battle between the Independents and the Raider Base
6) I left the Thule system via jump-point and moved south-east for several days
7) The CTD then occurred, with the error message indicated in the log below (about the Raider Base trying to leave a battle different from its getBattle).

Here is the relevant log snip:
Code
2885014 [Thread-3] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.RuntimeException: Fleet com.fs.starfarer.campaign.fleet.CampaignFleet@275f5ed3Thulian Raider Base trying to leave a battle different from its getBattle()
java.lang.RuntimeException: Fleet com.fs.starfarer.campaign.fleet.CampaignFleet@275f5ed3Thulian Raider Base trying to leave a battle different from its getBattle()
at com.fs.starfarer.campaign.fleet.Battle.leave(Unknown Source)
at com.fs.starfarer.campaign.fleet.Battle.finish(Unknown Source)
at com.fs.starfarer.campaign.fleet.Battle.doAutoresolveRound(Unknown Source)
at com.fs.starfarer.campaign.fleet.Battle.advance(Unknown Source)
at com.fs.starfarer.campaign.BaseLocation.advanceEvenIfPaused(Unknown Source)
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)

It's worth noting that I'd saved between #4 and #5 above, and upon reloading, the game continued on without crashing.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23986
    • View Profile
Re: Offscreen battle seems to have caused a CTD
« Reply #1 on: April 22, 2021, 10:56:13 AM »

Thank you for the report!

Just to confirm, are you running the game with mods, or vanilla? I remember seeing this error reported but it was in a modded game. Even though the stack trace doesn't contain any mod-code, it's still possible for the underlying cause to be mod-related.
Logged

BHunterSEAL

  • Lieutenant
  • **
  • Posts: 73
    • View Profile
Re: Offscreen battle seems to have caused a CTD
« Reply #2 on: April 22, 2021, 11:05:50 AM »

I'm running:

Code
{"enabledMods": [
  "$$$_lightshow",
  "lw_autosave",
  "CAS",
  "chatter",
  "timid_commissioned_hull_mods",
  "gunnyhegexpeditionary",
  "lw_lazylib",
  "leadingPip",
  "logisticsNotifications",
  "MagicLib",
  "missingships",
  "$$rebalanced_pilums",
  "speedUp",
  "sun_starship_legends",
  "transfer_all_items",
  "incometweaks",
  "underworld",
  "US",
  "URW",
  "lw_version_checker",
  "audio_plus",
  "shaderLib"
]}

I've run all of these with no issue since the first public 0.95a RC, with the exception of Underworld (recently released for 0.95a, the mod index hasn't been updated yet).

Incometweaks is my own house mod for removing the stipend, enabling Spacer and adjustments to bounties / commissions, nothing more dramatic than edits to variables in Settings.json.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23986
    • View Profile
Re: Offscreen battle seems to have caused a CTD
« Reply #3 on: April 22, 2021, 11:33:16 AM »

Hmm - let me move this to the modded subforum. It looks to be the same as this issue:
https://fractalsoftworks.com/forum/index.php?topic=20761.msg315881#msg315881

Though I'm not seeing much overlap in the mods, so it's possible this is indeed a vanilla issue.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23986
    • View Profile
Re: Offscreen battle seems to have caused a CTD
« Reply #4 on: April 22, 2021, 12:43:01 PM »

Since I had to do a hotfix release anyway, fixed this up too. Still not sure whether the cause is in vanilla or modded, but it will no longer throw this error when running in not-dev-mode.
Logged

BHunterSEAL

  • Lieutenant
  • **
  • Posts: 73
    • View Profile
Re: Offscreen battle seems to have caused a CTD
« Reply #5 on: April 22, 2021, 01:11:20 PM »

Perfect timing on the update--had the same problem again just now, oddly enough also at Thule after dumping drugs. The station was under attack by multiple Persean fleets when I docked. A small Pirate detachment also spawned while I was around.
Logged