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:gabrielrezendena...@gmail.com]
Sent: Tuesday, April 25, 2017 8:58 AM
To: Moreland, Kenneth <kmo...@sandia.gov>
Cc: paraview@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 
<kmo...@sandia.gov<mailto:kmo...@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-boun...@paraview.org<mailto:paraview-boun...@paraview.org>] On 
Behalf Of Gabriel Nahas
Sent: Tuesday, April 25, 2017 8:30 AM
To: paraview@paraview.org<mailto:paraview@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>


_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview

Reply via email to