[CS/HL25] Fatal Error After Multiple Resolution Changes
Description
I'm encountering a fatal error in both Counter-Strike 1.6 and Half-Life when I change the in-game resolution multiple times. I'm assuming this affects all GoldSrc engine based games. The issue arises when I try to adjust the resolution settings several times in a single session. After a few changes, the game crashes and displays a fatal error message stating, Unable to allocate 128.00 MB. This issue is persistent and reproducible.
Game Version
Game: Counter-Strike 1.6
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
Exe build: 01:03:30 Dec 1 2023 (9899)
Game: Half-Life
Protocol version 48
Exe version 1.1.2.2/Stdio (valve)
Exe build: 01:03:30 Dec 1 2023 (9899)
Screenshots
I've just encountered this issue again in Half-Life build 19:06:31 Oct 7 2024 (10210), all I did was run the _restart command while in a local server. Unfortunately, it is difficult to reproduce.
Note: I had more than 8GB of unused memory.
See if you can reproduce the error with 512mb heapsize (-heapsize 524288), I think the old limit was 128mb(now default).