New Doom Forums  
Z_Malloc allocation failure? - New Doom Forums
Go Back   New Doom Forums > Source Ports > Doomsday

Reply
 
Thread Tools Display Modes
Old December 11th, 2000, 09:08 PM   #1
Ken
Guest
 
Posts: n/a
Question Z_Malloc allocation failure?

I just downloaded JDoom after reading the blurb in the January PC Gamer; I must say, it is an excellent program! I got it running, D3D and all, with my old copy of Doom II. It looks great, and plays very well and very fast (even with my Voodoo3 AGP that some people on here have commented is troublesome). However, I do have one large problem: After the game runs for a short time, it crashes back to the Windows desktop, citing the arror "Z_Malloc: Allocation failure for 131,096 bytes".

I tried to peruse the FAQs here for an answer to this problem before posting to the forum, but I didn't find any references to this particular error. Anybody know anything about it who could enlighten me?

Thanks!

--Ken
  Reply With Quote
Old December 11th, 2000, 10:11 PM   #2
cj
Guest
 
Posts: n/a
Post

It is necessary to set the -maxzone parameter which is similar to -heapsize in Quake. Here is a comment from the author of Jdoom on this point:

-maxzone accepts K and M as postfixes. For instance, "-maxzone 16m"
allocates 16 megs, and "-maxzone 9500k" would allocate 9.5 megs for the
memory zone.

I think that the recommended value is 16 megs so either "-maxzone 16m" or "-maxzone 16000k". So far as I understand, this is only necessary when using the md2 models which I guess you are doing at the moment.

Hope this helps.

Cheers, Kempie.
  Reply With Quote
Old December 12th, 2000, 02:01 AM   #3
Stimpee
Guest
 
Posts: n/a
Post

cj is right.

If you put as your command line/batch file:

doomsday -game jdoom.dll -maxzone 16m -doom2

this will allocate 16mb memory and load doom2.


------------------
Stimpee @ http://www.newdoom.com/stimpee
  Reply With Quote
Old December 12th, 2000, 01:21 PM   #4
Ken
Guest
 
Posts: n/a
Thumbs up

Thanks, cj and Stimpee, for your replies. You were absoultey correct, and now JDoom runs beautifully, no crashes. I'm on level 4 -- it's been a long time since I've played through Doom 2, and it's a welcome return. What a great game. It's so much faster than I remember it being before -- of course, that's probably because my computer sucked back then.
  Reply With Quote
Old December 19th, 2000, 02:24 AM   #5
Stimpee
Guest
 
Posts: n/a
Talking

glad I could help!


------------------
Stimpee @ http://www.newdoom.com/stimpee
  Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mouse button failure Sheer-Cold Doomsday 7 April 17th, 2006 05:15 AM
Wierd but probably insignificat bug with mem allocation. Ebola Doom Legacy 8 May 26th, 2005 04:46 PM
Z_Malloc: Failed on allocation of 344088 bytes. Dunkler Doomsday 4 March 11th, 2005 10:55 AM
Z_Malloc: Failed on allocation of 254505 bytes. HARNO Doomsday 4 February 28th, 2005 03:26 AM
failure on jDoom 1.01 to use 3rd party wads ericjmz Doomsday 1 August 20th, 2001 04:39 PM


All times are GMT -7. The time now is 03:26 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
NewDoom.com © 2000-2009 Mindless Games & Entertainment. All Rights Reserved.