VM abort: Attempt to draw to screen outside a draw function

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
GFD
Posts: 347
Joined: Mon May 31, 2010 7:42 pm
Preferred Pronouns: He/Him
Location: Canada
Contact:

VM abort: Attempt to draw to screen outside a draw function

Post by GFD »

If you start up GZDoom in fullscreen and then remove focus from it as it's setting up its display, it draws a black screen with the pause graphic at the top (even if no game has begun):
Spoiler:
At this point, clicking on GZDoom does not properly focus it. While any window you had given focus to might appear to lose focus (indicated by the titlebar changing to the inactive colour), other things indicate that the window is still in focus, such as it being listed first in the alt-tab interface, and its icon on the taskbar being highlighted. In this state, GZDoom pulls the mouse cursor to the centre of its screen whenever the mouse moves, and it captures keyboard inputs. By pressing escape, part of this error shows up on-screen:
Spoiler:
When GZDoom properly acquires focus (by eg. alt-tabbing to it or clicking its icon on the taskbar), the console shows the full error:

Code: Select all

VM execution aborted:  Attempt to draw to screen outside a draw function
Called from Screen.DrawTexture [Native]
Called from ListMenuItemStaticPatch.Drawer at gzdoom.pk3:zscript/menu/listmenuitems.txt, line 90
Called from ListMenu.Drawer at gzdoom.pk3:zscript/menu/listmenu.txt, line 251
I'm running Windows 10 and the 64-bit binary of GZDoom 3.2.4.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: VM abort: Attempt to draw to screen outside a draw funct

Post by _mental_ »

Fixed in 90c734a.
Post Reply

Return to “Closed Bugs [GZDoom]”