Possible macOS concurrency issue?

mschuster

Well-known member
Hi Juan,

While a script is running, I notice that it is possible to double click on an .xisf file in the Finder which causes PI to load that file concurrently with script execution.

The file opening logging text is now interleaved with script output text in the Process Console.

I recall the same thing is also possible while a PI process is running (but my memory may be in error).

Is this concurrent file open a possible concurrency issue in PI?

For example, the script might happen to be opening a file at the same moment.

Or, for example, the script might have previously captured the workspace contents for say image window naming/searching purposes only to find that the captured information is no longer valid later in script execution.

I think the same issue might hold for opening .xpsm files.
 
Yes, this may happen on all platforms, not just on macOS. I'm going to implement a blocking mechanism to prevent any external file loading operation from happening while a process is running. Thank you for pointing out this potential problem.
 
Back
Top