VM execution aborted: tried to read from address zero.

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
yura_111
Posts: 28
Joined: Sat Oct 12, 2019 2:55 pm
Graphics Processor: nVidia (Modern GZDoom)

VM execution aborted: tried to read from address zero.

Post by yura_111 »

Hello!
I have a problem with newest stable version of gzdoom 4.2.1:

Warning: '==some object==' is freed outside the GC process.
Called from AltHud.Init at gzdoom.pk3:zscript/ui/statusbar/alt_hud.zs, line 74

Execution could not continue.

I have a version 3.6.0 - and i have no problems, but after update - i have this error.

P.S. GZDOOM without my mod work good even on 4.2.1, problem only if i want load my mod.

Sorry for my English...
User avatar
Matt
Posts: 9696
Joined: Sun Jan 04, 2004 5:37 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Debian Bullseye
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
Contact:

Re: VM execution aborted: tried to read from address zero.

Post by Matt »

Can you post your mod?
yura_111
Posts: 28
Joined: Sat Oct 12, 2019 2:55 pm
Graphics Processor: nVidia (Modern GZDoom)

Re: VM execution aborted: tried to read from address zero.

Post by yura_111 »

No. Sorry. Mod very large, in alpha progress and therefore i can't post.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: VM execution aborted: tried to read from address zero.

Post by _mental_ »

How can we fix it if we cannot reproduce it? Upload your mod somewhere and PM the link to GZDoom Developers.
Alternatively, you may try to create a small sample mod that has the same error.
User avatar
Rachael
Posts: 13560
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: VM execution aborted: tried to read from address zero.

Post by Rachael »

yura_111 wrote:No. Sorry. Mod very large, in alpha progress and therefore i can't post.
This literally makes it impossible to fix your issue. Sorry - but if you can't help us, we can't help you, it's not that we're looking for "super secret" shit, it's more to the point that if we don't have the materials required to create the issue ourselves, we cannot fix the issue. We're not superhuman, we're not mindreaders, and you need to understand that in most cases GZDoom works perfectly fine, the situation is pretty unique to your mod. It's as simple as that.

Sorry to give it to you bluntly like that, but it is what it is. Reality imposes limits on what we can do, and there's no way around it.

So if you want this issue fixed - give it to someone who can fix it. If you don't trust the entire GZDoom dev team, you can PM only _mental_ with it, instead.
yura_111
Posts: 28
Joined: Sat Oct 12, 2019 2:55 pm
Graphics Processor: nVidia (Modern GZDoom)

Re: VM execution aborted: tried to read from address zero.

Post by yura_111 »

https://dropmefiles.com/Y8Mx4

Load file "TestLaunch-NW3.bat"

Archive have a password, but i can't sent PM, because: " We are sorry, but you are not authorised to use this feature. You may have just registered here and may need to participate more to be able to use this feature. "
User avatar
Rachael
Posts: 13560
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: VM execution aborted: tried to read from address zero.

Post by Rachael »

Sorry about that. You should be able to send PM's, now.
yura_111
Posts: 28
Joined: Sat Oct 12, 2019 2:55 pm
Graphics Processor: nVidia (Modern GZDoom)

Re: VM execution aborted: tried to read from address zero.

Post by yura_111 »

Done it. Thanks!
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: VM execution aborted: tried to read from address zero.

Post by _mental_ »

The problem is with your super duper IWAD. It’s detected as Doom II, although it lacks small font lumps, STCFN*. Alternative HUD requires it, and that’s why it fails to start.
Additional warning is a side effect of the same failure during AltHud object construction.
yura_111
Posts: 28
Joined: Sat Oct 12, 2019 2:55 pm
Graphics Processor: nVidia (Modern GZDoom)

Re: VM execution aborted: tried to read from address zero.

Post by yura_111 »

... but in 3.6.0 - work good. If this my error - why work before 3.7.x ?

P.S. mod in alplha progress
User avatar
Nash
 
 
Posts: 17439
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: VM execution aborted: tried to read from address zero.

Post by Nash »

yura_111 wrote:... but in 3.6.0 - work good. If this my error - why work before 3.7.x ?
Because over time, the engine gets fixed to prevent users from making critical errors like this. Like _mental_ says, the engine REQUIRES those fonts for the AltHUD at least. There's no negotiation there, never should have been. The fact that it "worked" before was probably missed by the devs in the past.

These kinds of things get fixed by the devs to prevent people from continuing to create bad data in their projects.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: VM execution aborted: tried to read from address zero.

Post by Graf Zahl »

No, there is an actual regression here. The engine should fall back on the console font when the small font is not found.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: VM execution aborted: tried to read from address zero.

Post by _mental_ »

User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: VM execution aborted: tried to read from address zero.

Post by Graf Zahl »

Yes, this is precisely what was missed when the code got refactored.
Post Reply

Return to “Closed Bugs [GZDoom]”