cseelhoff / RimThreaded

RimThreaded is a RimWorld mod designed to enable RimWorld to utilize multiple threads.
MIT License
117 stars 21 forks source link

Throught handler bug because of too many objects affecting at once (index array out of bounds) #567

Closed pO0P3R125 closed 3 years ago

pO0P3R125 commented 3 years ago

IMPORTANT: Please first search existing bugs to ensure you are not creating a duplicate bug report!

Describe the bug Game starts to log exceptions if there is too many objects affecting the throught array of a pawn (can lead to crash and game destabilization)

Affecting: Call of Cthulhu - Cosmic Horrors and possibly Vanilla Social Interactions

Steps to reproduce the behavior (VERY IMPORTANT)

  1. Start new world (or load "Testing" save)
  2. Trap pawns on a box with god mode
  3. Spawn ton of Deep Ones and Great Deep Ones and let the game run
  4. See error (or load the save with it already triggered)

Error Log Player.log https://gist.github.com/bb354b9760a9626153551e419db2c0eb

Save file Saves.zip

Screenshots

RimWorldWin64_mTM7eOOMmi RimWorldWin64_gyD9JppvrC

Mod list (Preferably a RimPy compatible list.)

pO0P3R125 commented 3 years ago

This a very extreme case where the game gets unstable due to the sheer spam of this exception:

Startup

RimWorldWin64_2JhyIXsKad

Pawns Affected

RimWorldWin64_rer4tsaryG

Letting game run for some ticks

RimWorldWin64_lTe9RHnwNc

Trying to see a pawn's mood

RimWorldWin64_wj2R4FEFWH
pO0P3R125 commented 3 years ago

tried on vanilla without RT the error logs but its yellow, seems similar to missing faction leader bug

RimWorldWin64_uZrylt6Nv4
pastorismylord commented 3 years ago

should be fixed now