I am seeing an unexpected dimensions error, see attached png.
The script attempts to make a copy of the source view. If the script is executed via the Script Editor's Execute -> Compile & Run command, the script completes successfully.
On the other hand, if the script is executing by dragging a process icon onto the source view, the dimensions error occurs. This latter behavior appears to be a bug.
Here is how to reproduce the problem:
(Note: we are going to run the script and show that it works correctly.)
Open the image //pixinsight.com/examples/M57-CAHA/M57_CAHA_RECTA_DSA.jpg.
Create a preview of a part of this image (for example, a subregion containing the nebula).
Activate the preview by clicking its View Selector.
Choose the command Image -> Color Spaces -> Convert to Grayscale.
(Note: at this point the main view remains RGB, only the preview is Grayscale, also the preview remains the active view).
Open the attached script in the Script Editor, choose the Execute -> Compile & Run command.
(Note: at this point a script generates a new image window, a copy of the preview, successfully).
Close this new image window.
(Note: Now we are going to create a process icon and drag it to the preview and reproduce the error.)
Choose the command Process -> <All Processes> -> Script.
In the Script dialog, set File Path to the file name of the attached script.
In the Script dialog, clear the MD5 field.
Drag the New Instance icon in the Script dialog to the workspace.
Close the Script dialog.
(Note: Verify that the preview is active, and verify that it is Grayscale.)
Drag the icon to the preview.
The attached error dialog is displayed.
(Note: at this point the preview has been changed from Grayscale to RGB. If you want to rerun the above procedures, please make sure to convert the preview to Grayscale first before proceeding.)
Note that the script does not change the dimensions of the source view nor its main view in any way. Apparently the unequal color spaces of the main view and preview and process icon execution are not compatible in some way.
Version 01.07.05.0779 Starbuck (eng x86_64).
Thanks,
Mike