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

Infinite loop due to EXTREME move cost #37138

Closed
UndeadMoose opened this issue Jan 17, 2020 · 11 comments · Fixed by #37155
Closed

Infinite loop due to EXTREME move cost #37138

UndeadMoose opened this issue Jan 17, 2020 · 11 comments · Fixed by #37155
Labels
<Bug> This needs to be fixed (P2 - High) High priority (for ex. important bugfixes) (S2 - Confirmed) Bug that's been confirmed to exist

Comments

@UndeadMoose
Copy link

UndeadMoose commented Jan 17, 2020

Describe the bug

After being mutated at the rat king cave I decided to leave and that's when an extreme move debuf hit me. I will load the world again and it won't happen other times it will. So it is totally random.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Go into rat king cave
  2. Wait an 10 hours (in game time) getting mutated
  3. Try to leave

Expected behavior

My move cost should never be that high (or low it was in the negative range)

Screenshots

Screenshot (630)

Versions and configuration

  • OS: Windows 10
  • Game Version: 0.D-11393-g704f045
  • Graphics version: Tiles
  • Mods loaded:
    "dda",
    "no_npc_food",
    "aftershock",
    "Tolerate_This",
    "growable-pots",
    "makeshift",
    "More_Survival_Tools",
    "hydroponics",
    "mutant_npcs",
    "MMA",
    "deoxymod",
    "blazemod",
    "Heavy miners",
    "Tanks",
    "necromancy",
    "speedydex",
    "sleepdeprivation",
    "amplified_players_features"

Additional context

I debugged in serums to pass the threshold but it shouldn't put me anywhere near that negative value of moves after using them. It didn't crash the game but it did put the game into a permanent loop.
Coketon.zip

@UndeadMoose UndeadMoose changed the title Infinite loop due to EXTREMELY low stamina Infinite loop due to EXTREME move cost Jan 17, 2020
@SirClarke
Copy link

I think I'm getting something like this as well Try changing (Aim window display style Under the Interface option) from Numbers to Bar and reload the game that seems to be what works for me No idea why

@sztosz
Copy link
Contributor

sztosz commented Jan 17, 2020

To add to what @SirClarke wrote. For me changing from Bars to Numbers and then again from Bars to Numbers fixed it.

To add some context. I saved game yesterday with a game compiled from master with tag cdda-jenkins-b10205 and it was I believe this commit: 704f045 Today I checked out current master, commit fbaae72 I made make clean and make -j16 RELEASE=1 TILES=1 SOUND=1 CCACHE=1 LTO=1 ZLEVELS=1 LOCALIZE=0 ASTYLE=1 RUNTESTS=0 And when loading save got a bunch (close to 20K) of errors like this:

09:19:34.870 ERROR : src/options.cpp:588 [T options_manager::cOpt::value_as() const [with T = bool]]  tried to get boolean value from option of type VOID
09:19:34.870 ERROR : src/options.cpp:606 [T options_manager::cOpt::value_as() const [with T = int]]  tried to get integer value from option of type VOID
09:19:34.870 ERROR : src/options.cpp:606 [T options_manager::cOpt::value_as() const [with T = int]]  tried to get integer value from option of type VOID
09:19:34.870 ERROR : src/options.cpp:597 [T options_manager::cOpt::value_as() const [with T = float]]  tried to get float value from option of type VOID
09:19:34.871 ERROR : src/options.cpp:606 [T options_manager::cOpt::value_as() const [with T = int]]  tried to get integer value from option of type VOID
09:19:34.871 ERROR : src/options.cpp:597 [T options_manager::cOpt::value_as() const [with T = float]]  tried to get float value from option of type VOID

Stamina after load was not existing. Wasn't able to wait to catch a break, so I waited 5 min, it did not help. I play with Simplified Nutrition but after the load got vitamin deficiency, scurvy etc. When I moved I got the -MAX_INT move cost like you see on screen from OP, and ingame time started to pass without me being able to interact with the game.

I force quitted game. Started it again and in options changed aim window display from bars to numbers and loaded save again. Thing does not work, save loads with errors. ALT+F4, start game again, changed again from numbers to bars, load save and it now works.

Link to save: https://drive.google.com/file/d/1pOXcCUU2ic_8Ytf38cSoLPhPHfNnXHIq/view?usp=sharing

Game report

- OS: Linux
    - OS Version: LSB Version: 1.4; Distributor ID: Antergos; Description: Antergos Linux; Release: rolling; Codename: n/a; 
- Game Version: 0.D-11421-g5c93d6fa93 [64-bit]
- Graphics Version: Tiles
- Mods loaded: [
    Dark Days Ahead [dda],
    Magiclysm [magiclysm],
    No Rail Stations [No_Rail_Stations],
    No Fungal Monsters [No_Fungi],
    Disable Religious Texts [no_religious_Texts],
    No Flaming Weapons [no_flaming_weapons],
    Disable NPC Needs [no_npc_food],
    Simplified Nutrition [novitamins],
    Graphical Overmap [Graphical_Overmap]
]

@ghost
Copy link

ghost commented Jan 17, 2020

Can confirm, just got this, also options file was corrupted during load.

@ZhilkinSerg
Copy link
Contributor

ZhilkinSerg commented Jan 17, 2020

It has something to do with hidden mod options, which came out as not hidden:

image

To reproduce - open options menu in a world "Escape" menu or open options menu after exiting from the world.

@DatMeg
Copy link

DatMeg commented Jan 17, 2020

Still occurring as of 10211.

I should also add, that loading a pre-'change' save (with Simplified Nutrition) results in Vitamin levels set between -7201 and -5600, on top of the Stamina problems.

@Ker-Nes
Copy link
Contributor

Ker-Nes commented Jan 17, 2020

It's definitely something to do with the options file. Just reverting to a previous version still has it happening. Deleting options.json solved the issue. Going to test if deleting it in new version also solves the issue.

@kevingranade
Copy link
Member

This issue has been mentioned on Cataclysm: Dark Days Ahead. There might be relevant details there:

https://discourse.cataclysmdda.org/t/anyonee-know-what-this-means/22502/2

@Ker-Nes
Copy link
Contributor

Ker-Nes commented Jan 17, 2020

Ok, tested it, even with 10211, just deleting options.json solves the problem at least until the options get corrupted again. Until what's causing this is identified, I recommend keeping a backup of a options.json file that's working fine, so you don't have to set everything back to the way you like whenever this bugs pops up.

@ghost
Copy link

ghost commented Jan 17, 2020

The PR I linked above is likely the cause.

Rolling back to a version before it was merged will fix it for the time being.

@scorpion451
Copy link

Have a workaround:
Closing the program after the error message appears and reloading does not trigger the error.

@kuhnchris
Copy link
Contributor

Confirming, opened 10210+ with old save file, received the "from type VOID" error, walked 2 steps, endless loop, force-closed app, opened again, error is gone.

@ZhilkinSerg ZhilkinSerg added (P2 - High) High priority (for ex. important bugfixes) (S2 - Confirmed) Bug that's been confirmed to exist <Bug> This needs to be fixed labels Jan 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bug> This needs to be fixed (P2 - High) High priority (for ex. important bugfixes) (S2 - Confirmed) Bug that's been confirmed to exist
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants