Error Code C0000005

Need help running various source ports? Did your computer break? Ask here.

Moderators: GZDoom Developers, LZDoom Developers, UZDoom Developers

Forum rules
Please be as descriptive as possible in your posts (list your hardware and operating system, the version of the source port you are using, any mods you are running and how they're being loaded, etc.)
This will help others to give you a solution!
Noknowledgesmodder
Posts: 3
Joined: Wed Jun 24, 2026 9:00 pm

Error Code C0000005

Post by Noknowledgesmodder »

I am developing my own mod. Whenever I run it, it displays the fatal error. This is the only mod of mine that does this. I don't believe I coded something, however this is my first time coding a PK3. I also don't have finished sprites as well. I am running Windows 11 and running a Nvidia GeForce RTX 3060, Intel i-7-147004, and my RAM doesn't seem to be the issue. My GZDOOM version is G4.15pre-569-gdadfade12. I'll attach the crash report but the PK3 is too big to attach at 480 KB
You do not have the required permissions to view the files attached to this post.
User avatar
MartinHowe
Posts: 2111
Joined: Mon Aug 11, 2003 1:50 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Linux Mint
Graphics Processor: nVidia with Vulkan support
Location: East Suffolk (UK)

Re: Error Code C0000005

Post by MartinHowe »

That's Intel speak for a buffer overrun or something like that. Something about the mod is causing the engine to access the computer's memory badly in a way the zscript or decorate parser cannot detect or maybe loading a bad WAD. I found the other day that passing a literal "" to -file causes the runtime to abort, at least on Linux. Although the devs can put in safety checks on load, a mod still has to do its part.

Why not upload the PK3 to a dropbox so the community can have a look at it?
Noknowledgesmodder
Posts: 3
Joined: Wed Jun 24, 2026 9:00 pm

Re: Error Code C0000005

Post by Noknowledgesmodder »

User avatar
MartinHowe
Posts: 2111
Joined: Mon Aug 11, 2003 1:50 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Linux Mint
Graphics Processor: nVidia with Vulkan support
Location: East Suffolk (UK)

Re: Error Code C0000005

Post by MartinHowe »

I started the latest UZDoom with it and it found two issues:

Code: Select all

Texman.Init: Init texture manager.
IInvalid data encountered for texture crimerunners.pk3:sprites/weapons/lcp/longp
ParseTeamInfo: Load team definitions.
LoadActors: Load actor definitions.
GScript error, "crimerunners.pk3:scripts/spwnr"G line 121:
GUnexpected end of file
Expecting ';' or ','


Execution could not continue.
1 errors while parsing crimerunners.pk3:zscript
The actor in question is:

Code: Select all

Class AmmoboxSpawner : RandomSpawner
{
	Default
	{
	DropItem "
	}
}
Since you're on an old GZDoom with, presumably, inferior error handling, the script parser probably tries to read past EOF and ${DEMON} alone knows where it ended up.

The invalid data for the "texture" longp is because LONGP is actually a ZScript file and not a sprite; it defines the Contender class. This class isn't referenced by anything; maybe a stray file left from early development? In any case it shouldn't be in the Sprites folder, as only images should go in there.

UZDoom also reported another couple of issues:

Code: Select all

Undefined drop item class BOLTGUN referenced from actor HeavySpawner
Undefined drop item class AKMag referenced from actor ClipSpawner
Looking through the code, I think the second one should be "AKAmmo", as it calls itself AKMag in the pickup text.
I also think the BOLTGUN should be SniperGun given the filename for the sniper gun.

So please fix the AmmoboxSpawner as that is likely the cause of the trouble.

The game also warns that the classes 'easy' 'Medium' 'Hard' don't exist. This is because the MAPINFO specifies them, but only 'new' is included via the ZScript file. These three are all copies of Easy so was this an early development thing that got overlooked?

Perhaps the best advice I can give for tracking down issues is make the filename of every class file the exact name, case included, of the main class it defines; we're not on DOS now, there's no filename length limit like the bad old days. Do this consistently. It avoids misremembering the filename for a class or, worse still, the class stored in a file.

Finally, please consider to upgrading to a better GZDoom. Or just switch to UZDoom like everyone and their cat has :mrgreen:
User avatar
Kappes Buur
 
 
Posts: 4241
Joined: Thu Jul 17, 2003 12:19 am
Graphics Processor: nVidia (Legacy GZDoom)
Location: British Columbia, Canada

Re: Error Code C0000005

Post by Kappes Buur »

An excellent analysis by Martin Howe.
Noknowledgesmodder wrote: Mon Jul 06, 2026 8:21 pm My GZDOOM version is G4.15pre-569-gdadfade12.
The gzdoom-x64-g4.15pre builds are just experimental and taken with a grain of salt.
I would recommend GZDoom 4.14.2 or better still UZDoom 4.14.3

As to ZSCRIPT, it can be rather tricky, there is so much to learn
Luckily there are many guides to help out
https://zdoom.org/w/index.php?title=Cat ... ipt_guides
https://zdoom-docs.github.io/staging/ZScript.html
viewtopic.php?t=68297
https://doom.teamouse.net/zstutorial/
and others
Last edited by Kappes Buur on Fri Jul 10, 2026 3:38 am, edited 1 time in total.
Noknowledgesmodder
Posts: 3
Joined: Wed Jun 24, 2026 9:00 pm

Re: Error Code C0000005

Post by Noknowledgesmodder »

Thank you very much
User avatar
Enjay
 
 
Posts: 27641
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland

Re: Error Code C0000005

Post by Enjay »

Looks like the wrong ZScript sneaked in there. That's for Maxon ZBrush.
User avatar
Kappes Buur
 
 
Posts: 4241
Joined: Thu Jul 17, 2003 12:19 am
Graphics Processor: nVidia (Legacy GZDoom)
Location: British Columbia, Canada

Re: Error Code C0000005

Post by Kappes Buur »

Enjay wrote: Fri Jul 10, 2026 3:11 am
Looks like the wrong ZScript sneaked in there. That's for Maxon ZBrush.
OOPS, I was not loking too closely at ZSCRIPT vs ZScripting. :roll:
my bad :shock:

Return to “Technical Issues”