I recently turned on Controlled folder access in the Windows security tab, and this leads to the game crashing when trying to take a screenshot via F12. The GZDoom version is g4.14.2.
The message displayed in the window is "Execution could not continue. Unable to retrieve known folder."
Solution: The game should be able to handle such things without crashing. It should instead give the user an in-game message that the screenshot could not be saved.
Taking a screenshot with Controlled folder access on crashes the game
Moderator: GZDoom Developers
Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.
If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.
Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.
If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.
Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!
-
- Posts: 188
- Joined: Mon Jul 12, 2021 1:45 pm
- Graphics Processor: nVidia with Vulkan support
-
-
- Posts: 4165
- Joined: Thu Jul 17, 2003 12:19 am
- Graphics Processor: nVidia (Legacy GZDoom)
- Location: British Columbia, Canada
Re: Taking a screenshot with Controlled folder access on crashes the game
It seems to me that you are going to a lot of trouble for little benefit.
You could simply specify a folder in the ini file where to save a screenshot.
eg: screenshot_dir=D:\SCREENSHOTS\SCREENSHOTS_GZDOOM
To expand on that a bit, I use these settings in the autoexec.cfg file
bind h "wait 2; r_drawplayersprites 0; wait 2; screenshot; wait 2; r_drawplayersprites 1;"
bind j "wait 2; screenshot; wait 2;"
You could simply specify a folder in the ini file where to save a screenshot.
eg: screenshot_dir=D:\SCREENSHOTS\SCREENSHOTS_GZDOOM
To expand on that a bit, I use these settings in the autoexec.cfg file
bind h "wait 2; r_drawplayersprites 0; wait 2; screenshot; wait 2; r_drawplayersprites 1;"
bind j "wait 2; screenshot; wait 2;"
-
- Posts: 2969
- Joined: Thu Jul 17, 2003 12:07 am
- Graphics Processor: ATI/AMD with Vulkan/Metal Support
Re: Taking a screenshot with Controlled folder access on crashes the game
I think the concern is more about the crash when it couldn't save the screenshot to the given folder due to inadvertently specifying a protected folder, that it should just give an error message but continue running.Kappes Buur wrote: ↑Mon Jun 09, 2025 9:01 pm It seems to me that you are going to a lot of trouble for little benefit.
You could simply specify a folder in the ini file where to save a screenshot.
eg: screenshot_dir=D:\SCREENSHOTS\SCREENSHOTS_GZDOOM