>> 1. Does the python command shell have a "run python script" command? <br><br>There is a builtin python command 'execfile' that can do this. From the python console- help(execfile)<br><br>Pat<br>
<br><div class="gmail_quote">On Mon, Feb 1, 2010 at 1:40 PM, Olumide <span dir="ltr"><<a href="mailto:50295@web.de">50295@web.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
The following screenshot is self-explanatory:<br>
<a href="http://i17.photobucket.com/albums/b52/videohead/ParaviewScriptDialog.png" target="_blank">http://i17.photobucket.com/albums/b52/videohead/ParaviewScriptDialog.png</a><br>
<br>
- Olumide<br>
<br>
---------------- Possible memory leak in script dialog ----------------<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I typically use python to load groups (sometimes up to a dozen) of VTK<br>
files generated by each run of my experiment -- opening files manually<br>
is very tiring. However, whenever I clear the currently displayed files<br>
(using the "delete all" Edit menu option) Paraview never seems to give<br>
back all the memory it allocated. As such, after loading and unloading<br>
10-20 simulations, Paraview's memory consumption is so high that I<br>
either have to terminate the program or it crashes.<br>
<br>
Here's the result of my typical run. I saved a small simulation to a<br>
state file and tried opening it and then clearing the data. The reported<br>
data is from the Windows Task manager (for some weird reason the task<br>
manager lists that the memory allocated to the Paraview process is<br>
greater than the process' virtual memory!?)<br>
<br>
Initial (new instance of Paraview):<br>
Mem usage: 75,272Kb VM: 56,256Kb<br>
<br>
After loading state file:<br>
Mem usage: 89,512Kb VM: 70,224Kb<br>
<br>
After deleting all objects<br>
Mem usage: 84,476Kb VM: 65,132Kb<br>
<br>
Another run, this time the python scripts are used to load the two<br>
simulation datasets. Growth in memory usage is more aggressive:<br>
<br>
Initial (new instance of Paraview):<br>
Mem usage: 75,304Kb VM: 56,276Kb<br>
<br>
After loading data set 1 via Python shell/script:<br>
Mem usage: 113,264Kb VM: 88,704Kb<br>
<br>
After deleting all objects<br>
Mem usage: 114,456Kb VM: 89,688Kb<br>
<br>
After loading dataset 2 via Python shell/script:<br>
Mem usage: 126,116Kb VM: 101,196Kb<br>
<br>
After deleting all objects<br>
Mem usage: 126,284Kb VM: 101,388Kb<br>
<br>
I'm aware that memory is dynamically allocated for the python shell and<br>
GUI, and their corresponding objects are probably kept in memory to make<br>
future launches of the python shell faster. This would explain why some<br>
memory isn't returned after the initial launch. However as this should<br>
done just once, the memory consumption should not grow each time a<br>
dataset is loaded using a Python script/GUI.<br>
<br>
Also, after deleting a dataset and a new one is loaded, the following<br>
the message is frequently displayed.<br>
<br>
qDrawShadeRect: Invalid parameters<br>
qDrawShadeRect: Invalid parameters<br>
qDrawShadeRect: Invalid parameters<br>
..<br>
qDrawShadeRect: Invalid parameters<br>
qDrawShadeRect: Invalid parameters<br>
<br>
A few other questions/suggestions:<br>
<br>
1. Does the python command shell have a "run python script" command? For<br>
example: RunPythonScript("C:/Work/Data/Foo.py"). Such a feature would be<br>
a productivity boost. Clicking on the Tools menu and pressing the run<br>
script button is okay for loading a few datasets but tiring when there<br>
are lots of datasets to be evaluated. Also, it would be nice if the<br>
python command were dockable, with an autohide feature like Visual<br>
studio. Again this would be productivity boost. In fact it would be nice<br>
if most views had an autohide feature. This would be a quick way of<br>
increasing the size of the view window.<br>
<br>
2. Does Paraview 3.6.2 have a disable offset feature as<br>
proposed/discussed here (I've searched but I can't find one):<br>
<a href="http://tinyurl.com/yf86vwy" target="_blank">http://tinyurl.com/yf86vwy</a><br>
<br>
3. When can we expect to be able to have an external program send data<br>
to a Paraview, in the manner suggested in the following thread:<br>
<a href="http://tinyurl.com/yfdyp7w" target="_blank">http://tinyurl.com/yfdyp7w</a><br>
<br>
I hope I'm not being too greedy. I believe I speak for the entire<br>
community when I say we appreciate all your hard work.<br>
<br>
Thanks,<br>
<br>
- Olumide<br>
<br>
-------- Original Message --------<br>
Subject: Re: [Paraview] Memory leak in Paraview 3.6.1(?)<br>
Date: Mon, 18 Jan 2010 18:30:41 GMT<br>
From: Utkarsh Ayachit (<a href="mailto:utka...@kitware.com" target="_blank">utka...@kitware.com</a>)<br>
List: org.paraview.paraview<br>
<br>
Is it reproducible without using Python for creating the objects?<br>
Easiest way to try that is create the objects using python, then save<br>
the state out, then restart paraview and load the state file to create<br>
the objects.<br>
<br>
Utkarsh<br>
<br>
On Sat, Jan 16, 2010 at 1:34 AM, Olumide <<a href="mailto:502...@web.de" target="_blank">502...@web.de</a>> wrote:<br>
<br>
This issue persists in Paraview 3.6.2, with which I've just viewed a<br>
relatively small data set (one polysphere and about a 40 line segments).<br>
However, after disconnecting the server, thereby unloading the data,<br>
Paraview's memory consumption remains at 103Kb -- that's not right. Why<br>
isn't Paraview releasing memory from purged objects. If it matters, the<br>
objects were imported using a python script.<br>
<br>
- Olumide<br>
<br>
</blockquote><div><div></div><div class="h5">
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</div></div></blockquote></div><br>