Question on Icon as Macro names in Paraview 5.13.3

Hi, I have a Macro and I want an Icon to be shown instead of a long name on a toolbar.

For Paraview 5.11.1: I have Plugin written in python using vtkPythonAlgorithmBase and I am applying it over NetCDF dataset. Then, I am applying Macro. It works perfectly. Only thing is I want an Icon to be shown instead of long text.

So, I downloaded 5.13.3 because it has support to show icon by copying a PNG file with same name as macro’s name. I loaded my plugin first and when I applied it from filters menu, it crashed Paraview.

Plugin that I am applying: https://bitbucket.org/ocean_000/ocean/src/main/filters/New_Streamlines.py

Is there some code/libraries that Paraview 5.13.3 doesn’t allow but Paraview 5.11.1 allows in plugin written using vtkPythonAlgorithmBase?

FYI @nicolas.vuaille

This is not a macro, this is a python plugin. You should not use it as a macro, but as a plugin in Tools → Manage Plugin.

ParaView should not crash though.

No, I am not using this as a macro. I am loading it through Manage Plugins and applying it over my dataset. It works in Paraview 5.11.1 and crashes immediately in Paraview 5.13.3 regardless whether I have macro loaded or not.

Ok, so the question is not about icon as macros but about a python plugin that crashes in ParaView 5.13.3 ?

Yes. I want plugin to work in 5.13.3 so I can use icons instead of names.

Your plugin loads fine but the Streamlines filter does not seem to work on some test data. Please share data to reproduce

Sure. Either of the NedCDF file works.

Dataset: Dataset

A microsoft account seems required to download this file

Okay, I have uploaded it to Google drive.

Dataset: BoB_July_2020_uvst.nc - Google Drive