Cacodemon
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > "Z_Free" Problem
 
Author
All times are GMT. The time now is 20:01. Post New Thread    Post A Reply
franckFRAG
Junior Member


Posts: 227
Registered: 06-10



Z_Free: freed a pointer without ZONEID

Z_Free -error message


These errors display on doom2.exe (not on Chocolate Doom), after an import of textures apparently. How to avoid this problem, or how to repair this error? I found this theard : http://www.doomworld.com/vb/doom-ed...without-zoneid/
But that does not really help me. :/

Old Post 01-17-13 17:44 #
franckFRAG is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
wesleyjohnson
Forum Regular


Posts: 939
Registered: 04-09


That is an internal error of the Zone memory management system.
It is not supposed to happen. I spent considerable time rewriting
that Zone memory system in DoomLegacy to stop those errors.
They are caused by nearby uses of memory, having writes outside their
allocated space, that hit the memory allocation header.
Also could be caused by releasing a memory allocation twice, but
that is rarer because the code is more careful of that.

These are faults within the code.

It would take considerable effort to even track down what
is triggering the memory overwrite.

Some possibilities:
1. corrupt wad structures
2. not running a node builder
3. compressed patches created by some editors. But this only affected
code that tried to convert multi-patch textures to one-patch.
In DoomLegacy this caused the memory required to be underestimated.
4. overrun of span data structures, clobbering adjacent tables
5. the same texture used in the status bar, and in the level.
The texture gets released from the cache, and the status bar is still using it.
6. Allowing an editor to use a ZDoom-ism in a wad meant for vanilla doom. Other special linedefs of other ports could have the same
effect.
7. many more that I cannot remember.

Use the -mb switch to pre-allocate a huge Zone memory. This will move the adjacent memory allocations and may reduce that
memory clobbering.

Ports that have abandoned or replaced the Zone memory system
wont't have the errors.
Submit your wads to another port that gives better error messages.
DoomLegacy has a verbose command line option.
It may be possible, you will find nothing wrong with your wads.
Rewritten ports are more tolerant of some unusual wad structures than vanilla doom was.

Last edited by wesleyjohnson on 01-17-13 at 22:46

Old Post 01-17-13 22:31 #
wesleyjohnson is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Quasar
Moderator


Posts: 5763
Registered: 08-00


It's not a fault of the zone system itself. It means some other part of the program malfunctioned earlier and corrupted the heap. Ports that don't use zone memory, but have the same kinds of problems, will issue an operating-system-level error message instead (typically "This program has performed an illegal operation and must shut down.")

If it has to do with textures, maybe check and make sure that you don't have any resources in an incorrect format (ie. embedded as PNG or linear instead of DOOM's patch format).

Old Post 01-18-13 00:32 #
Quasar is online now Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 20:01. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > "Z_Free" Problem

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Message Board Statistics