ID 504438 - Take Screenshot causes BSOD

Follow
Problem summary
Take Screenshot causes Mari's UI to turn black
 
Customer reported version
Mari 5.0v2
 
Customer reported platform
Windows 10
 
Steps to reproduce
 
1) Open any project

2) Click View > Take Screenshot 

3) Enter a valid path and filename in the Screenshot Settings window, then click Ok
 
(Note: If the path is not valid, this issue will still occur after the warning dialog is closed)
 
Expected behaviour
A screenshot of the canvas should be saved.
 
Actual behaviour
The UI turns black and Mari needs to be restarted.
 
Workaround
Unknown.
 
Reproduced by support
This bug has been reproduced in:
Mari 5.0v2 - Windows 10 - CentOS 7.9
Mari 4.8v2 - Windows 10
Mari 5.0v1 - Windows 10
Mari 4.8v1 - Windows 10 - CentOS 7.9 - regression
 
Unable to reproduce bug in:
Mari 4.7v6 - Windows 10 - CentOS 7.9
 
Earliest version tested
Mari 4.7v6 - This issue doesn't appear in this version and has regressed
 
 

    We're sorry to hear that

    Please tell us why