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: New music for Galatia Academy (06/12/24)

Author Topic: Game freeze but not CTD  (Read 608 times)

intrinsic_parity

  • Admiral
  • *****
  • Posts: 3080
    • View Profile
Game freeze but not CTD
« on: December 22, 2021, 06:11:19 PM »

Playing on mac. I have a save with a few utility mods:
  "beyondthesector",
  "CaptainsLog",
  "lw_console",
  "DetailedCombatResults",
  "lw_lazylib",
  "MagicLib",
  "US",
  "shaderLib"

and currently, every time I load the save the game partially freezes after a few seconds, but doesn't crash. The music still plays and the mouse moves (and i can switch to other applications normally), but everything in the game freezes and nothing responds to any inputs and I have to force quit. This happened about 3 times prior on the save, but I was able to reload and continue playing with the freeze coming sooner after re-loading each time until now it happens almost immediately. It seemed to start after I began using the beyond the sector gates, but it could also be a coincidence.

I started a new game and flew around for ~30 seconds and it didn't seem to be an issue. Also tried the .bak version of the saves and had the same issue.

There doesn't appear to be any errors in the log at the time of the issue. The lines in the log after loading are:
Spoiler
sound.OooOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO  - Playing music with id [miscallenous_main_menu.ogg]
142354 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Reading save data from [../../../saves/save_FreyaOlympus_6298448798624536667/descriptor.xml]
142369 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Reading save data from [../../../saves/save_ApolloConley_4463543399809344301/descriptor.xml]
142378 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Reading save data from [../../../saves/save_HenryOlympus_8286555180428018680/descriptor.xml]
142390 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Reading save data from [../../../saves/save_HenryOlympus_4606124604021245334/descriptor.xml]
142401 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Reading save data from [../../../saves/save_HenryOlympus_7428217806224481381/descriptor.xml]
142411 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Reading save data from [../../../saves/save_ApolloConley_6134825972953749388/descriptor.xml]
142419 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Reading save data from [../../../saves/save_ApolloConley_7227469505041633811/descriptor.xml]
793362 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Reading save data from [../../../saves/save_ApolloConley_4463543399809344301/descriptor.xml]
793370 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Reading save data from [../../../saves/save_HenryOlympus_8286555180428018680/descriptor.xml]
793379 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Reading save data from [../../../saves/save_HenryOlympus_4606124604021245334/descriptor.xml]
793388 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Reading save data from [../../../saves/save_HenryOlympus_7428217806224481381/descriptor.xml]
793396 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Reading save data from [../../../saves/save_ApolloConley_6134825972953749388/descriptor.xml]
793402 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Reading save data from [../../../saves/save_ApolloConley_7227469505041633811/descriptor.xml]
795386 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading /Applications/Starsector.app/Contents/Resources/Java/../../../saves/save_HenryOlympus_7428217806224481381...
795394 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 2
795394 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 3
797068 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 4
797068 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 5
797068 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 6
797068 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 8
797068 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 9
797068 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 10
797068 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Finished loading
797068 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 11
797068 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 12
797068 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 21
797069 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 22
797069 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 23
797069 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 24
797069 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 25
797069 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 26
797069 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 27
797069 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 28
797069 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 29
797172 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 30
797172 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 31
797173 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 32
797173 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 33
797324 [Thread-4] INFO  data.scripts.combatanalytics.DetailedCombatResultsModPlugin  - Keyboard key 'L' will open combat aggregation dialogue
797325 [Thread-4] INFO  data.scripts.combatanalytics.DetailedCombatResultsModPlugin  - Language: 'en' Country: 'US'
797582 [Thread-4] INFO  data.scripts.combatanalytics.SerializationManager  - Loaded 30 prior battle results using 1.31MB of memory in 113ms
797582 [Thread-4] INFO  data.scripts.combatanalytics.DetailedCombatResultsModPlugin  - MaxCombatResultCount: 60
797582 [Thread-4] INFO  com.fs.starfarer.loading.LoadingUtils  - Loading JSON from [DIRECTORY: /Applications/Starsector.app/Contents/Resources/Java/../../../mods/MagicLib (data/config/modFiles/magicBounty_data.json)]
797583 [Thread-4] INFO  com.fs.starfarer.loading.LoadingUtils  - Loading CSV data from [DIRECTORY: /Applications/Starsector.app/Contents/Resources/Java/../../../mods/MagicLib]
797654 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 34
797654 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 35
797672 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 36
797672 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 37
797672 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 38
797672 [Thread-4] INFO  sound.O  - Cleaning up music with id [miscallenous_corvus_campaign_music.ogg]
797672 [Thread-4] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 39 - last
799601 [Thread-8] INFO  sound.O  - Cleaning up music with id [miscallenous_main_menu.ogg]
799753 [Thread-10] INFO  sound.O  - Creating streaming player for music with id [miscallenous_corvus_campaign_music.ogg]
799753 [Thread-10] INFO  sound.OooOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOO  - Playing music with id [miscallenous_corvus_campaign_music.ogg]
802098 [Thread-4] INFO  com.fs.starfarer.api.impl.campaign.intel.AnalyzeEntityMissionIntel  - Created AnalyzeEntityMissionIntel: Derelict Ship, faction: pirates
[close]
Also, for what it's worth, the last line in the log doesn't always happen before the issue occurs.

Is the save corrupted, or is there an issue with one of the mods?
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24408
    • View Profile
Re: Game freeze but not CTD
« Reply #1 on: December 22, 2021, 07:01:13 PM »

This sounds like there's probably an infinite loop somewhere - either in vanilla, or in one of the mods.

The best way to track this sort of thing down is, once it hangs, connect to the jvm using jvisualvm (or visualvm) and generate a thread dump. The stack for the main game thread should provide a rough idea of where the issue is occurring.
Logged