ID 520490 - Negative values for the interactiveRenderThreads3D preference causes uncontrollable amount of memory usage

Follow

Problem summary
A negative value for the interactiveRenderThreads3D preference or a negative value sent to the -threads argument for renderboot is causing an uncontrollable amount of memory usage.
 
Customer reported version
katana.n_a
 
Customer reported platform
 
Steps to reproduce

  1. Delete the .katana/Prefs2.ini file
  2. Start Katana with profilingMockRenderer (KATANA_RESOURCES=$KATANA_RESOURCES:$KATANA_ROOT/plugins/Resources/Examples)
  3. Go to the Preferences pop-up window (Edit > Preferences)
  4. In the application section, change rendering.interactiveRenderThreads3D to "-1"
  5. Close the preferences window
  6. In the Node Graph tab, create a CameraCreate node
  7. Set the view flag on the CameraCreate node
  8. Start a Preview Render (Ctrl + p)
 
Expected behavior
profilingMockRenderer starts and prints statistics in the Render Log tab.
 
Actual behavior
The entire system memory is filled within seconds and can freeze the whole computer.
The render never finishes (nor does it seem to start).
 
Workaround
Set zero or positive values for the rendering.interactiveRenderThreads3D preference.
 
Reproduced by support
This bug has been reproduced in:
Katana 5.0v4 - CentOS 7.9, Windows 10 (21H2)
Katana 5.0v1 - CentOS 7.9, Windows 10 (21H2)
Katana 4.5v4 - CentOS 7.9, Windows 10 (21H2)
Katana 4.5v1 - CentOS 7.9, Windows 10 (21H2)
 
Unable to reproduce bug in:
Katana 4.0v8 - CentOS 7.9, Windows 10 (21H2)
 
Earliest version tested
Katana 4.0v8 - This issue doesn't appear in this version and has regressed
 

    We're sorry to hear that

    Please tell us why