View Full Version: BAH! Heap Allocation Error

The Carnivores Saga > Carnivores 2 > BAH! Heap Allocation Error


Title: BAH! Heap Allocation Error
Description: NEW: there's an easy solution!


BCampbell8325 - March 5, 2005 12:07 AM (GMT)
BAH!!! Everytime I click Hunt, I get a Heap Allocation Error. How is this fixable?

machf - March 5, 2005 05:11 AM (GMT)
Try the full patch 1.1, you can find it at Action Forms' site among others...

BCampbell8325 - March 5, 2005 12:28 PM (GMT)
Already have it installed. same with Windows XP patch I found on this site...

machf - March 5, 2005 04:27 PM (GMT)
Hmmm... I don't remember what else could be done, then...
Once someone suggested using parts of the Ice Age 2.12a patch, maybe that did it.
The files from that patch that you could use on Carnivores 2 were:
  • eax.dll
  • a3dapi.dll
  • A_soft.dll
  • A_ds3d.dll
  • A_eax.dll
  • A_a3d.dll


BCampbell8325 - March 5, 2005 04:30 PM (GMT)
Thanks machf I'll try it...

BCampbell8325 - March 5, 2005 04:38 PM (GMT)
Nope no success...Same old Heap Allocation Error...If there is nothing else I can do, I will have to partition my HD and install Windows 98 as a second operating system and then use 98 just for the Carnivores games.

machf - March 5, 2005 05:29 PM (GMT)
Hmmm... did you try running it in Windows 98 compatibility mode, just in case?

BCampbell8325 - March 5, 2005 05:42 PM (GMT)
Yes it didn't work though..

Dinoguy1000 - March 5, 2005 08:36 PM (GMT)
Could you list your computer specs? Not that it would necessarily help, but you never know...

BCampbell8325 - March 5, 2005 11:11 PM (GMT)
Dell Dimension 2350
Windows XP Home SP2
1.80 GHz Pentium 4 Processor
256 MB Memory
80GB Hard Drive
CD Drive
CDRW Drive
McAfee Internet Security

machf - March 5, 2005 11:46 PM (GMT)
I guess it works with XP Pro but now with XP Home, then...

Well, anyway, if you have the knowledge to do so, partition your drive and install 98SE, I think it's still the best option for most games...

Guest - April 4, 2005 11:29 PM (GMT)
I have XP Home and carnivores 2 works just fine

machf - April 5, 2005 03:23 AM (GMT)
It does? Hmmm... this becomes weirder every day.

Dinoguy1000 - April 5, 2005 02:52 PM (GMT)
This is suddenly so much more complex than a few bad lines of code, I think... we may end up having to completely rewrite the game engine and executables to fix the problem, and with the skill available to us, that doesn't sound like it'll happen anytime too soon...

machf - September 4, 2005 01:59 PM (GMT)
I tried running the patched C2 on Windows 2000 Pro + SP4, and also, when choosing "hunt", it gives a "heap allocation error" when the loading progress bar reaches the end.

QUOTE (render.log)
CarnivoresII  D3D video driver. Build v2.07. Mar.12 2000.
Creating main window...Ok.

==Init Direct Draw==
DirectDrawCreate: Ok
Trophy Loaded.
Init Engine: Ok.

Creative EAX 1.0/2.0 audio driver (beta 4) 1.2
No Device Enumerating implemented..
lpDS created..
EAX 2.0 is not detected, attempt to detect EAX 1.0
EAX error: EAXQuerySupport DSERR_UNSUPPORTED: 80004001h
EAX 1.0 is not detected. Running in muted mode. Please choose another sound output device
DSCAPS:
dwFreeHw3DAllBuffers 30
dwFreeHw3DStaticBuffers 30
dwFreeHw3DStreamingBuffers 30
dwFreeHwMemBytes 0
dwTotalHwMemBytes 0
dwFreeHwMixingAllBuffers 30
dwFreeHwMixingStaticBuffers 30
dwFreeHwMixingStreamingBuffers 30
dwMaxContigFreeHwMemBytes 0
dwMinSecondarySampleRate 1000
dwMaxSecondarySampleRate 49000
dwMaxHw3DAllBuffers 32
dwMaxHw3DStaticBuffers 32
dwMaxHw3DStreamingBuffers 32
dwMaxHwMixingAllBuffers 32
dwMaxHwMixingStaticBuffers 32
dwMaxHwMixingStreamingBuffers 32
CreatePrimaryBuffer Ok
Primary SetFormat() Ok
Create audio thread #1..ok
InitAudioSystem ok

== Loading resources ==
Loading common resources: Done.
Loading textures: Done.
Loading models: Done.
Finishing with .res: Done.
Loading .map: Done.
Loading area: Done.
Entering messages loop.
Entered game
ReInitGame();
Placing...
Loading: HUNTDAT\hunter1.car
  AudioStop()
ABNORMAL_HALT: Heap allocation error!
Releasing lpPropertySet
Releasing lpDummy
Releasing Listener3D
Releasing PrimaryBuffer
Releasing DirectSoundObject
Terminate thread 1
AudioShutdown()


QUOTE (carnivor.log)
Creating main window...Ok.

==Init Direct Sound==
Software mixer version 1.2
Back Sound Buffer created.
DirectSoundCreate: Ok
Attempting to set EXCLUSIVE CooperativeLevel:
Set Cooperative  : Ok
CreateSoundBuffer: Ok (Primary)
SetFormat        : Ok
CreateSoundBuffer: Ok (Secondary)
Play            : Ok
Direct Sound activated.

==Init Direct Draw==
Controlador de pantalla primaria/display
DirectDrawCreate: Ok
SetCooperativeLevel: Ok
Direct Draw activated.

== Loading resources ==
Loading resources: Done.
Entering messages loop.
  Entered menu
Audio restored.
Trophy Loaded.
Trophy Saved.
Trophy Saved.
Trophy Loaded.

==Init Direct Sound==
Software mixer version 1.2
Back Sound Buffer created.
DirectSoundCreate: Ok
Attempting to set EXCLUSIVE CooperativeLevel:
Set Cooperative  : Ok
CreateSoundBuffer: Ok (Primary)
SetFormat        : Ok
CreateSoundBuffer: Ok (Secondary)
Play            : Ok
Direct Sound activated.
Game normal shutdown.



Curiously, it doesn't happen when I enter the trophy room instead...

QUOTE (render.log)
CarnivoresII  D3D video driver. Build v2.07. Mar.12 2000.
Creating main window...Ok.

==Init Direct Draw==
DirectDrawCreate: Ok
Trophy Loaded.
Init Engine: Ok.

Creative EAX 1.0/2.0 audio driver (beta 4) 1.2
No Device Enumerating implemented..
lpDS created..
EAX 2.0 is not detected, attempt to detect EAX 1.0
EAX error: EAXQuerySupport DSERR_UNSUPPORTED: 80004001h
EAX 1.0 is not detected. Running in muted mode. Please choose another sound output device
DSCAPS:
dwFreeHw3DAllBuffers 30
dwFreeHw3DStaticBuffers 30
dwFreeHw3DStreamingBuffers 30
dwFreeHwMemBytes 0
dwTotalHwMemBytes 0
dwFreeHwMixingAllBuffers 30
dwFreeHwMixingStaticBuffers 30
dwFreeHwMixingStreamingBuffers 30
dwMaxContigFreeHwMemBytes 0
dwMinSecondarySampleRate 1000
dwMaxSecondarySampleRate 49000
dwMaxHw3DAllBuffers 32
dwMaxHw3DStaticBuffers 32
dwMaxHw3DStreamingBuffers 32
dwMaxHwMixingAllBuffers 32
dwMaxHwMixingStaticBuffers 32
dwMaxHwMixingStreamingBuffers 32
CreatePrimaryBuffer Ok
Primary SetFormat() Ok
Create audio thread #1..ok
InitAudioSystem ok

== Loading resources ==
Loading common resources: Done.
Loading textures: Done.
Loading models: Done.
Finishing with .res: Done.
Loading .map: Done.
Loading area: Done.
Entering messages loop.
Entered game
ReInitGame();
Loading: HUNTDAT\hunter1.car
Loading: HUNTDAT\stego.car
Loading: HUNTDAT\chasmosa.car
Loading: HUNTDAT\cerato1.car
Loading: HUNTDAT\tricer.car
Loading: HUNTDAT\WEAPONS\pistol.car
Loading: HUNTDAT\WEAPONS\bullet1.tga

=== Init Direct3D ===
Set Display mode 1024x768, 16bpp
QueryInterface: Ok. (IID_IDirect3D)
CreateSurface: Ok. (Primary)
EnumDevices: Ok.
CreateSurface: Ok. (BackBuffer)
CreateSurface: Ok. (Z-buffer)
QueryInterface: Ok. (lpd3dDevice)
CreateViewport: Ok.
CreateExecuteBuffer: Ok.
CreateExecuteBuffer: Ok.
DETECTED: Texture memory : 16384K.
DETECTED: Texture transfer speed: 1280000K/sec.
DETECTED: PixelFormat RGB565
TEST COLOR KEY: [OPACITY: Ok.] [TRANSPARENT: Ok.] [ENV.BLEND : Ok.]
TEST ALPHA KEY: [OPACITY: Ok.] [TRANSPARENT: Ok.] [ENV.BLEND : Ok.]
ALPHA KEY mode selected.
=== Direct3D started ===

SetEnv 0 Trophy Saved.
Trophy Saved.
  AudioStop()
Releasing lpPropertySet
Releasing lpDummy
Releasing Listener3D
Releasing PrimaryBuffer
Releasing DirectSoundObject
Terminate thread 1
AudioShutdown()
Game normal shutdown.


QUOTE (carnivor.log)
Creating main window...Ok.

==Init Direct Sound==
Software mixer version 1.2
Back Sound Buffer created.
DirectSoundCreate: Ok
Attempting to set EXCLUSIVE CooperativeLevel:
Set Cooperative  : Ok
CreateSoundBuffer: Ok (Primary)
SetFormat        : Ok
CreateSoundBuffer: Ok (Secondary)
Play            : Ok
Direct Sound activated.

==Init Direct Draw==
Controlador de pantalla primaria/display
DirectDrawCreate: Ok
SetCooperativeLevel: Ok
Direct Draw activated.

== Loading resources ==
Loading resources: Done.
Entering messages loop.
  Entered menu
Audio restored.
Audio restored.
Trophy Loaded.
Trophy Saved.
Trophy Loaded.

==Init Direct Sound==
Software mixer version 1.2
Back Sound Buffer created.
DirectSoundCreate: Ok
Attempting to set EXCLUSIVE CooperativeLevel:
Set Cooperative  : Ok
CreateSoundBuffer: Ok (Primary)
SetFormat        : Ok
CreateSoundBuffer: Ok (Secondary)
Play            : Ok
Direct Sound activated.
Game normal shutdown.


Attempting to run it in Windows 98 Compatibility mode (yes, it's possible under Windows 2000 too) it gives "Error opening resource file .rsc." instead, whether trying to go hunt or entering the trophy room.

QUOTE (render.log)
CarnivoresII  D3D video driver. Build v2.07. Mar.12 2000.
Creating main window...Ok.

==Init Direct Draw==
DirectDrawCreate: Ok
Trophy Loaded.
Init Engine: Ok.

Creative EAX 1.0/2.0 audio driver (beta 4) 1.2
No Device Enumerating implemented..
lpDS created..
EAX 2.0 is not detected, attempt to detect EAX 1.0
EAX error: EAXQuerySupport DSERR_UNSUPPORTED: 80004001h
EAX 1.0 is not detected. Running in muted mode. Please choose another sound output device
DSCAPS:
dwFreeHw3DAllBuffers 30
dwFreeHw3DStaticBuffers 30
dwFreeHw3DStreamingBuffers 30
dwFreeHwMemBytes 0
dwTotalHwMemBytes 0
dwFreeHwMixingAllBuffers 30
dwFreeHwMixingStaticBuffers 30
dwFreeHwMixingStreamingBuffers 30
dwMaxContigFreeHwMemBytes 0
dwMinSecondarySampleRate 1000
dwMaxSecondarySampleRate 49000
dwMaxHw3DAllBuffers 32
dwMaxHw3DStaticBuffers 32
dwMaxHw3DStreamingBuffers 32
dwMaxHwMixingAllBuffers 32
dwMaxHwMixingStaticBuffers 32
dwMaxHwMixingStreamingBuffers 32
CreatePrimaryBuffer Ok
Primary SetFormat() Ok
Create audio thread #1..ok
InitAudioSystem ok

== Loading resources ==
Loading common resources: Done.
  AudioStop()
ABNORMAL_HALT: Error opening resource file
.rsc.
Releasing lpPropertySet
Releasing lpDummy
Releasing Listener3D
Releasing PrimaryBuffer
Releasing DirectSoundObject
Terminate thread 1
AudioShutdown()


QUOTE (carnivor.log)
Creating main window...Ok.

==Init Direct Sound==
Software mixer version 1.2
Back Sound Buffer created.
DirectSoundCreate: Ok
Attempting to set EXCLUSIVE CooperativeLevel:
Set Cooperative  : Ok
CreateSoundBuffer: Ok (Primary)
SetFormat        : Ok
CreateSoundBuffer: Ok (Secondary)
Play            : Ok
Direct Sound activated.

==Init Direct Draw==
Controlador de pantalla primaria/display
DirectDrawCreate: Ok
SetCooperativeLevel: Ok
Direct Draw activated.

== Loading resources ==
Loading resources: Done.
Entering messages loop.
  Entered menu
Audio restored.
Trophy Loaded.
Trophy Saved.
Trophy Loaded.

==Init Direct Sound==
Software mixer version 1.2
Back Sound Buffer created.
DirectSoundCreate: Ok
Attempting to set EXCLUSIVE CooperativeLevel:
Set Cooperative  : Ok
CreateSoundBuffer: Ok (Primary)
SetFormat        : Ok
CreateSoundBuffer: Ok (Secondary)
Play            : Ok
Direct Sound activated.
Game normal shutdown.


Using Windows 95 Compatibility Mode has the exact same effects. Windows NT 4 Compatibility Mode behaves the same as running the game in Windows 2000 without any Compatibility Mode.

Switching the video and/or audio drivers in-game makes no difference; neither does using a different executable (I've tried the Ice Age .exe file, the original demo .exe and the time-limited demo .exe). It seems it's the .ren files, then...

Randix - September 28, 2005 03:23 AM (GMT)
Hi Guys ,


Oh my god ................. i have Win 2K , SP4 .


1 gig ram
Geforce 6200 video card
Audigy 2 sound card
3.0 cpu


I was thrilled to start Carnivores 2 then even more happy to see the start menu .

Except when i wanted to start the game ........ Yeah of course fricken thing won't start .

I also have the " Heap Allocation Error " ....... i ve tried everything

every **** patch outthere .

Including the Ice age 2 patch partial files ... nothing works .....

PLEASE will someone let us know when some sort of sollution surfaces..........

paquetsky@excite.com or paquetsky@hotmail.com

machf - September 28, 2005 05:59 AM (GMT)
Welcome to the forums!
Yes, unfortunately, running the game under Win2K is even more troublesome than under WinXP... over there on their forums, the people from Action Forms have said they'll try to solve the problems after they've released Vivisector. Let's hope...


Dinoguy1000 - September 29, 2005 02:20 PM (GMT)
...and pray. And welcome to the forums, as Machf said!

Before I forget, have you tried Alacn's patch? I'll try to find the link for you...

machf - October 10, 2005 01:47 AM (GMT)
I'm wondering... given that the heap allocation error is happening while loading some models when starting a hunt, maybe the fault is with some particular 'filler' model (remember, those aren't loaded in the Trophy Room - I mean, Moshops, Gallimimus, Dimetrodon, Dimorphodon, Pteranodon, Brachiosaurus).
I'll try removing those in the _res.txt file and see what happens...

machf - October 10, 2005 01:51 AM (GMT)
Success! No more heap allocation error after removing all the 'filler' animals from the _res.txt file. Now I'll re-add them one by one to see which particular one it is...

machf - October 10, 2005 02:02 AM (GMT)
Guys, it's the Brachiosaurus. Everything was going fine until I added it back.
I guess a deep analysis of the file might indicate what's wrong with it... (maybe it has some relation with the lack of a death animation? hmmm...).

So, if you don't mind not seeing any Brachs anymore on the levels, you can remove that section from your _res.txt file in order o be able to play the game under Windows 2000 (and I guess, WIndows XP too).

Dinoguy1000 - October 10, 2005 08:01 PM (GMT)
Ni hablar! Who would have thought Brachi could have been the cause of the trouble? We'd better point this out to the AF crew, and see what they think...

EDIT: Aah, it would seem you beat me to the trigger... ;)

I am amazed - October 11, 2005 11:59 PM (GMT)
Hi guys ,


I havent tried modifying the txt file yet , but i must say , im impressed , i actually got a reply from your Carni Saga team ! BRAVO !

Thanks for the welcome aswell , makes one feel at home even if one is a newcomer !

Well , i am pretty tied up at the moment , but i shall take some time to edit the file and test this bugger when i do get a minute .

Ill be in touch !

Randix





a little more precision on my st - October 12, 2005 12:04 AM (GMT)
Hi again ,

Just wanted to make sure , that you guys understood that my previous statement was a compliment . Reading it again myself , it sounds a little arrogant . But honestly i meant it as a compliment , since many people dont even bother to send someone a reply email for a bug correction post , and to my delight i did receive one this time around . I ve been many places and havent received many replies for multiple game errors i have with the old games i play with my new computer .

Randix

machf - October 12, 2005 01:02 AM (GMT)
Well, since you mentioned you had the same problem and left an address, it wasn't any trouble really. I just wish it was possible to contact the people from the old Gametalk forum... anyway, I left a post describing the solution there too, just in case they still check it from time to time.

Tomozaurus - October 23, 2005 01:31 AM (GMT)
Well, here is a problem for ya, I have carnivores 1 and I get that **** heap allocation error every time I try to hunt in the Great Lake area. It obviously cant be a brachiosaurus seeing as they arn't in the game.

Dinoguy1000 - October 23, 2005 05:49 PM (GMT)
Is it ONLY in the Great Lake area? If that's the case, then quite possibly that level would have something to do with the hidden brachi, if you want to believe it. In any case, it's very odd...

Tomozaurus - October 25, 2005 10:06 AM (GMT)
Something in that level must hold a similar problem to the brachiosaurus.

machf - November 4, 2005 03:21 PM (GMT)
Well, for the original Carnivores, I suggest (very strongly, in fact) you get a Glide Wrapper like dgVoodoo and the latest 3dfx executable (available from Action Forms' website) and use it instead of the Direct3D executable. You'll be limited to 800x600, but things will look much better and it seems to be way less buggy than the D3D one. Be sure you run it in Windows 98 compatibility mode.

starbright49@verizon.net - July 21, 2006 04:40 PM (GMT)
QUOTE (BCampbell8325 @ Mar 5 2005, 07:28 AM)
Already have it installed. same with Windows XP patch I found on this site...

i get the heap allocation erro also, i have windows xp, can any one tell, me how to get ice age to play on this. Thanks a lot.

Uhh... - July 21, 2006 10:09 PM (GMT)
after all this time i just had to change it to WIN98 to play the great lake....
life sucks
but i got to play it!

machf - July 22, 2006 04:09 AM (GMT)
QUOTE (starbright49@verizon.net @ Jul 21 2006, 11:40 AM)
QUOTE (BCampbell8325 @ Mar 5 2005, 07:28 AM)
Already have it installed. same with Windows XP patch I found on this site...

i get the heap allocation erro also, i have windows xp, can any one tell, me how to get ice age to play on this. Thanks a lot.

Have you already tried with ALCN's patches? Take a look at the "Official (and Unofficial) Patches" section.

Regarding the original Carnivores... well, if it's any consolation, it CTDs whenever I start a hunt (regardless of area), or enter the Trophy Room, running it under WIndows 2000 with the Direct3D executable. I have to use the 3dfx one in Windows 98 compatibility mode instead...
I repeat, i suggest you get a glide wrapper and run the 3dfx executable.

machf - July 29, 2006 04:11 AM (GMT)
So... here's another alternative. Turns out that now Microsoft Virtual PC 2004 is available for free. Download it here. It will allow you to have Windows 98 running inside Windows 2000 or XP... they say later Virtual PC 2007 will also be released for free, allowing Windows Vista to run older OSs too.

Uhh... - July 29, 2006 08:50 PM (GMT)
Thanks...




* Hosted for free by zIFBoards