MATLAB: Does MATLAB enter an infinite loop when I use the CAPTURESCREEN command on an invisible figure in MATLAB 7.0.4 (R14SP2) on MacOS

invisiblemacMATLABscreencapturevisible

In MATLAB 7.0.4 (R14SP2) on MacOS, I use the following code to perform a screen capture on an invisible figure:
f = figure('visible', 'off');
capturescreen(f)
MATLAB enters an infinite loop and becomes busy indefinitely. I have to use Ctrl+C to stop the process.

Best Answer

This bug has been fixed in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
There is a bug in MATLAB 7.0.4 (R14SP2) when performing screen captures on an invisible figure on Mac.
There are no workarounds.