[Paraview] Programmable Filter - Multiple Inputs - Crash
Moreland, Kenneth
kmorel at sandia.gov
Tue Apr 25 11:12:19 EDT 2017
Gabriel,
I was using scalar data, but I just tried again with vectors of three components, and everything still worked fine.
Your data is not that large, so I doubt you are running out. It could be because you are setting point data to an array that is the wrong size. That is generally a pretty bad idea. I tried that, too, and it worked OK for me. But I imagine that there could be filters or other components that could crash with a buffer overrun.
My first suggestion would be trying the latest version of ParaView to see if that fixes the problem. If it doesn’t, then I would alter your script to make sure you never add a PointData field to an output when the size does not match the number of points.
-Ken
From: Gabriel Nahas [mailto:gabrielrezendenahas at gmail.com]
Sent: Tuesday, April 25, 2017 8:58 AM
To: Moreland, Kenneth <kmorel at sandia.gov>
Cc: paraview at paraview.org
Subject: [EXTERNAL] Re: [Paraview] Programmable Filter - Multiple Inputs - Crash
Ken,
Thank you very much for trying.
I am using version 4.3 of ParaView, but I also tried my code in the version 5.1 and it is also crashing.
The first input data is a PointData vector with three components (x,y,z) and around 41,000 points. The second input are the normal vectors of my geometry that consist in around 12,000 points. To get the Normal Vectors, I used Extract Surface > Generate Surface Normals > Cell Data to Pointa Data.
[https://mailfoogae.appspot.com/t?sender=aZ2FicmllbHJlemVuZGVuYWhhc0BnbWFpbC5jb20%3D&type=zerocontent&guid=60863486-e7b0-4ecd-8704-e5c1e32284a5]ᐧ
On 25 April 2017 at 16:48, Moreland, Kenneth <kmorel at sandia.gov<mailto:kmorel at sandia.gov>> wrote:
Gabriel,
I tried loading in your script into ParaView 5.3 and was unable to replicate your crash even when the number of points did not match or I used fields that did not exist. Are you using the most recent version of ParaView? If so, can you tell us more about your data?
-Ken
From: ParaView [mailto:paraview-bounces at paraview.org<mailto:paraview-bounces at paraview.org>] On Behalf Of Gabriel Nahas
Sent: Tuesday, April 25, 2017 8:30 AM
To: paraview at paraview.org<mailto:paraview at paraview.org>
Subject: [EXTERNAL] [Paraview] Programmable Filter - Multiple Inputs - Crash
Dear all,
I am trying to use a programmable filter that takes two other filters from different blocks as inputs. When I get each data as input (and output) separately my filter works, but when I try with both filters as input and output at the same time it crashes. Does anyone know what might be the cause?
Here the short code of the script I am using that crashes.
a = inputs[0].PointData["a"]
b = inputs[1].PointData["b"]
output.PointData.append(a, "a")
output.PointData.append(b, "b")
PS: For information, I am trying doing a script that calculates wall shear stress. One of the input is the velocity gradient and the other one the normal vectors.
Best regards,
Gabriel Nahas
--
[photo]
Gabriel Nahas
Master Student at École Polytechnique
+33 6 38 28 29 92<tel:+33+6+38+28+29+92> | Skype: gabrielrezendenahas<https://webapp.wisestamp.com/>
[https://s3.amazonaws.com/images.wisestamp.com/icons_32/facebook.png]<http://www.facebook.com/gabriel.nahas.9> [https://s3.amazonaws.com/images.wisestamp.com/icons_32/linkedin.png] <http://in.linkedin.com/in/gabriel-nahas-2566b892>
[https://mailfoogae.appspot.com/t?sender=aZ2FicmllbHJlemVuZGVuYWhhc0BnbWFpbC5jb20%3D&type=zerocontent&guid=9905502d-9c30-455a-8535-196b6961a18b]ᐧ
--
[photo]
Gabriel Nahas
Master Student at École Polytechnique
+33 6 38 28 29 92<tel:+33+6+38+28+29+92> | Skype: gabrielrezendenahas<https://webapp.wisestamp.com/>
[https://s3.amazonaws.com/images.wisestamp.com/icons_32/facebook.png]<http://www.facebook.com/gabriel.nahas.9> [https://s3.amazonaws.com/images.wisestamp.com/icons_32/linkedin.png] <http://in.linkedin.com/in/gabriel-nahas-2566b892>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170425/cf19338c/attachment.html>
More information about the ParaView
mailing list