Phibonacci
Terrarian
- Steam or GOG
- Steam
- Single Player/Multiplayer
- Both
- Operating System
- Windows 8/8.1
- Terraria Version
- 1.4.2.3
- Controls Used
- Keyboard/Mouse
This crash only happens to some people, for unknown reasons. It only happen when the user focuses another window while Terraria launches (seems expectable due to the check to drawToScreen), and outputs no stack trace, because uh well, overflow lol. What exactly happen is:
Then, near the end of this last method, if
I did patch my client (due to how infuriating this crash is), and added a (static) flag to the
Would be nice if it could be patched :0
Oh and it has happened since 1.4.1.x I think, or maybe since 1.4 I have no idea.
Terraria.Main.InitTargets()
calls Terraria.Main.UpdateDisplaySettings()
, which calls Terraria.Main.SetResolution(int, int)
, which in turn calls Terraria.Main.SetDisplayMode(int, int, bool)
.Then, near the end of this last method, if
Terraria.Main.drawToScreen
is false, it calls back to Terraria.Main.InitTargets()
. Recursion ensues, and a stack overflow is thrown soon enough.I did patch my client (due to how infuriating this crash is), and added a (static) flag to the
Terraria.Main.drawToScreen
check, so it is like: if (!Main.drawToScreen && !Main.noRecursionFlag) {Main.noRecursionFlag = true; Main.InitTargets();}
etc, and it never crashed this way ever again.Would be nice if it could be patched :0
Oh and it has happened since 1.4.1.x I think, or maybe since 1.4 I have no idea.
Last edited: