ID 589860 - Rendering multiple scripts in headless mode, with and without OFX plugins, can cause a corruption of the "ofxplugincache" directory in Nuke on Linux.

Follow

Problem summary
Rendering multiple scripts in headless mode, with and without OFX plugins, can cause a corruption of the "ofxplugincache" directory in Nuke on Linux.
 
Customer reported version
Nuke 14.1v5
 
Customer reported platform
Rocky 8
 
Steps to reproduce
1) Create a shell script using a text editor, saving it as nuke_render.sh:

echo "Setting path to Nuke 15.1v4"cd /usr/local/Nuke15.1v4echo "Render script 1"./Nuke15.1 -ti -x -F 1-50 /path/to/script1.nk &echo "Render script 2"./Nuke15.1 -ti -x -F 1-50 /path/to/script2.nk
2) Launch Nuke and create a basic script with an OFX plugin, such as F_Regrain or a Keylight node. 
3) Save the script as script1.nk and close Nuke.
4) Repeat the process for a second script, this time removing the OFX node(s). i.e script2.nk
5) In Terminal, run the shell script with the command: sh nuke_render.sh
6) Allow the renders to complete and observe for any errors.
 
NOTE: You may need to repeat step 5 for multiple renders to have issue occur.
 
Expected behavior
The Nuke scripts should complete without error.
 
Actual behavior
The Nuke renders can fail and appear with an error for "XML Error : 4

Errors can also be given for the OFX plugins as:

Warning: Node name "OFXuk.co.thefoundry.furnace.f_steadiness_v403_1" contains the illegal character(s) ".".

Warning: Node name "OFXuk.co.thefoundry.furnace.f_regrain_v403_1" contains the illegal character(s) ".".

ERROR: F_Steadiness3: 'OFXuk.co.thefoundry.furnace.f_steadiness_v403': unknown command. This is most likely from a corrupt .nk
 

Workaround
Deleting the ofxplugincache directory before rendering helps to mitigate the erroring. 
 
Reproduced by Developers:
This bug has been reproduced in:
Nuke 15.1v4 - Rocky 9 

    We're sorry to hear that

    Please tell us why