Weird crash on startup related to multiple returns

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
User avatar
Gutawer
Posts: 469
Joined: Sat Apr 16, 2016 6:01 am
Preferred Pronouns: She/Her

Weird crash on startup related to multiple returns

Post by Gutawer »

Code: Select all

version "3.3"

class TestHandler : StaticEventHandler {
	override void RenderOverlay(RenderEvent e) {
		Vector2 drawPos = (0, 0);
		TextureID tex = TexMan.checkForTexture("STARTAN2", TexMan.Type_Any);
		Vector2 size = TexMan.getScaledSize(tex);
		Vector2 realPos, realSize;
		[realPos, realSize] = Screen.virtualToRealCoords(drawPos, size, (320, 200));
	}
}
This code crashes my game on startup, with no error - I've narrowed it down to being the line with the multiple return values from virtualToRealCoords(), but I can't give any more info since there's no error reporting, just a CTD.
XxMiltenXx
Posts: 219
Joined: Wed Jan 08, 2014 8:40 am
Graphics Processor: nVidia with Vulkan support
Location: Germany

Re: Weird crash on startup related to multiple returns

Post by XxMiltenXx »

I can confirm this bug, however there are some oddities. Sometimes it started for me, but it's not reproducable how to get it started. Sometimes it did, after that it did not. If it started, then it would crash upon exitting the game.

Also, this seems to only happen with main IWADs. I tested it out in a mod which uses it's own IWAD and there it worked flawlessly.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: Weird crash on startup related to multiple returns

Post by _mental_ »

It appeared to be the same issue as this one so I moved investigation port and closed this one.
Post Reply

Return to “Closed Bugs [GZDoom]”