Paraview Find Data error

I’m trying to Find the node where value == max(value) in Paraview on a slice of a StructuredGrid. After clicking Run Selection Query, the UI freezes and I’m getting the following error:

(  38.351s) [pvserver.2      ]  vtkPythonSelector.cxx:76    WARN| vtkPythonSelector (0x41a04c0): Could not invoke 'python_selector.execute()'                               
    res = impl.op()(array, axis)                                                                                                                                            
  File "/home/shuhao/ParaView-5.7.0-RC4-osmesa-MPI-Linux-Python3.7-64bit/lib/python3.7/site-packages/vtkmodules/numpy_interface/internal_algorithms.py", line 373, in max   
    ans = numpy.max(narray, axis)                                                                                                                                           
  File "/home/shuhao/ParaView-5.7.0-RC4-osmesa-MPI-Linux-Python3.7-64bit/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 2505, in amax
Traceback (most recent call last):
  File "/home/shuhao/ParaView-5.7.0-RC4-osmesa-MPI-Linux-Python3.7-64bit/lib/python3.7/site-packages/paraview/detail/python_selector.py", line 79, in execute
    ans = numpy.max(narray, axis)
  File "/home/shuhao/ParaView-5.7.0-RC4-osmesa-MPI-Linux-Python3.7-64bit/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 2505, in amax
    maskArray = calculator.compute(inputs, query, ns=elocals)
  File "/home/shuhao/ParaView-5.7.0-RC4-osmesa-MPI-Linux-Python3.7-64bit/lib/python3.7/site-packages/paraview/detail/calculator.py", line 143, in compute
    retVal = eval(expression, globals(), mylocals)
  File "<string>", line 1, in <module>
    initial=initial)
  File "/home/shuhao/ParaView-5.7.0-RC4-osmesa-MPI-Linux-Python3.7-64bit/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 84, in _wrapreduction
    return reduction(axis=axis, out=out, **passkwargs)
  File "/home/shuhao/ParaView-5.7.0-RC4-osmesa-MPI-Linux-Python3.7-64bit/lib/python3.7/site-packages/numpy/core/_methods.py", line 28, in _amax
  File "/home/shuhao/ParaView-5.7.0-RC4-osmesa-MPI-Linux-Python3.7-64bit/lib/python3.7/site-packages/vtkmodules/numpy_interface/algorithms.py", line 361, in max
    return umr_maximum(a, axis, None, out, keepdims, initial)
    initial=initial)ValueError: zero-size array to reduction operation maximum which has no identity

  File "/home/shuhao/ParaView-5.7.0-RC4-osmesa-MPI-Linux-Python3.7-64bit/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 84, in _wrapreduction
    return reduction(axis=axis, out=out, **passkwargs)
  File "/home/shuhao/ParaView-5.7.0-RC4-osmesa-MPI-Linux-Python3.7-64bit/lib/python3.7/site-packages/numpy/core/_methods.py", line 28, in _amax
    return umr_maximum(a, axis, None, out, keepdims, initial)
ValueError: zero-size array to reduction operation maximum which has no identity
    return _global_func(MaxImpl(), array, axis, controller)
  File "/home/shuhao/ParaView-5.7.0-RC4-osmesa-MPI-Linux-Python3.7-64bit/lib/python3.7/site-packages/vtkmodules/numpy_interface/algorithms.py", line 188, in _global_func
    res = impl.op()(array, axis)
  File "/home/shuhao/ParaView-5.7.0-RC4-osmesa-MPI-Linux-Python3.7-64bit/lib/python3.7/site-packages/vtkmodules/numpy_interface/internal_algorithms.py", line 373, in max
    ans = numpy.max(narray, axis)
  File "/home/shuhao/ParaView-5.7.0-RC4-osmesa-MPI-Linux-Python3.7-64bit/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 2505, in amax
Error: Failed to evaluate Expression 'U  == max(U)'. The following exception stack should provide additional developer specific information. This typically implies a malfo$
med expression. Verify that the expression is valid.

Has anyone seen something like this before? The key error here seems to be ValueError: zero-size array to reduction operation maximum which has no identity. However,the slice has data and the variable U has data as well as shown by the information tab for the slice?

This seems to work if I run the same operation on a local machine and it also seems to work if I don’t run paraview server with MPI.

This seem to suggest something is wrong with the parallelization, I’ll file a bug in the paraview repository: https://gitlab.kitware.com/paraview/paraview/issues/19395