[Paraview] CVS head crashes on Leopard at vtkCarbonRenderWindow
Hi, I updated and built my copy of cvs head for the first time this year. Unfortunately, it gets immediate crash after opening the main window at vtkCarbonRenderWindow::UpdateGLRegion(). Here's a part of gdb backtrace output: Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_PROTECTION_FAILURE at address: 0x0166 0x9710968c in objc_msgSend () (gdb) backtrace #0 0x9710968c in objc_msgSend () #1 0x9186b256 in CFGetTypeID () #2 0x95cae3ad in CGSCopyRegion () #3 0x9539be15 in aglSetIntegerWindowRef () #4 0x95399398 in aglSetInteger () #5 0x0446d8ad in vtkCarbonRenderWindow::UpdateGLRegion () #6 0x0446e6a0 in vtkCarbonRenderWindow::CreateAWindow () #7 0x0446d4a4 in vtkCarbonRenderWindow::WindowInitialize () #8 0x0446b7f5 in vtkCarbonRenderWindow::Start () #9 0x043ae10b in vtkRenderWindow::DoStereoRender () #10 0x043ae2d9 in vtkRenderWindow::DoFDRender () However, if I revert ParaView3/VTK/Rendering/vtkCarbonRenderWindow.cxx from the current revision of 1.75 to revision 1.74, I get a compiler waring about a deprecated API but the produced binary runs fine. So I'm wondering if the compiler warning fix revision 1.75 date: 2009-01-13 03:06:53 +0900; author: seanmcbride; state: Exp; lines: +10 -1; commitid: rPzETQM9lDA3Mbyt; COMP: fixed compiler warning related to bug 4001, by conditionally using newer n on-deprecated API of vtkCarbonRenderWindow.cxx is really correct. Am I the only one who is having this problem? I'm using an Intel Mac Pro, OS X 10.5.6, gcc 4.0.1 build 5490, Xcode 3.1.2. Thanks, Takuya OSHIMA, Ph.D. Faculty of Engineering, Niigata University 8050 Ikarashi-Ninocho, Nishi-ku, Niigata, 950-2181, JAPAN ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] how to control paraview from python
You cannot make an external python interpretor or pvpython control an separate paraview process. To be able to affect ParaView GUI through python you have to use the python shell provided by the GUI. Utkarsh On Wed, Jan 14, 2009 at 7:24 PM, Jorge Mario Mazo jmm.mecan...@gmail.com wrote: Hi there I have a python script that does a lot of stuff to some vrml files, it works perfect if its ran from the paraview python shell, but when I run it from outside paraview, the script runs, but it does not visualizes anything. I dont how to tell python to use the open paraview. I also tried to create a server pvserver, connect my script to that server and then I opened paraview and connected it to that server but I keep getting The startup command failed to start ... check your PATH and file permissions what should my PATH have? thanks in advance ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] python scripting - import cvs file
Where are you typing the python script: the python shell or the Script parameter for the Programmable Filter/Programmable Source? On Wed, Jan 14, 2009 at 7:17 PM, Pierre-Olivier Dallaire pierre-olivier.dalla...@videotron.ca wrote: Good evening, I'm trying to import a text file in order to superimpose the results with some OpenFOAM results. I'm using a python script to read the text file; however, the basic script provided at http://cmake.org/Wiki/Here_are_some_more_examples_of_simple_ParaView_3_python_filters fails at pdo = self.GetOutput() : Traceback (most recent call last): File paraview_cvs.py, line 21, in module pdo = self.GetOutput() NameError: name 'self' is not defined Not sure what is wrong - any idea ? Best regards, PO ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] GUIToolbar in python? or XML to python
Hi there is there a way to create a GUIToolbar icon in python * Not really. Python cannot be used to control/modify the GUI components per say. or is there to write a XML view, that trows the data parameters to a python script, instead of c++ classes, pretty much like the helix.xml plugin example. * Well, in your view plugin, you can create a new vtkSMViewProxy subclass that passes parameters to an internal python interpretor. Otherwise however, there's no direct way of doing this. btw how can I hide the ...from the helix source plugin!!! * To hide any property use the show hint as under: Proxy ... ... Hints Property name=Script show=0 / !-- this will not show the Script property in the GUI -- /Hints /Proxy Utkarsh ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] python scripting - import cvs file
python shell, I'm using pvpython script.py On 15-Jan-09, at 9:20 AM, Utkarsh Ayachit wrote: Where are you typing the python script: the python shell or the Script parameter for the Programmable Filter/Programmable Source? On Wed, Jan 14, 2009 at 7:17 PM, Pierre-Olivier Dallaire pierre-olivier.dalla...@videotron.ca wrote: Good evening, I'm trying to import a text file in order to superimpose the results with some OpenFOAM results. I'm using a python script to read the text file; however, the basic script provided at http://cmake.org/Wiki/Here_are_some_more_examples_of_simple_ParaView_3_python_filters fails at pdo = self.GetOutput() : Traceback (most recent call last): File paraview_cvs.py, line 21, in module pdo = self.GetOutput() NameError: name 'self' is not defined Not sure what is wrong - any idea ? Best regards, PO ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] python scripting - import cvs file
These scripts are meant to be used at values for the Script paramater for Programmable Filter or Programmable Source as identified by the title. These will not directly work from the python shell or pvpython. Create a Programmable Source from the Sources menu in the ParaView GUI and try pasting the script in the Script entry box on the Paramaters panel. Utkarsh On Thu, Jan 15, 2009 at 9:44 AM, Pierre-Olivier Dallaire pierre-olivier.dalla...@videotron.ca wrote: python shell, I'm using pvpython script.py On 15-Jan-09, at 9:20 AM, Utkarsh Ayachit wrote: Where are you typing the python script: the python shell or the Script parameter for the Programmable Filter/Programmable Source? On Wed, Jan 14, 2009 at 7:17 PM, Pierre-Olivier Dallaire pierre-olivier.dalla...@videotron.ca wrote: Good evening, I'm trying to import a text file in order to superimpose the results with some OpenFOAM results. I'm using a python script to read the text file; however, the basic script provided at http://cmake.org/Wiki/Here_are_some_more_examples_of_simple_ParaView_3_python_filters fails at pdo = self.GetOutput() : Traceback (most recent call last): File paraview_cvs.py, line 21, in module pdo = self.GetOutput() NameError: name 'self' is not defined Not sure what is wrong - any idea ? Best regards, PO ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Writer Plugin cannot be loaded
Natalie Happenhofer wrote: Hi! I have written a Writer-Plugin and after (at last) successfully compiling and linking it within Paraview, I tried to load it with the PluginManager, and in the Paraview/build/bin directory I found my libVdcWriter.so, but loading fails. I get the error message: libVdcWriter.so: no such file or directory But the file is in the build/bin - directory, the plugin-manager-browser found it! Does anyone know what could be the problem here? Is it possible that I missed to link something, any library from paraview so that this plugin can be loaded? It sounds like the dynamic linker/loader , ld, isn't finding your libVdcWriter.so library. first you can verify by running ldd on your plugin and searching for not found. like this: ldd /path/to/libMyPlugin.so | grep not found This will list the libraries that are not found. There are a number of ways to remedy such an issue. The easiest (especially for debugging purposes) is to use LD_LIBRARY_PATH on the command line to add locations to ld's search path. You know where the missing library is located then you can run paraview like this: LD_LIBRARY_PATH=/path/to/missing/lib/folder /path/to/paraview or you can export this variable in your shell. and by the way, a stupid question: linux .so - files are equivalent to windows .dll-files, true? so while I´m loading my plugins as .dlls in windows, with linux they have the ending .so, right? thx a lot, Natalie Happenhofer ¡Descúbrelo! ¿Qué puedes hacer con el nuevo Windows Live? http://www.microsoft.com/latam/windows/windowslive/ ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview -- Burlen Loring Kitware, Inc. RD Engineer 28 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-371-3971 x137 ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] CVS head crashes on Leopard at vtkCarbonRenderWindow
I have been having the same problems. I vote we back out of the 1.75 changes and ignore the warnings. -Ken On 1/15/09 7:10 AM, Takuya OSHIMA osh...@eng.niigata-u.ac.jp wrote: Yes it's a 32-bit binary as far as I understand in the same way. Takuya OSHIMA, Ph.D. Faculty of Engineering, Niigata University 8050 Ikarashi-Ninocho, Nishi-ku, Niigata, 950-2181, JAPAN From: David Cole david.c...@kitware.com Subject: Re: [Paraview] CVS head crashes on Leopard at vtkCarbonRenderWindow Date: Thu, 15 Jan 2009 06:54:30 -0500 * I'm assuming you are building a 32-bit binary (because there is no 64-bit Carbon to link to) Sean, would you mind (1) fixing this or (2) reverting your vtkCarbonRenderWindow change of 1.75 until somebody can figure out what it takes to fix this...? I think we should view vtkCarbonRenderWindow itself as largely deprecated and just ignore deprecation warnings from within it... Cocoa will be the new order of the day after the upcoming Qt 4.5 kinks are worked out... Thanks, David On Thu, Jan 15, 2009 at 6:40 AM, Takuya OSHIMA osh...@eng.niigata-u.ac.jp wrote: Hi, I updated and built my copy of cvs head for the first time this year. Unfortunately, it gets immediate crash after opening the main window at vtkCarbonRenderWindow::UpdateGLRegion(). Here's a part of gdb backtrace output: Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_PROTECTION_FAILURE at address: 0x0166 0x9710968c in objc_msgSend () (gdb) backtrace #0 0x9710968c in objc_msgSend () #1 0x9186b256 in CFGetTypeID () #2 0x95cae3ad in CGSCopyRegion () #3 0x9539be15 in aglSetIntegerWindowRef () #4 0x95399398 in aglSetInteger () #5 0x0446d8ad in vtkCarbonRenderWindow::UpdateGLRegion () #6 0x0446e6a0 in vtkCarbonRenderWindow::CreateAWindow () #7 0x0446d4a4 in vtkCarbonRenderWindow::WindowInitialize () #8 0x0446b7f5 in vtkCarbonRenderWindow::Start () #9 0x043ae10b in vtkRenderWindow::DoStereoRender () #10 0x043ae2d9 in vtkRenderWindow::DoFDRender () However, if I revert ParaView3/VTK/Rendering/vtkCarbonRenderWindow.cxx from the current revision of 1.75 to revision 1.74, I get a compiler waring about a deprecated API but the produced binary runs fine. So I'm wondering if the compiler warning fix revision 1.75 date: 2009-01-13 03:06:53 +0900; author: seanmcbride; state: Exp; lines: +10 -1; commitid: rPzETQM9lDA3Mbyt; COMP: fixed compiler warning related to bug 4001, by conditionally using newer n on-deprecated API of vtkCarbonRenderWindow.cxx is really correct. Am I the only one who is having this problem? I'm using an Intel Mac Pro, OS X 10.5.6, gcc 4.0.1 build 5490, Xcode 3.1.2. Thanks, Takuya OSHIMA, Ph.D. Faculty of Engineering, Niigata University 8050 Ikarashi-Ninocho, Nishi-ku, Niigata, 950-2181, JAPAN ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview Kenneth Moreland *** Sandia National Laboratories *** *** *** *** email: kmo...@sandia.gov ** *** ** phone: (505) 844-8919 *** web: http://www.cs.unm.edu/~kmorel ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Calling a vtk filter from my custom filter
You can instantiate the vtkExtractEdges filter and connect it to shallow copy of your input (don't directly connect the input to avoid nasty pipleine update issues) and then call Update() on the vtkExtractEdges to make it execute. Then you can shallow copy vtkExtractEdges' output to your own or further processes it. On Thu, Jan 15, 2009 at 10:29 AM, Rafael March rafaelmar...@yahoo.com wrote: Hi ParaView Community, I'm programming a filter, and I would like to call the vtkExtractEdges filter from it. Since my filter acts on vtkPolyData, it extends vtkPolyDataAlgorithm. The problem is, the requestData() method of all filters are made protected, so that only derived classes are able to call it. Hence, I can't see how can I call this method from inside the body of my filter's code. What's the usual way to do things such this ? Thanks in advance, Rafael March. ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] CVS head crashes on Leopard at vtkCarbonRenderWindow
On 1/15/09 6:54 AM, David Cole said: Sean, would you mind (1) fixing this or (2) reverting your vtkCarbonRenderWindow change of 1.75 until somebody can figure out what it takes to fix this...? I've returned CVS to a working state. Sorry about the troubles! Clinton, any idea why this did not work? -- Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Problems with the new color legend
The minimum and the maximum values show up differently (not aligned with) from the rest of tick values. They seem to be different from vertical (see vertical.png) to horizontal (see horizontal.png). That is by design. The min/max labels are placed where they can be shown with the maximum amount of precision (so that you get the most accurate account of what the range is). Also, the Number of Labels field has no effect. There were always minimum+3middlevalues+maximum in the color legend, even though I used 7 (see editor1.png and editor2.png for the editor window I am using). I think this is a bug. The field is working, but it really means the maximum number of (non min/max) labels. It will show less if it means the labels will be more readable. You have to bump up the number of labels to 11 before you get to the next increment that the color bar will allow. I changed the label next to the field to better reflect what it means. Note that the point of the changes to the scalar bar are to make it more readable. Even with only 5 labels, you can quickly pinpoint the color precisely to the thousands place using the minor tick marks. That's way better than you could with the old labels. -Ken Kenneth Moreland *** Sandia National Laboratories *** *** *** *** email: kmo...@sandia.gov ** *** ** phone: (505) 844-8919 *** web: http://www.cs.unm.edu/~kmorel ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview
[Paraview] TK (TKINTER) inside paraview
Hi there I'm developing a pythong plugin. I'm using tkinter for some quick input, so far it works I can do a tkFileDialog.askopenfilename() but after the tkdialog is opened the paraview menu is gone. all is left is a console window (empty) and in the menu there is Paraview, FILE, EDIT If I click on Paraview there is an about TCL/TK option so my question is: How do I mix tk in paraview without losing the menus (filters, tools, etc,etc,) has anyone tried this thanks ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] CVS head crashes on Leopard at vtkCarbonRenderWindow
On 1/15/09 9:47 AM, Clinton Stimpson said: Here's what I think needs to happen. *SNIP* Sounds like a plan, and I agree it's worthwhile since Carbon will still be around for a long time, but as I don't personally use it, I don't think I'll have the time in the near term. I'd be happy to test anything you come up with though. Cheers, -- Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Averages over Selections of Sliced Areas
Dear Paraview Users I have been using ParaView for some time now, but am unsure of how to calculate averages over certain areas. Picture1 shows a side-view of an incineration vessel. It has several passes, some of them with separation walls. Picture2 depicts a horizontal slice of it. I would like to calculate average values (e.g. of velocity, temperature, etc.) of some of these SUB-areas of the slice. In addition, very near to the walls, there is the wall effect. I would for instance calculate the averages of the subareas, excluding the values nearer than 100 mm to the walls. 1) How can I calculate the averages of the sub-areas? 2) How can I calculate the averages of the sub-areas, excluding the wall-effect boundary zone? Thank you very much for your help! Maurice -- Sensationsangebot verlängert: GMX FreeDSL - Telefonanschluss + DSL für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K1308T4569a attachment: picture1.jpgattachment: picture2.jpg___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview