Processing interrupted issue when Scripts (SCRI) are generating

Document ID : KB000089320
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
Processing interrupted issue when Scripts (SCRI) are generating
Resolution:
Detailed Description and Symptoms

The runtime of a script is quite random, varies between 00:00:30 to 00:13:00, however reading and writing the same data. 

the message displays : "Processing interrupted, possibe loop! Script will continue in '001' seconds" . 

Investigation

To avoid possible loop,  AE engine set up a setting SCR_LOOPCHK_TIME (in UC_SYSTEM_SETTINGS)  - Time period in seconds after which an endless loop is assumed in a script.

Script generation always stops every 5 seconds, regardless of the value specified in SCR_LOOPCHK_TIME. Doing so ensures that the script can be canceled without blocking other tasks

Solution

This setting affects scripts whose generation takes longer than specified here. In such cases, script generation repeatedly pauses for some time in order to avoid unnecessary UC4 Automation Engine load.

SCR_LOOPCHK_TIME is used to define the frequency with which the script is interrupted. The subsequent waiting time is always 1 second in the beginning. This time is doubled after every interruption. The longest waiting time is 128 seconds. When this value has been reached, the waiting time is always 128. It is no longer doubled.

Example for SCR_LOOPCHK_TIME 3:

Script starts

Generation starts

after 3 seconds

Generation pauses

Waiting time

Duration: 1 second

Script continues

Generation continues

after further 3 seconds

Generation pauses

Waiting time

Duration: 2 seconds

Script continues

Generation continues

after further 3 seconds

Generation pauses

Waiting time

Duration: 4 seconds

etc.