Re: [Paraview] PV 3.6.2 and VisIt Plugin: crash when loading state with Tecplot files

2010-01-27 Thread Richard GRENON

Hi Burlen.

Thank you for this answer.
Working with state files (as we do with layout files with the Tecplot 
software) is essential when you have big pipelines. Imagine you spend 
one hour to build a big CFD pipeline... and you have to rebuild it each 
time you want to analyze new data! Really, it would be helpful if you 
could fix this problem in a future release. And also, it would be fine 
if the state file could save what arrays are selected in the Tecplot 
Reader (no array is selected when loading state, but is it a PV problem 
or a VisIt problem ?).


The work around with the actual release is to use the Group datasets 
filter to build a new dataset from the Tecplot readers. At least, it 
works with single zone Tecplot files, but I will make other tests with 
multi-zone Tecplot files.


PS: I discovered another bug. PV crashes when loading state (with work 
around) referencing Tecplot files if the Tecplot files are not found!


Best regards.

burlen wrote:

Hi Richard and Dave,

I think that the way the VisIt plugin currently communicates 
information between client and server is not going to work with state.


The way it is now the plugin repeatedly sends variable length vectors 
of array,block,material ids,, etc one array for each mesh. Each of 
these might have a different size depending on the user's selections. 
In order to work around the fact that PV sm vector props don't support 
variable length vectors it also expects the array of mesh ids to be 
sent first, from this it sizes the other arrays to fit what will be 
incoming.


One solution would be to serialize the users selections in a single 
string, using sm string vector property to send server side. That 
would work with state. Otherwise I'm afraid your going to have to do 
some heavy sm programming.


I regret the way I did that, if it's helpful I'll volunteer to fix it.

Burlen





--
Richard GRENON
ONERA
Departement d'Aerodynamique Appliquee - DAAP/ACI
8 rue des Vertugadins
92190 MEUDON - FRANCE
phone : +33 1 46 73 42 17
fax   : +33 1 46 73 41 46
mailto:richard.gre...@onera.fr
http://www.onera.fr

___
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

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] PV 3.6.2 and VisIt Plugin: crash when loading state with Tecplot files

2010-01-27 Thread Richard GRENON

Hi Dave and Burlen

Another Test loading state for a Tecplot file that contains two zones works!

- Read two zones Tecplot File
- Extract Block 1
 | Extract subset 1 from Block 1
   - Color Subset 1
- Extract Block 2
 | Extract subset 2 from Block 2
   - Color Subset 2

Another Test loading state for a Tecplot file that contains only one 
zone crashes PV.

- Read single zone Tecplot File
- Extract subset
- Color Subset

A final Test loading state for a Tecplot file that contains only one 
zone and using Group datasets filter works!

- Read single zone Tecplot File
- Group datasets
- Extract subset
- Color Subset

So the problem happens only when reading single zone Tecplot files. The 
work around is always to use the Group datasets filter after reading, 
even if there is only one file! No problem occurs when reading a 
multi-zone Tecplot file.


Best regards.

Richard GRENON wrote:

Hi Burlen.

Thank you for this answer.
Working with state files (as we do with layout files with the Tecplot 
software) is essential when you have big pipelines. Imagine you spend 
one hour to build a big CFD pipeline... and you have to rebuild it 
each time you want to analyze new data! Really, it would be helpful if 
you could fix this problem in a future release. And also, it would be 
fine if the state file could save what arrays are selected in the 
Tecplot Reader (no array is selected when loading state, but is it a 
PV problem or a VisIt problem ?).


The work around with the actual release is to use the Group datasets 
filter to build a new dataset from the Tecplot readers. At least, it 
works with single zone Tecplot files, but I will make other tests with 
multi-zone Tecplot files.


PS: I discovered another bug. PV crashes when loading state (with work 
around) referencing Tecplot files if the Tecplot files are not found!


Best regards.




--
Richard GRENON
ONERA
Departement d'Aerodynamique Appliquee - DAAP/ACI
8 rue des Vertugadins
92190 MEUDON - FRANCE
phone : +33 1 46 73 42 17
fax   : +33 1 46 73 41 46
mailto:richard.gre...@onera.fr
http://www.onera.fr

___
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

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


[Paraview] PV 3.6.2 and VisIt Plugin: crash when loading state with Tecplot files

2010-01-26 Thread Richard GRENON

Hello.

PV 3.6.2 crashes on Linux when loading a state file (*.pvsm) that 
references Tecplot files.


Here is my test:

-Starting PV 3.6.2 (Linux), I load the VisIt plugin.
-I open two 3D IJK ordered Tecplot files (*.tp). No problem (PV freezes 
while loading the files, but I can continue after the files are loaded).
-I extract the J=1 surface for each file, I group the two extracted 
surface and I color this new dataset with one variable.

-I save the state of my work in a *.pvsm file.
-I disconnect to clear all data.
-I try to load the saved pvsm file. PV freezes as it does while opening 
Tecplot files, then it crashes!
The same crash happens when I try to load the state file after 
restarting PV and reloading the VisIt plugin.


Has anyone an idea?

Best regards.

--
Richard GRENON
ONERA
Departement d'Aerodynamique Appliquee - DAAP/ACI
8 rue des Vertugadins
92190 MEUDON - FRANCE
phone : +33 1 46 73 42 17
fax   : +33 1 46 73 41 46
mailto:richard.gre...@onera.fr
http://www.onera.fr

___
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

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


[Paraview] PV 3.6.2 and VisIt Plugin: crash when loading state with Tecplot files

2010-01-26 Thread Richard GRENON

Hello.

I have made an additional test: grouping all tecplot files in a same 
dataset before any other operation allows to use the saved state file.


Test 1: the simple pipeline that cannot be used as saved state:
- open Tecplot File 1
   |
   extract subset 1
- open Tecplot File 2
   |
   extract subset 2
- group subset 1 and subset 2 in new dataset 1
- coloring the dataset 1

Saving state of this pipeline, loading the pvsm file crashes PV.

Test 2: the more complex pipeline that can be used as a saved state:
- Open Tecplot File 1
- Open Tecplot File 2
- group loaded Tecplot Files 1 and 2 in new dataset 1
  |
  extract block 1 from dataset 1 (content of Tecplot file 1)
  extract subset 1 from bloc 1
  |
  extract block 2 from dataset 1 (content of Tecplot file 2)
  extract subset 2 from block 2
- group subset 1 and subset 2 in dataset 2
- coloring the dataset 2

Saving state of this pipeline, the pvsm file can be used.
Note: After loading the pvsm file, you must go on the reader of each 
tecplot file, select the arrays (unselected by default), then click apply.


Of course, I can attach the two corresponding pvsm files if it may help.

Best regards

--
Richard GRENON
ONERA
Departement d'Aerodynamique Appliquee - DAAP/ACI
8 rue des Vertugadins
92190 MEUDON - FRANCE
phone : +33 1 46 73 42 17
fax   : +33 1 46 73 41 46
mailto:richard.gre...@onera.fr
http://www.onera.fr

___
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

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] PV 3.6.2 and VisIt Plugin: crash when loading state with Tecplot files

2010-01-26 Thread Dave Partyka
Hi Richard, please do. I will try running your steps with a debug build and
see if I can track down the crash.

Thanks for tracking this down!

On Tue, Jan 26, 2010 at 7:25 AM, Richard GRENON richard.gre...@onera.frwrote:

 Hello.

 I have made an additional test: grouping all tecplot files in a same
 dataset before any other operation allows to use the saved state file.

 Test 1: the simple pipeline that cannot be used as saved state:
 - open Tecplot File 1
   |
   extract subset 1
 - open Tecplot File 2
   |
   extract subset 2
 - group subset 1 and subset 2 in new dataset 1
 - coloring the dataset 1

 Saving state of this pipeline, loading the pvsm file crashes PV.

 Test 2: the more complex pipeline that can be used as a saved state:
 - Open Tecplot File 1
 - Open Tecplot File 2
 - group loaded Tecplot Files 1 and 2 in new dataset 1
  |
  extract block 1 from dataset 1 (content of Tecplot file 1)
  extract subset 1 from bloc 1
  |
  extract block 2 from dataset 1 (content of Tecplot file 2)
  extract subset 2 from block 2
 - group subset 1 and subset 2 in dataset 2
 - coloring the dataset 2

 Saving state of this pipeline, the pvsm file can be used.
 Note: After loading the pvsm file, you must go on the reader of each
 tecplot file, select the arrays (unselected by default), then click apply.

 Of course, I can attach the two corresponding pvsm files if it may help.


 Best regards

 --
 Richard GRENON
 ONERA
 Departement d'Aerodynamique Appliquee - DAAP/ACI
 8 rue des Vertugadins
 92190 MEUDON - FRANCE
 phone : +33 1 46 73 42 17
 fax   : +33 1 46 73 41 46
 mailto:richard.gre...@onera.fr
 http://www.onera.fr

 ___
 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

 Follow this link to subscribe/unsubscribe:
 http://www.paraview.org/mailman/listinfo/paraview

___
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

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] PV 3.6.2 and VisIt Plugin: crash when loading state with Tecplot files

2010-01-26 Thread Richard GRENON

Hi Dave.

I attached a tar gzipped file that contains the two pvsm files:
essaipv01.pvsm : state file of Test 1, crashes PV.
essaipv02.pvsm : state file of Test 2, OK.

I can't send my two formatted Tecplot files (too big) but I think you 
can easily rebuild them with any data from the headers below.

Each file is a formatted Tecplot file with name ending with .tp
There is only one zone (block) per file.
Each zone is a 3D IJK ordered grid with coordinates x,y,z and some other 
scalar arrays (pressure, temperature, etc...)
Following are the file headers where you will find the dimensions of the 
grids and the variables:


- File 1:
TITLE = E_Fld0001_RAPRO2_F06_M020
VARIABLES = x y z vx vy vz M p Pi rok viscrapp 
ro tsta tgen

ZONE T=Window(s) : Dom0001,  I=181,  J=9,  K=97, F=BLOCK

-File 2:
TITLE = E_Fld0002_RAPRO2_F06_M020
VARIABLES = x y z vx vy vz M p Pi rok viscrapp 
ro tsta tgen

ZONE T=Window(s) : Dom0002,  I=61,  J=9,  K=25, F=BLOCK

Best regards,

Richard

Dave Partyka wrote:
Hi Richard, please do. I will try running your steps with a debug 
build and see if I can track down the crash.


Thanks for tracking this down!



--
Richard GRENON
ONERA
Departement d'Aerodynamique Appliquee - DAAP/ACI
8 rue des Vertugadins
92190 MEUDON - FRANCE
phone : +33 1 46 73 42 17
fax   : +33 1 46 73 41 46
mailto:richard.gre...@onera.fr
http://www.onera.fr



pv362test.tar.gz
Description: GNU Zip compressed data
___
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

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] PV 3.6.2 and VisIt Plugin: crash when loading state with Tecplot files

2010-01-26 Thread burlen

Hi Richard and Dave,

I think that the way the VisIt plugin currently communicates information 
between client and server is not going to work with state.


The way it is now the plugin repeatedly sends variable length vectors of 
array,block,material ids,, etc one array for each mesh. Each of these 
might have a different size depending on the user's selections. In order 
to work around the fact that PV sm vector props don't support variable 
length vectors it also expects the array of mesh ids to be sent first, 
from this it sizes the other arrays to fit what will be incoming.


One solution would be to serialize the users selections in a single 
string, using sm string vector property to send server side. That would 
work with state. Otherwise I'm afraid your going to have to do some 
heavy sm programming.


I regret the way I did that, if it's helpful I'll volunteer to fix it.

Burlen


Dave Partyka wrote:
Hi Richard, please do. I will try running your steps with a debug 
build and see if I can track down the crash.


Thanks for tracking this down!

On Tue, Jan 26, 2010 at 7:25 AM, Richard GRENON 
richard.gre...@onera.fr mailto:richard.gre...@onera.fr wrote:


Hello.

I have made an additional test: grouping all tecplot files in a
same dataset before any other operation allows to use the saved
state file.

Test 1: the simple pipeline that cannot be used as saved state:
- open Tecplot File 1
  |
  extract subset 1
- open Tecplot File 2
  |
  extract subset 2
- group subset 1 and subset 2 in new dataset 1
- coloring the dataset 1

Saving state of this pipeline, loading the pvsm file crashes PV.

Test 2: the more complex pipeline that can be used as a saved state:
- Open Tecplot File 1
- Open Tecplot File 2
- group loaded Tecplot Files 1 and 2 in new dataset 1
 |
 extract block 1 from dataset 1 (content of Tecplot file 1)
 extract subset 1 from bloc 1
 |
 extract block 2 from dataset 1 (content of Tecplot file 2)
 extract subset 2 from block 2
- group subset 1 and subset 2 in dataset 2
- coloring the dataset 2

Saving state of this pipeline, the pvsm file can be used.
Note: After loading the pvsm file, you must go on the reader of
each tecplot file, select the arrays (unselected by default), then
click apply.

Of course, I can attach the two corresponding pvsm files if it may
help.


Best regards

-- 
Richard GRENON

ONERA
Departement d'Aerodynamique Appliquee - DAAP/ACI
8 rue des Vertugadins
92190 MEUDON - FRANCE
phone : +33 1 46 73 42 17
fax   : +33 1 46 73 41 46
mailto:richard.gre...@onera.fr mailto:richard.gre...@onera.fr
http://www.onera.fr

___
Powered by www.kitware.com http://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

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview




___
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

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview
  


___
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

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview