ID 99555 - Live Render raises an exception in some versions after removing previously active IRF

Follow

Problem summary
In some Katana versions, a Live Render (in some cases also Preview Renders) won’t start after an InteractiveRenderFilter that was active in a previous render has been removed from the active filters. The terminal shows an error message similar to the following:
 
Traceback (most recent call last):
 File "bin/python/Nodes3DAPI/Node3D_geolib3.py", line 902, in __nodeChangeCB
 File "bin/python/Nodes3DAPI/Node3D_geolib3.py", line 1230, in __nodeChangeCBWrapped
 File "bin/python/Nodes3DAPI/Node3D_geolib3.py", line 106, in ApplyTerminalOpDelegates
 File "bin/python/Nodes3DAPI/TerminalOpDelegates/WorkingSetTerminalOpDelegate.py", line 217, in appendOp
TypeError: Requires a sequence of GeolibRuntimeOps
Traceback (most recent call last):
 File "bin/python/Nodes3DAPI/Node3D_geolib3.py", line 902, in __nodeChangeCB
 File "bin/python/Nodes3DAPI/Node3D_geolib3.py", line 1230, in __nodeChangeCBWrapped
 File "bin/python/Nodes3DAPI/Node3D_geolib3.py", line 106, in ApplyTerminalOpDelegates
 File "bin/python/Nodes3DAPI/TerminalOpDelegates/WorkingSetTerminalOpDelegate.py", line 217, in appendOp
TypeError: Requires a sequence of GeolibRuntimeOps
[ERROR python.PyUtil.RenderManager]: Error configuring render method 'liveRender': Requires a sequence of GeolibRuntimeOps
[ERROR python.Utils.EventModule]: Error in event handler __on_event_idle() for event type "event_idle": UnboundLocalError: local variable 'renderMethodType' referenced before assignment
 
Customer reported version
Katana 2.1v5
 
Steps to reproduce
  1. Open the attached scene "rendererror.katana", or create a simple scene with a Camera, a Primitive and a simple InteractiveRenderFilter.
  2. In the InteractiveRenderFilters dialog, add the IRF to the list of active filters.
  3. Start a Live Render.
  4. Cancel the Live Render under Render > Cancel Renders.
  5. Clear the IRF from the list of active render filters.
  6. Try to start a Live Render again. It will not start and a traceback similar to the one above shows in the console.
  7. Reactivating the IRF gets rid of the error and the Live Render can be performed.
Workaround
It is possible to restore the rendering functionality by:
- creating and enabling a 'dummy' render filter that does nothing
- re-enabling the deactivated IRF
- deleting the InteractiveRenderFilter node
 
Reproduced by support
Reproduced:
Katana 2.1v4 - v5, 2.5v2 - v4 on RHEL 6.6
Katana 2.5v4 Windows 7
 
Not reproduced:
Katana 1.6v3, 2.1v1 - v3 , 2.5v1 RHEL 6.6
Katana 2.5v1 Windows 7
 
Expected behaviour
Interactive Render Filters should be able to be added and removed without affecting the ability to render.
 
Actual behaviour
Live Renders won’t start after a previously active IRF has been removed.

    We're sorry to hear that

    Please tell us why