Page 1 of 1

[1.1.32] Crash after being minimized for a while (RenderParameters::zoomIn)

Posted: Sat Apr 17, 2021 4:39 pm
by sanlor
I was playing the game, saved and left minimized for about 6 hours.
Wen I came back, i was able to walk a few steps and then it crashed.

I have no mods nor anything.

Re: [1.1.32] Crash after being minimized for a while (RenderParameters::zoomIn)

Posted: Thu Jun 17, 2021 7:15 am
by posila
Thanks for the report.
The crash is impossible, so I suspect CPU erred when executing instructions, or the instructions got corrupted in-memory (as executable CRC is correct)

As to why it is impossible:

Code: Select all

  switch (itemLevel)
  {
    case ItemLevel::Always: return true;
    case ItemLevel::Debug: return debugLevel == DebugLevel::Debug;
    case ItemLevel::Never: return debugLevel == DebugLevel::Never;
  }

  LOG_ENUM_AND_ABORT(itemLevel.asEnum());
This is the code, that crashed ... it got to the LOG_ENUM_AND_ABORT line (which is not supposed to ever happen), and logged

Code: Select all

19972.435 Error DebugSettings.cpp:179: Unknown enum value: 2
But value 2 is ItemLevel::Never, so it should have returned from the function at the line

Code: Select all

    case ItemLevel::Never: return debugLevel == DebugLevel::Never;