Page 1 of 1

[1.8.02/1.9-393] Failed to allocate -1 bytes

Posted: Tue Dec 10, 2013 1:54
by anubis2591
I get the following error on both the 1.8.02 and gzdoom-G1.9pre-393-gfd76723 release from the devbuilds site. This also happens in the latest stable ZDoom release.

Code: Select all

OS: Windows 7 (NT 6.1) Build 7601
    Service Pack 1
M_LoadDefaults: Load system defaults.
Using program directory for storage
Gameinfo scan took 0 ms

Execution could not continue.

Failed to allocate -1 bytes from process heap
I'm on 64bit Windows 7 with AMD A10-4600M processor with 6Gb of RAM and AMD Radeon HD 7660G + 7600M Dual Graphics.

I tried manually allocating the amount of memory GZDoom uses with the -mb flag with no effect. I tried searching both zdoom and gzdoom forums for this error but it's always a number much larger than -1 and it's when people are trying to load large maps. This is the first time I've run GZDoom or ZDoom on this computer in Windows. They load fine under my Arch Linux installation on the same computer.

Re: [1.8.02/1.9-393] Failed to allocate -1 bytes

Posted: Tue Dec 10, 2013 10:39
by Graf Zahl
That error is close to meaningless, unfortunately. It merely means that *some* allocation failed because it was passed a block size of -1.
It doesn't tell anything about *which* allocation failed, only that it's very early in the game, during WAD initialization. And if it happens on ZDoom, too, please repost the report there.

THe -mb switch does not exist in ZDoom which allocates directly from the system heap. The original zone heap doesn't even exist anymore.