ParaView issueshttps://gitlab.kitware.com/paraview/paraview/-/issues2023-04-23T04:32:55-04:00https://gitlab.kitware.com/paraview/paraview/-/issues/21851OpenGL errors while running Demo1 and Demo2 custom application on Mac2023-04-23T04:32:55-04:00Muhammad Saad AtiqueOpenGL errors while running Demo1 and Demo2 custom application on MacI can build Demo0, Clone1 and Clone2. But when building Demo1 and Demo2 I get these errors:
```
( 2.505s) [paraview ] vtkShaderProgram.cxx:439 ERR| vtkShaderProgram (0x7fb8b448c4d0): ERROR: 0:1: ‘’ : version ‘150’ is not supported
( 2....I can build Demo0, Clone1 and Clone2. But when building Demo1 and Demo2 I get these errors:
```
( 2.505s) [paraview ] vtkShaderProgram.cxx:439 ERR| vtkShaderProgram (0x7fb8b448c4d0): ERROR: 0:1: ‘’ : version ‘150’ is not supported
( 2.505s) [paraview ]vtkOpenGLPolyDataMapper:2581 ERR| vtkOpenGLPolyDataMapper (0x7fb8b108b000): Could not set shader program
( 2.505s) [paraview ]vtkOpenGLPolyDataMapper:2593 ERR| vtkOpenGLPolyDataMapper (0x7fb8b108b000): failed after UpdateShader 1 OpenGL errors detected
0 : (1282) Invalid operation
( 2.506s) [paraview ] vtkShaderProgram.cxx:438 ERR| vtkShaderProgram (0x7fb8b5004ed0):
( 2.509s) [paraview ] vtkShaderProgram.cxx:439 ERR| vtkShaderProgram (0x7fb8b5004ed0): ERROR: 0:1: ‘’ : version ‘150’ is not supported
( 2.509s) [paraview ]vtkOpenGLPolyDataMapper:2581 ERR| vtkOpenGLPolyDataMapper (0x7fb8b208c000): Could not set shader program
( 2.509s) [paraview ]vtkOpenGLPolyDataMapper:2593 ERR| vtkOpenGLPolyDataMapper (0x7fb8b208c000): failed after UpdateShader 1 OpenGL errors detected
0 : (1282) Invalid operation
( 2.510s) [paraview ] vtkShaderProgram.cxx:438 ERR| vtkShaderProgram (0x7fb8b448c4d0):
( 2.510s) [paraview ] vtkShaderProgram.cxx:439 ERR| vtkShaderProgram (0x7fb8b448c4d0): ERROR: 0:1: ‘’ : version ‘150’ is not supported
( 2.510s) [paraview ]vtkOpenGLPolyDataMapper:2581 ERR| vtkOpenGLPolyDataMapper (0x7fb8b208c600): Could not set shader program
( 2.510s) [paraview ]vtkOpenGLPolyDataMapper:2593 ERR| vtkOpenGLPolyDataMapper (0x7fb8b208c600): failed after UpdateShader 1 OpenGL errors detected
0 : (1282) Invalid operation
( 2.512s) [paraview ] vtkShaderProgram.cxx:438 ERR| vtkShaderProgram (0x7fb8b448c4d0):
( 2.513s) [paraview ] vtkShaderProgram.cxx:439 ERR| vtkShaderProgram (0x7fb8b448c4d0): ERROR: 0:1: ‘’ : version ‘150’ is not supported
( 2.513s) [paraview ]vtkOpenGLPolyDataMapper:2581 ERR| vtkOpenGLPolyDataMapper (0x7fb8b108b600): Could not set shader program
( 2.513s) [paraview ]vtkOpenGLPolyDataMapper:2593 ERR| vtkOpenGLPolyDataMapper (0x7fb8b108b600): failed after UpdateShader 1 OpenGL errors detected
0 : (1282) Invalid operation
( 2.514s) [paraview ] vtkShaderProgram.cxx:438 ERR| vtkShaderProgram (0x7fb8b5004ed0):
( 2.515s) [paraview ] vtkShaderProgram.cxx:439 ERR| vtkShaderProgram (0x7fb8b5004ed0): ERROR: 0:1: ‘’ : version ‘150’ is not supported
( 2.516s) [paraview ]vtkOpenGLPolyDataMapper:2581 ERR| vtkOpenGLPolyDataMapper (0x7fb8b208c000): Could not set shader program
( 2.516s) [paraview ]vtkOpenGLPolyDataMapper:2593 ERR| vtkOpenGLPolyDataMapper (0x7fb8b208c000): failed after UpdateShader 1 OpenGL errors detected
0 : (1282) Invalid operation
( 2.517s) [paraview ] vtkShaderProgram.cxx:438 ERR| vtkShaderProgram (0x7fb8b448c4d0):
( 2.518s) [paraview ] vtkShaderProgram.cxx:439 ERR| vtkShaderProgram (0x7fb8b448c4d0): ERROR: 0:1: ‘’ : version ‘150’ is not supported
( 2.519s) [paraview ]vtkOpenGLPolyDataMapper:2581 ERR| vtkOpenGLPolyDataMapper (0x7fb8b208c600): Could not set shader program
( 2.519s) [paraview ]vtkOpenGLPolyDataMapper:2593 ERR| vtkOpenGLPolyDataMapper (0x7fb8b208c600): failed after UpdateShader 1 OpenGL errors detected
0 : (1282) Invalid operation
( 2.520s) [paraview ] vtkShaderProgram.cxx:438 ERR| vtkShaderProgram (0x7fb8b448c4d0):
( 2.521s) [paraview ] vtkShaderProgram.cxx:439 ERR| vtkShaderProgram (0x7fb8b448c4d0): ERROR: 0:1: ‘’ : version ‘150’ is not supported
( 2.521s) [paraview ]vtkOpenGLPolyDataMapper:2581 ERR| vtkOpenGLPolyDataMapper (0x7fb8b1072200): Could not set shader program
( 2.521s) [paraview ]vtkOpenGLPolyDataMapper:2593 ERR| vtkOpenGLPolyDataMapper (0x7fb8b1072200): failed after UpdateShader 1 OpenGL errors detected
0 : (1282) Invalid operation
( 2.554s) [paraview ] vtkOpenGLState.cxx:930 WARN| Error glActiveTexture1 OpenGL errors detected
( 2.581s) [paraview ] vtkOpenGLState.cxx:930 WARN| Error glActiveTexture1 OpenGL errors detected
0 : (1282) Invalid operation
( 2.590s) [paraview ] vtkShaderProgram.cxx:438 ERR| vtkShaderProgram (0x7fb8b42b6d60): ( 2.590s) [paraview ] vtkShaderProgram.cxx:439 ERR| vtkShaderProgram (0x7fb8b42b6d60): ERROR: 0:1: ‘’ : version ‘150’ is not supported
( 2.590s) [paraview ]vtkOpenGLVertexArrayObj:266 ERR| vtkOpenGLVertexArrayObject (0x7fb8b42b6fc0): attempt to add attribute without a program for attribute ndCoordIn
( 2.590s) [paraview ]vtkOpenGLQuadHelper.cxx:71 WARN| Error binding ndCoords to VAO.
vtkMemberFunctionCommand::Execute(vtkObject*, unsigned long, void*) + 288
( 2.590s) [paraview ] :0 FATL| Signal: SIGSEGV
[1] 38231 segmentation fault ./DemoApp1
```https://gitlab.kitware.com/paraview/paraview/-/issues/21853Paraview 5.11 seems to be incompatible with FLuent .case and .dat2023-04-23T04:32:50-04:00Tao ZhangParaview 5.11 seems to be incompatible with FLuent .case and .datHi, I'm a Ph.D. student studying mechanical engineering. Most of my research work is related to CFD conducted on the AnsysFLuent platform. I've been trying to use Paraview as the post-processing tool, but unfortunately, Paraview always b...Hi, I'm a Ph.D. student studying mechanical engineering. Most of my research work is related to CFD conducted on the AnsysFLuent platform. I've been trying to use Paraview as the post-processing tool, but unfortunately, Paraview always breaks down when I read fluent .case and .dat files. I'm not sure what is the problem. Maybe Paraview doesn't support hex-poly mesh or something else. I am wondering if there is some other way to fix this issue. Looking forward to hearing from your technical staff.https://gitlab.kitware.com/paraview/paraview/-/issues/21854Crash on volume rendering when attempting to use separate color maps (ParaVie...2023-06-01T05:36:57-04:00jgrimeCrash on volume rendering when attempting to use separate color maps (ParaView 5.11.0 under Windows 10 Enterprise)ParaView 5.11.0 crashes when rendering a trivial volume and trying to use a separate color map.
I've attached a simple .nrrd input file (generated in FIJI) to illustrate the issue. Load the .nrrd file, set "Representation" to "Volume", ...ParaView 5.11.0 crashes when rendering a trivial volume and trying to use a separate color map.
I've attached a simple .nrrd input file (generated in FIJI) to illustrate the issue. Load the .nrrd file, set "Representation" to "Volume", then click on the "Use Separate Color Map" button. Boom, crash.
This happens on both my desktop workstation, and my laptop (both running ParaView 5.11.0).
[HyperStack.nrrd](/uploads/63f1fe1ddba48c9eeea0f9989b1c6070/HyperStack.nrrd)https://gitlab.kitware.com/paraview/paraview/-/issues/21856Link Objects: does not work correctly for Render Views2023-06-15T08:11:24-04:00Julien FaustyLink Objects: does not work correctly for Render Views## Problem statement
When using the "Link Manager" to link objects in ParaView, one can link two filters, sources or representations together (i.e. link all their properties) but you cannot do the same thing for "Render Views". The link...## Problem statement
When using the "Link Manager" to link objects in ParaView, one can link two filters, sources or representations together (i.e. link all their properties) but you cannot do the same thing for "Render Views". The link manager shows an `Unknown` entry in properties:
![image](/uploads/3bd9a13fb42d336b20608ebad026f7ad/image.png)
This link between "Render Views" links the cameras of the two views without linking any of their properties.https://gitlab.kitware.com/paraview/paraview/-/issues/22109Provide option to disable automatic extractions when catalyst_execute is called2023-11-08T21:12:52-05:00Alexandre MinotProvide option to disable automatic extractions when catalyst_execute is calledTake the following python code from a possible ParaView Catalyst user script:
```
def catalyst_execute(info):
SaveExtractsUsingCatalystOptions(options)
```
This script will have extractors triggered twice. Once by the `SaveExtracts...Take the following python code from a possible ParaView Catalyst user script:
```
def catalyst_execute(info):
SaveExtractsUsingCatalystOptions(options)
```
This script will have extractors triggered twice. Once by the `SaveExtractsUsingCatalystOptions(options)` call, and once automatically by `internals.ExtractsController->Extract(internals.Extractors);` from `bool vtkCPPythonScriptV2Helper::CatalystExecute()`.
Could an option be provided to disable the second extract?
A bit of background as to why a user might want to manually trigger extractions. I my case, I use a for loop inside `def catalyst_execute` to show / save / hide objects in a single renderView. After my for loop, I get an unwanted write from the `internals.ExtractsController->Extract(internals.Extractors)`.
Many thanks,
Alexandrehttps://gitlab.kitware.com/paraview/paraview/-/issues/22110SaveExtractsUsingCatalystOptions does not replace {timestep:06d} correctly2023-04-23T04:32:34-04:00Alexandre MinotSaveExtractsUsingCatalystOptions does not replace {timestep:06d} correctlyIf I specify a filename using `pNG1.Writer.FileName = 'image_{timestep:06d}.png'` then `SaveExtractsUsingCatalystOptions(options)` replaces {timestep:06d} by 000000 no matter what the time step is.If I specify a filename using `pNG1.Writer.FileName = 'image_{timestep:06d}.png'` then `SaveExtractsUsingCatalystOptions(options)` replaces {timestep:06d} by 000000 no matter what the time step is.https://gitlab.kitware.com/paraview/paraview/-/issues/22111Multiblock inspector showing blocks that are not loaded2023-04-23T04:32:31-04:00W. Alan ScottMultiblock inspector showing blocks that are not loadedThe multiblock inspector is showing and allowing changes to blocks that are not loaded. This is very confusing and needs to be fixed. Here is how to replicate.
* ParaView 5.11.1, builtin server, Mac
* Load bake.e. Turn off all blocks,...The multiblock inspector is showing and allowing changes to blocks that are not loaded. This is very confusing and needs to be fixed. Here is how to replicate.
* ParaView 5.11.1, builtin server, Mac
* Load bake.e. Turn off all blocks, then turn on only block_100 and block_101. Apply.
* View/ Multiblock inspector.
Notice that we are showing all blocks, not just selected ones. This is a bug.5.13 (Summer 2024)https://gitlab.kitware.com/paraview/paraview/-/issues/22112Tracing Multiblock Inspector is not working properly with more than one Rende...2024-03-07T20:23:56-05:00Phil SmithTracing Multiblock Inspector is not working properly with more than one RenderViewWhen using the trace function to produce a python script, if Multiblock Inspector is used it does not reliably reproduce all the steps with more than one RenderView. To reproduce this perform the following:
1. Start Trace
2. Open can.ex2...When using the trace function to produce a python script, if Multiblock Inspector is used it does not reliably reproduce all the steps with more than one RenderView. To reproduce this perform the following:
1. Start Trace
2. Open can.ex2
3. Open the Miltiblock Inspector
4. Turn off all except block one in RenderView1
5. Open another RenderView(RenderView2)
6. Click on the eye next to can.ex2 ( The Multiblock Inspector will show all the blocks in this view)
7. Turn off all except block two for RenderView2
8. Select Extract Blocks within the Multiblock inspector
Everything looks good at this point.
Stop and save the Trace as a script
Reset the session and replay the script you just saved
RenderView2 will be empty at the end of the run. It should show block two. This is a bug.5.13 (Summer 2024)https://gitlab.kitware.com/paraview/paraview/-/issues/22113String sorting in spreadsheet view not working2023-04-12T19:55:04-04:00the_denseString sorting in spreadsheet view not workingHi,
I have a vtk file with lots of line elements. Each line element has a material definition given by a string entry defined as a field. In the spreadsheet view I often sort the elements by certain fields. This works fine for numerical...Hi,
I have a vtk file with lots of line elements. Each line element has a material definition given by a string entry defined as a field. In the spreadsheet view I often sort the elements by certain fields. This works fine for numerical values but doesn’t seem to work for the material entry.
I am using the latest Paraview 5.11.1.
vtk file:
```
# vtk DataFile Version 2.0
test VTK writer
ASCII
DATASET UNSTRUCTURED_GRID
POINTS 4 double
0.0 0.0 0.0
1.0 0.0 0.0
2.0 0.0 0.0
3.0 0.0 0.0
CELLS 3 9
2 0 1
2 1 2
2 2 3
CELL_TYPES 3
3
3
3
CELL_DATA 3
FIELD FieldData 1Names 1 3 string
element2
element1
element3
```https://gitlab.kitware.com/paraview/paraview/-/issues/22114Add TET10 support to the Mesh Quality filter2023-04-12T14:42:58-04:00W. Alan ScottAdd TET10 support to the Mesh Quality filterThere was a discussion a year ago about the Mesh Quality filter. This filter uses the Verdict library. The discussion was here: https://gitlab.kitware.com/paraview/paraview/-/issues/20805. Tet10's are not totally supported in the Ver...There was a discussion a year ago about the Mesh Quality filter. This filter uses the Verdict library. The discussion was here: https://gitlab.kitware.com/paraview/paraview/-/issues/20805. Tet10's are not totally supported in the Verdict library, so we decided to return a Quality of nan. It turns out that many quality values for tet10s ARE calculated in the Verdict library. Please enable these options, and when tet10's are not supported, default to tet4s. Here is how to reproduce the issue:
* 5.11.1, Linux, builtin server
* Sources/ UnstructuredCellTypes. Quadratic Tet. Apply.
* Filters/ Mesh Quality. Tet Quality Measure = Scaled Jacobian.
Everything will be yellow. This is because the Mesh Quality filter is returning nan's for Tet10's (Quadratic Tets).
Here is the thread from the user and Clint Stimpson, the project manager of Verdict explaining what we should be doing:
From user (Kevin M):
Verdict already supports some quality metrics for TET10 without reverting to a TET4 equivalent. “Normalized Inradius” is one of them. Surely there are others? I’m just asking that ParaView interface with the already-available verdict metrics in some meaningful way.
As best I can tell, ParaView does not interface with verdict at all for any TET10 quality measures – everything I check reports as NaN. It would be a much better solution, in my opinion, to interface with Verdict for all available Tet10 metrics and to revert to an equivalent TET4 for those metrics which are not fully supported – supplemented with an appropriate warning. In many cases the TET4 equivalent metric is probably identical to the TET10 metric when midside nodes are centered and unkinked, so there is still a lot of value to be added there.
From Clint:
We have tet10 support with inradius, normalized inradius, mean ratio, distortion, jacobian and volume.
It seems possible to support tet10 for a few more without too much trouble (scaled jacobian, for example).
And then there are several more metrics where I don’t think anyone has considered whether or how they could be implemented for tet10.
Whether they are implemented for tet10 probably depends on the meaning of the metric in relation to the analysis.5.13 (Summer 2024)https://gitlab.kitware.com/paraview/paraview/-/issues/22115Sometimes "Delete" menu item is disabled2023-05-02T09:21:52-04:00Artem BodrinSometimes "Delete" menu item is disabledThere is a non-critical bug in recent versions of ParaView. I've tested positively on 5.9.1 - 5.11.1
After I delete a bunch of sources/filters from Pipeline browser, sometimes "Delete" menu item is disabled in context & main Edit menu. ...There is a non-critical bug in recent versions of ParaView. I've tested positively on 5.9.1 - 5.11.1
After I delete a bunch of sources/filters from Pipeline browser, sometimes "Delete" menu item is disabled in context & main Edit menu.
![delete-disabled](/uploads/a4f58ad1607540b0e6fd79d4fcf12151/delete-disabled.mp4)
I've done some research, and came to conclusion:
`pqActiveObjects::portChanged` is not emitted, when object in Pipeline Browser is right clicked, so `pqDeleteReaction::updateEnabledState` is not called.
As a fix, I've connected `pqActiveObjects::selectionChanged` signal instead of `portChanged` to `pqDeleteReaction::updateEnabledState` and it seems like fixed the bug.
Why `pqActiveObjects::portChanged` is not emitted? My guessing is: during deletion of a bunch, the most object above in pipeline becomes active, cached inside `pqActiveObjects`, and when selection changes, "new" active object tests as equal to "cached" one, so signal is not emitted here:
```c++
void pqActiveObjects::triggerSignals()
{
...
if (this->ActivePipelineProxy.data() != this->CachedPipelineProxy)
{
this->CachedPipelineProxy = this->ActivePipelineProxy.data();
auto port = getPortFromPipelineProxy(this->ActivePipelineProxy);
auto source = port ? port->getSource() : nullptr;
if (source != this->CachedSource)
{
this->CachedSource = source;
Q_EMIT this->sourceChanged(source);
}
if (port != this->CachedPort)
{
this->CachedPort = port;
Q_EMIT this->portChanged(port);
}
....
```
Considering this, and the fact, that last `pqDeleteReaction::updateEnabledState` returned `false` during deletion, we're getting a disabled QAction.https://gitlab.kitware.com/paraview/paraview/-/issues/22116Plugins "Auto Load" feature breaks depending on plugin file name2023-04-23T04:32:26-04:00Tiffany ChhimPlugins "Auto Load" feature breaks depending on plugin file nameLoading a plugin via its `.dll` or `.so` file in the Plugin Manager prevents the "**Auto Load**" feature from working properly depending on the file name.
For example, for a plugin named "**MyPlugin**", when the .dll/.so file is named `...Loading a plugin via its `.dll` or `.so` file in the Plugin Manager prevents the "**Auto Load**" feature from working properly depending on the file name.
For example, for a plugin named "**MyPlugin**", when the .dll/.so file is named `MyPluginSomething.dll/.so`, the following will occur:
- Open ParaView and load `MyPluginSomething.dll/.so`
- Check "**Auto Load**"
- Close ParaView
- Reopen ParaView -> the plugin is loaded but the "**Auto Load**" checkbox is unchecked
- Close ParaView
- Reopen ParaView -> the plugin is not loaded anymore and is named "**MyPluginSomething**"
Naming the files as `MyPlugin.Something.dll/.so` does not produce this issue.
Tested with ParaView 5.9 and 5.11 on Linux and Windows.https://gitlab.kitware.com/paraview/paraview/-/issues/22119Delete Downstream Pipeline fails certain scenarios2023-05-02T09:16:48-04:00Yohann Bearzi (Kitware)Delete Downstream Pipeline fails certain scenarios**Scenario 1:**
On pipelines with filters outputing mulitple datasets, `Delete Downstream Pipeline` is grayed out.
Faulty behavior:
![image](/uploads/509bf36a3b0cb285d2056de358c27904/image.png)
Correct behavior:
![image](/uploads/c0...**Scenario 1:**
On pipelines with filters outputing mulitple datasets, `Delete Downstream Pipeline` is grayed out.
Faulty behavior:
![image](/uploads/509bf36a3b0cb285d2056de358c27904/image.png)
Correct behavior:
![image](/uploads/c035d609488b514bc1e4c1b49165f91b/image.png)
**Scenario 2:**
A pipeline with a source that is needed for some unselected filters:
![image](/uploads/fb557c978b9632974460ebbf177e7d8d/image.png)
In this example, deleting deletes everything (including `Contour1`).
**Scenario 3:**
A selected subtree cannot be deleted when it should:
![image](/uploads/2e15d5692c483fad48d4bcd0c6a41a15/image.png)https://gitlab.kitware.com/paraview/paraview/-/issues/22120Rotational extrusion filter throws an error when AMR data is used as a source2023-04-25T16:58:00-04:00Phil SmithRotational extrusion filter throws an error when AMR data is used as a sourceTo replicate:
Open Sources->AMR GaussianPulse Source; Apply
Filters-> clean to grid
Perform a slice on the data
Apply the Rotational extrusion filter
At this point an error pops up saying:
ERROR: In vtkRotationalExtrusionFilter.cxx...To replicate:
Open Sources->AMR GaussianPulse Source; Apply
Filters-> clean to grid
Perform a slice on the data
Apply the Rotational extrusion filter
At this point an error pops up saying:
ERROR: In vtkRotationalExtrusionFilter.cxx, line 84
vtkRotationalExtrusionFilter (0xd52f010): No data to extrude!
However the data looks fine. I have attached a picture
If the same steps are performed on an Exodus file(can.ex2), the result looks the same, however, the error does not appear.
![image](/uploads/dabe6f4920b418788a2dc9ee60d701c0/image.png)5.13 (Summer 2024)https://gitlab.kitware.com/paraview/paraview/-/issues/22121vtkSIPythonSourceProxy: redirect exception text to logging2023-04-23T16:47:18-04:00Ben BoeckelvtkSIPythonSourceProxy: redirect exception text to loggingWhen a Python proxy fails to be created, we use `PyErr_Print()` (in `SafePyErrorPrintAndClear`) which gets lost in most UI environments. Instead, get the text and put it into the normal logging pipeline.
Discourse: https://discourse.par...When a Python proxy fails to be created, we use `PyErr_Print()` (in `SafePyErrorPrintAndClear`) which gets lost in most UI environments. Instead, get the text and put it into the normal logging pipeline.
Discourse: https://discourse.paraview.org/t/failed-to-create-object-error/11702
Cc: @cory.quammenhttps://gitlab.kitware.com/paraview/paraview/-/issues/22122Exporting Custom Filter from Paraview Gui to Custom Application2023-05-11T04:04:31-04:00Muhammad Saad AtiqueExporting Custom Filter from Paraview Gui to Custom ApplicationI have created a custom filter in Paraview's GUI and then exported it as an XML file. Now if I am creating a custom application, can I have that custom filter permanently added to my custom application?I have created a custom filter in Paraview's GUI and then exported it as an XML file. Now if I am creating a custom application, can I have that custom filter permanently added to my custom application?https://gitlab.kitware.com/paraview/paraview/-/issues/22123Pick Center does not work after a Custom Filter2023-10-31T08:43:34-04:00Tiffany ChhimPick Center does not work after a Custom FilterThe "**Pick Center**" action does not seem to work on the **output of a Custom Filter**.
The center is **set to the origin instead of landing on the surface of the mesh**.
Steps to reproduce:
- Create a simple Custom Filter with a Wav...The "**Pick Center**" action does not seem to work on the **output of a Custom Filter**.
The center is **set to the origin instead of landing on the surface of the mesh**.
Steps to reproduce:
- Create a simple Custom Filter with a Wavelet
- Generate the newly created Custom Filter to create a Wavelet
- Apply
- Click on the Pick Center toolbar icon
- Click on the mesh
![BrokenPickCenterAfterCustomFilter](/uploads/4be092e2bd6a2886e5bb82fdc67b31f3/BrokenPickCenterAfterCustomFilter.gif)https://gitlab.kitware.com/paraview/paraview/-/issues/22125vtkSMStateVersionController missing animated property update2023-05-02T11:08:08-04:00Mathieu Westphal (Kitware)vtkSMStateVersionController missing animated property updateAs discussed here: https://gitlab.kitware.com/paraview/paraview/-/issues/21782#note_1354051, vtkSMStateVersionController (and _backwards_compatibility_helper.py for that matter) do not take care of update animated properties names, hence...As discussed here: https://gitlab.kitware.com/paraview/paraview/-/issues/21782#note_1354051, vtkSMStateVersionController (and _backwards_compatibility_helper.py for that matter) do not take care of update animated properties names, hence making older state files with animated properties unusable in newer versions of ParaView.
@cory.quammen @thomas.gallandhttps://gitlab.kitware.com/paraview/paraview/-/issues/22126Using a programable filter after a scalar clip will not return min/max in a t...2024-03-07T20:23:56-05:00Phil SmithUsing a programable filter after a scalar clip will not return min/max in a table**To reproduce this error perform the following:**
**Manual reproduction:**
- Open spcta_a.0*; Apply
- Select all cell arrays; Apply
- Perform a clip
- Select Scalar
- Select Temperature (ev)
- Select reset using current data values
-...**To reproduce this error perform the following:**
**Manual reproduction:**
- Open spcta_a.0*; Apply
- Select all cell arrays; Apply
- Perform a clip
- Select Scalar
- Select Temperature (ev)
- Select reset using current data values
- Unselect Invert; Apply
- Add a programmable filter:
- Set Output Data Set Type to vtkTable
- Select Copy Arrays
- within the script window use the following:
```
from paraview.vtk.numpy_interface import algorithms as np
input0 = inputs[0]
array = input0.CellData['Mass (g) - 2']
val = np.mean(array)
if type(val).__name__ == "VTKNoneArray":
val = -100
output.RowData.append(val, 'T - 1 (mean)')
val = np.std(array)
if type(val).__name__ == "VTKNoneArray":
val = -100
output.RowData.append(val, 'T - 1 (std)')
val = np.min(array)
if type(val).__name__ == "VTKNoneArray":
val = -100
output.RowData.append(val, 'T - 1 (min)')
val = np.max(array)
if type(val).__name__ == "VTKNoneArray":
val = -100
output.RowData.append(val, 'T - 1 (max)')`
```
- Apply
**I get this error:**
```
Traceback (most recent call last):
File "<string>", line 22, in <module>
File "<string>", line 15, in RequestData
File "/Snip/lib/python3.9/site-packages/vtkmodules/numpy_interface/algorithms.py", line 399, in min
return _global_func(MinImpl(), array, axis, controller)
File "/Snip/lib/python3.9/site-packages/vtkmodules/numpy_interface/algorithms.py", line 184, in _global_func
res = impl.serial_composite(array, axis)
File "/Snip/lib/python3.9/site-packages/vtkmodules/numpy_interface/algorithms.py", line 387, in serial_composite
res = _apply_func2(algs.min, array, (axis,))
File "/Snip/lib/python3.9/site-packages/vtkmodules/numpy_interface/algorithms.py", line 48, in _apply_func2
res.append(func(a, *args))
File "/Snip/lib/python3.9/site-packages/vtkmodules/numpy_interface/internal_algorithms.py", line 397, in min
ans = numpy.min(narray, axis)
File "<__array_function__ internals>", line 5, in amin
File "/Snip/lib/python3.9/site-packages/numpy/core/fromnumeric.py", line 2879, in amin
return _wrapreduction(a, np.minimum, 'min', axis, None, out,
File "/Snip/lib/python3.9/site-packages/numpy/core/fromnumeric.py", line 84, in _wrapreduction
return reduction(axis=axis, out=out, **passkwargs)
File "/Snip/lib/python3.9/site-packages/numpy/core/_methods.py", line 44, in _amin
return umr_minimum(a, axis, None, out, keepdims, initial, where)
ValueError: zero-size array to reduction operation minimum which has no identity
```
**As stated above, I have copied the arrays from the clip to the programable filter, but the programable filter does not show the arrays that are in the clip, or a min and max that should be derived from the clip by using this filter. It does show a mean and an std value, so it should show a min and a max. It shouldn't through an error eather. This is wrong.**
In each of the following scripts I have placed 'snip' for the path, so they will have to be modified to be used.
**Here is another way to reproduce an error(Slightly different, but the same idea) using a script:
Run this script(no_min_after_scalarclip). : [no_min_after_scalarclip.py](/uploads/b31330bfc8e98ae9ee76f62b42069bc7/no_min_after_scalarclip.py)
It will not show a T-1 (max) 0r a T-1(min), but will produce these errors:**
```
ERROR: In vtkExecutive.cxx, line 741
vtkCompositeDataPipeline (0x2919f780): Algorithm vtkPVGeometryFilter (0x2917fbe0) returned failure for request: vtkInformation (0x291a0c20)
Debug: Off
Modified Time: 2830306
Reference Count: 1
Registered Events: (none)
Request: REQUEST_DATA_OBJECT
FROM_OUTPUT_PORT: 0
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
ERROR: In vtkExecutive.cxx, line 741
vtkCompositeDataPipeline (0x28e04e20): Algorithm vtkPVGeometryFilter (0x28dec3e0) returned failure for request: vtkInformation (0x28e062c0)
Debug: Off
Modified Time: 2830481
Reference Count: 1
Registered Events: (none)
Request: REQUEST_DATA_OBJECT
FROM_OUTPUT_PORT: 0
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
Traceback (most recent call last):
File "<string>", line 22, in <module>
File "<string>", line 15, in RequestData
File "/Snip/lib/python3.9/site-packages/vtkmodules/numpy_interface/algorithms.py", line 399, in min
return _global_func(MinImpl(), array, axis, controller)
File "/Snip/lib/python3.9/site-packages/vtkmodules/numpy_interface/algorithms.py", line 184, in _global_func
res = impl.serial_composite(array, axis)
File "/Snip/lib/python3.9/site-packages/vtkmodules/numpy_interface/algorithms.py", line 387, in serial_composite
res = _apply_func2(algs.min, array, (axis,))
File "/Snip/lib/python3.9/site-packages/vtkmodules/numpy_interface/algorithms.py", line 48, in _apply_func2
res.append(func(a, *args))
File "/Snip/lib/python3.9/site-packages/vtkmodules/numpy_interface/internal_algorithms.py", line 397, in min
ans = numpy.min(narray, axis)
File "<__array_function__ internals>", line 5, in amin
File "/Snip/lib/python3.9/site-packages/numpy/core/fromnumeric.py", line 2879, in amin
return _wrapreduction(a, np.minimum, 'min', axis, None, out,
File "/Snip/lib/python3.9/site-packages/numpy/core/fromnumeric.py", line 84, in _wrapreduction
return reduction(axis=axis, out=out, **passkwargs)
File "/Snip/lib/python3.9/site-packages/numpy/core/_methods.py", line 44, in _amin
return umr_minimum(a, axis, None, out, keepdims, initial, where)
ValueError: zero-size array to reduction operation minimum which has no identity
**However when this script is run: [min_after_planarclip.py](/uploads/da0453a970dba5188d2cab4f63a34774/min_after_planarclip.py), it will produce the min and the max, but will give theses errors:**
ERROR: In vtkExecutive.cxx, line 741
vtkCompositeDataPipeline (0x24a7f3d0): Algorithm vtkPVGeometryFilter (0x24a5f830) returned failure for request: vtkInformation (0x24a80870)
Debug: Off
Modified Time: 2532788
Reference Count: 1
Registered Events: (none)
Request: REQUEST_DATA_OBJECT
FROM_OUTPUT_PORT: 0
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
ERROR: In vtkExecutive.cxx, line 741
vtkCompositeDataPipeline (0x249fec80): Algorithm vtkPVGeometryFilter (0x249e5fe0) returned failure for request: vtkInformation (0x24a00120)
Debug: Off
Modified Time: 2532963
Reference Count: 1
Registered Events: (none)
Request: REQUEST_DATA_OBJECT
FROM_OUTPUT_PORT: 0
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
```
**This is still wrong, because it should not show theses errors at all.**
**I modified the pipeline for each of the examples above to include the Redistribute Data filter before the programable filter as a work-around. This should not have to be done.**5.13 (Summer 2024)https://gitlab.kitware.com/paraview/paraview/-/issues/22128Colormap opacity enabled after switch to categorical and back2024-03-07T20:23:57-05:00Aron HelserColormap opacity enabled after switch to categorical and backOn current PV master, 5/3/2023, with the new colormapping UI reorganization, there is an unexpected behavior enabling opacity mapping.
To reproduce:
* load Source .. Data Objects .. HyperTreeGrid (or any dataset with something that can b...On current PV master, 5/3/2023, with the new colormapping UI reorganization, there is an unexpected behavior enabling opacity mapping.
To reproduce:
* load Source .. Data Objects .. HyperTreeGrid (or any dataset with something that can be a categorical color map)
* color by `vtkEdgeFlags`
* show the Color Map Editor. Notice "Enable Opacity Mapping for Surfaces" is disabled
* enable "Interpret Values as Categories". Immediately disable.
* "Enable Opacity Mapping for Surfaces" is now enabled, and my surface has disappeared.
Note that if I now explicitly disable "Enable Opacity Mapping for Surfaces" at this point, it sticks - I can switch to categorical and back without a problem. Maybe this points to default value handling somehow?
I also see that when "Interpret Values as Categories" is on, an "Enable Opacity Mapping for Surfaces" option is present and enabled by default.
CC @jaswant.panchumarti @cory.quammen5.13 (Summer 2024)