I have a python script which is often run in batch on a server, but also run locally to load and setup data for manual visualization (and to debug/write the scripts). I have many sys.exit() calls which catch common errors, or just end the script early. When running interactively, anytime the sys.exit() call is made, paraview throws the errors below and stdout and stderr are lost.
What’s the proper way to stop a python script in paraview interactive? Or is this a bug? In 5.4.1 for example, sys.exit() functions normally.
It’s easy to reproduce this with:
import paraview from paraview.simple import * sys.exit()
AutoMPI: SUCCESS: command is:
“/opt/paraview/5.7.0/bin/mpiexec” “-n” “11” “/opt/paraview/5.7.0/bin/pvserver” “–server-port=41095”
AutoMPI: starting process server
-------------- server output --------------
Waiting for client…
AutoMPI: server successfully started.
Loguru caught a signal: SIGSEGV
corrupted size vs. prev_size
Loguru caught a signal: SIGABRT