Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Very slow loading, especically on existing saves on 9803 #35035

Closed
dissociativity opened this issue Oct 26, 2019 · 13 comments · Fixed by #35065
Closed

Very slow loading, especically on existing saves on 9803 #35035

dissociativity opened this issue Oct 26, 2019 · 13 comments · Fixed by #35065
Labels
Code: Performance Performance boosting code (CPU, memory, etc.) (S2 - Confirmed) Bug that's been confirmed to exist

Comments

@dissociativity
Copy link
Contributor

dissociativity commented Oct 26, 2019

Describe the bug

I cannot load any saves, the game hangs on mapgen weights for strangely long even with no mods, then hangs for a long time on crafting recipes.

The game starts with both of these, albiet with the aformentioned oddly slow loading on a new world, and very long loading on an existing one.

This is all on a decent, fairly new SSD.

Steps To Reproduce

Steps to reproduce the behavior:
Start new world with any mod setup, with or without
Save Game
Load Game
Game hangs on Crafting recipes in loading for a very long time and eventually makes it in game, windows believes the game isn't responding so I previously believed it to be a crash

Expected behavior

Game loads as per normal.

Versions and configuration

  • OS: Windows 8.1
  • Game Version: build 9803 from releases
  • Graphics version: Tiles
  • Mods loaded: same issue with only dda, or with my standard mod setup that comes with th game.

Additional context

debug log zipped here, not sure how useful it'll be
debug.zip

@KorGgenT
Copy link
Member

i pulled master less than an hour ago, and noticed a similar hang but it did not freeze entirely.

@KorGgenT KorGgenT added (S2 - Confirmed) Bug that's been confirmed to exist Code: Performance Performance boosting code (CPU, memory, etc.) labels Oct 26, 2019
@AbsentlyMultitask
Copy link
Contributor

I noticed a slow-down on creating/loading a new world. Also noticed a pronounced hanging during loading an old world/save. It took ~20min to get past "Crafting Recipes", and then further hanging during "Verifying".

@anothersimulacrum
Copy link
Member

anothersimulacrum commented Oct 26, 2019

Fresh compile on Linux at 50cb40a - noticeable hang at crafting recipes (minute or so), but the save loaded.
Mods: dda

@dissociativity
Copy link
Contributor Author

I suppose I didn't have the patience to wait 20 minutes where normally it'd open fairly quickly, I'll edit to say it works, it just hangs for a long period of time

@dissociativity dissociativity changed the title Cannot load saves on 9803 Very slow loading, especically on existing saves on 9803 Oct 26, 2019
@AbsentlyMultitask
Copy link
Contributor

I actually gave up and reverted to 9801 after it hanged for 20+ on "Verifying". So I think there might be an issue with mods or the number of crafting recipes. I might try letting it run on 9803 overnight and see if it loads.

My debug info in case anyone looking at this issue needs it:

  • OS: Windows
  • OS Version: MINGW/CYGWIN/MSYS2 on unknown Windows version
  • Game Version: 0.D-8779-g5ad16b6 [64-bit]
  • Graphics Version: Tiles
  • Mods loaded: [
    Dark Days Ahead [dda],
    Disable NPC Needs [no_npc_food],
    Makeshift Items Mod [makeshift],
    Medieval and Historic Classes and Shields [Medieval_Stuff],
    More Survival Tools [More_Survival_Tools],
    Modular Turrets [modular_turrets],
    Salvaged Robots [Salvaged_Robots],
    Alternative Map Key [alt_map_key],
    Beta National Guard Camp [national_guard_camp],
    More Locations [more_locations],
    Fuji's More Buildings [FujiStruct],
    Folding Parts pack [deoxymod],
    Vehicle Additions Pack [blazemod],
    Tanks and Other Vehicles [Tanks],
    Player Mod [Player_Mod], Custom monster blacklist only
    SpeedyDex [speedydex],
    Stats Through Skills [StatsThroughSkills]
    ]

@KorGgenT
Copy link
Member

i'll note the mods i had when i tried it were just magiclysm and dda.

@ZhilkinSerg
Copy link
Contributor

ZhilkinSerg commented Oct 26, 2019

#34938?

@ZhilkinSerg
Copy link
Contributor

ZhilkinSerg commented Oct 26, 2019

Or #34735? Yes, this one. It finds many errors in jsons (probably in mods) and writes them to debug.log (which is pretty slow, especially Windows). It took good 5 minutes for me to load game and there was ~10 Megabytes debug.log generated with various issues.

@mft-dev
Copy link
Contributor

mft-dev commented Oct 26, 2019

Maybe related, on 9804 I notice a severe slowdown when going up/down stairs in a lab.

@AbsentlyMultitask
Copy link
Contributor

@ZhilkinSerg is right, I think. It took me an hour to load an old save and it generated a 73.2 MB debug.log on 9804. So I think the issue is compounded by the number of items in a save?

@RDru
Copy link
Contributor

RDru commented Oct 26, 2019

I gave up after 20min. I have 500MB save.

@KoRv117
Copy link

KoRv117 commented Oct 26, 2019

Yup, save size seems to affect loading. Save I just created still made a massive debug log but was able to load in very quickly, whereas my main game creates a HUGE debug log, and still didnt load after 20 minutes

ZhilkinSerg added a commit to ZhilkinSerg/Cataclysm-DDA that referenced this issue Oct 26, 2019
Fixes CleverRaven#35035

But it is just a hotfix and should be properly refactored later.
@Kenan2000
Copy link
Contributor

100% confirm this, even had to delete my old save thinking it got corrupted, luckily i can still use debug menu to relearn all the skills and make monsters evolution again

esotericist pushed a commit that referenced this issue Oct 27, 2019
Fixes #35035

But it is just a hotfix and should be properly refactored later.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code: Performance Performance boosting code (CPU, memory, etc.) (S2 - Confirmed) Bug that's been confirmed to exist
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants