halflife icon indicating copy to clipboard operation
halflife copied to clipboard

[CS/HL25] Fatal Error After Multiple Resolution Changes

Open 0Ky opened this issue 2 years ago • 2 comments

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

image image

0Ky avatar Dec 04 '23 01:12 0Ky

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.

0Ky avatar Oct 11 '25 17:10 0Ky

See if you can reproduce the error with 512mb heapsize (-heapsize 524288), I think the old limit was 128mb(now default).

ZOVBOT avatar Oct 12 '25 01:10 ZOVBOT