Python trace generation on load state with arguments is failing
ParaView fails to generate a correct trace with Loading a state with arguments.
Steps to reproduce:
- Open ParaView
- Open any file, apply
- File -> Save State
- Reset Session
- Tools -> StartTrace
- File -> Loade State -> Search files under specified dir
- Tools -> StopTrace
- Trace is empty and error is shown:
Traceback (most recent call last):
File "/home/glow/work/paraview/others/ParaView-5.10.0-MPI-Linux-Python3.9-x86_64/lib/python3.9/site-packages/paraview/smtrace.py", line 1811, in _stop_trace_internal
trace = str(Trace.Output)
File "/home/glow/work/paraview/others/ParaView-5.10.0-MPI-Linux-Python3.9-x86_64/lib/python3.9/site-packages/paraview/smtrace.py", line 116, in __str__
return '\n'.join(self.__data)
TypeError: sequence item 17: expected str instance, bool found
Trace should have been:
LoadState("path/to/state/file", "path/to/dir", True)
Note: Save state is not traced at all.
Edited by Mathieu Westphal (Kitware)