[Duplicate] Weird crash on startup related to multiple returns

Bugs that have been investigated and resolved somehow.

Moderators: Developers, ZDoom.org Team

Weird crash on startup related to multiple returns

Postby Gutawer » Fri Oct 20, 2017 2:59 pm

Code: Select allExpand view
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.
User avatar
Gutawer
 
 
 
Joined: 16 Apr 2016
Discord: Gutawer#3431

Re: Weird crash on startup related to multiple returns

Postby XxMiltenXx » Fri Oct 20, 2017 3:21 pm

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.
XxMiltenXx
 
Joined: 08 Jan 2014

Re: Weird crash on startup related to multiple returns

Postby _mental_ » Mon Oct 23, 2017 2:53 am

It appeared to be the same issue as this one so I moved investigation port and closed this one.
_mental_
 
 
 
Joined: 07 Aug 2011


Return to Closed Bugs

Who is online

Users browsing this forum: No registered users and 1 guest