<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-GB;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">NB. I may not have applied the fix from the other day on the laptop &#8211; will check now<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Andy Bauer [mailto:andy.bauer@kitware.com]
<br>
<b>Sent:</b> 21 December 2011 21:59<br>
<b>To:</b> Biddiscombe, John A.<br>
<b>Cc:</b> paraview@paraview.org<br>
<b>Subject:</b> Re: [Paraview] PV 3.12.0 coprocessing problem<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">I'm attaching a couple of files that you can use to test if you have the proper fix for your branch.&nbsp; Run the python script with &quot;mpirun -np 8 bin/pvbatch -sym parallelpythontest.py&quot;.&nbsp; If you get the same results
 then you don't have the fix yet for the image issue.&nbsp; Note that parallelpythontest2.png isn't getting colored properly while parallelpythontest.png is.<br>
<br>
Andy<o:p></o:p></p>
<div>
<p class="MsoNormal">On Wed, Dec 21, 2011 at 3:48 PM, Biddiscombe, John A. &lt;<a href="mailto:biddisco@cscs.ch">biddisco@cscs.ch</a>&gt; wrote:<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">I&#8217;ll give it a try using master, a very simple python script is attached.
</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">The original contained a lot more filters, this has most of them stripped out and just a contour
 left. And yes, it is possible that some processes have no points.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">JB</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Andy
 Bauer [mailto:<a href="mailto:andy.bauer@kitware.com" target="_blank">andy.bauer@kitware.com</a>]
<br>
<b>Sent:</b> 21 December 2011 19:10<br>
<b>To:</b> Biddiscombe, John A.<br>
<b>Cc:</b> <a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a><br>
<b>Subject:</b> Re: [Paraview] PV 3.12.0 coprocessing problem</span><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:12.0pt">Hi John,<br>
<br>
There were a couple of issues when saving images.&nbsp; One was for saving charts and maybe 2d views.&nbsp; The other one was for when some processes didn't have any points or cells.&nbsp; Looking at your stack traces I don't think it's the latter since that would fail in
 the python script and give a warning in there.&nbsp; Any chance you could test with the paraview's current master branch?<br>
<br>
Are you using a python script to drive the coprocessing?&nbsp; If yes, can you share it?<br>
<br>
Andy<o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">On Wed, Dec 21, 2011 at 12:15 PM, Biddiscombe, John A. &lt;<a href="mailto:biddisco@cscs.ch" target="_blank">biddisco@cscs.ch</a>&gt; wrote:<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I'm getting lock ups when saving images using the coprocessing. It looks a lot like a bug that was fixed many moons ago, but maybe the fix got lost in a merge ...<br>
<br>
1 &nbsp;process makes it to here and waits for MPI traffic<br>
<br>
&gt; &nbsp; &nbsp; &nbsp; vtkParallel.dll!vtkMPICommunicatorReduceData(const void * sendBuffer=0x000000000012c318, void * recvBuffer=0x000000000012c378, __int64 length=3, int type=11, int operation=1476395010, int destProcessId=0, int * comm=0x0000000005d77670) &nbsp;Line 317 &nbsp; C&#43;&#43;<br>
&nbsp; &nbsp; &nbsp; &nbsp;vtkParallel.dll!vtkMPICommunicator::ReduceVoidArray(const void * sendBuffer=0x000000000012c318, void * recvBuffer=0x000000000012c378, __int64 length=3, int type=11, int operation=1, int destProcessId=0) &nbsp;Line 1422 &#43; 0x4c bytes &nbsp; &nbsp; &nbsp;C&#43;&#43;<br>
&nbsp; &nbsp; &nbsp; &nbsp;vtkParallel.dll!vtkCommunicator::Reduce(const double * sendBuffer=0x000000000012c318, double * recvBuffer=0x000000000012c378, __int64 length=3, int operation=1, int destProcessId=0) &nbsp;Line 633 C&#43;&#43;<br>
&nbsp; &nbsp; &nbsp; &nbsp;vtkParallel.dll!vtkMultiProcessController::Reduce(const double * sendBuffer=0x000000000012c318, double * recvBuffer=0x000000000012c378, __int64 length=3, int operation=1, int destProcessId=0) &nbsp;Line 811 &nbsp; &nbsp; &nbsp; C&#43;&#43;<br>
&nbsp; &nbsp; &nbsp; &nbsp;vtkPVClientServerCore.dll!vtkPVSynchronizedRenderWindows::SynchronizeBounds(double * bounds=0x000000000d18a8a8) &nbsp;Line 1381 &nbsp; &nbsp; &nbsp;C&#43;&#43;<br>
&nbsp; &nbsp; &nbsp; &nbsp;vtkPVClientServerCore.dll!vtkPVRenderView::GatherBoundsInformation(bool using_distributed_rendering=true) &nbsp;Line 598 &nbsp; &nbsp; C&#43;&#43;<br>
&nbsp; &nbsp; &nbsp; &nbsp;vtkPVClientServerCore.dll!vtkPVRenderView::Render(bool interactive=false, bool skip_rendering=false) &nbsp;Line 882 &nbsp;C&#43;&#43;<br>
&nbsp; &nbsp; &nbsp; &nbsp;vtkPVClientServerCore.dll!vtkPVRenderView::StillRender() &nbsp;Line 745 &nbsp; &nbsp; &nbsp;C&#43;&#43;<br>
&nbsp; &nbsp; &nbsp; &nbsp;vtkPVClientServerCoreCS.dll!vtkPVRenderViewCommand(vtkClientServerInterpreter * arlu=0x0000000005d6be10, vtkObjectBase * ob=0x000000000d18a770, const char * method=0x000000000e1f7ee9, const vtkClientServerStream &amp; msg={...}, vtkClientServerStream &amp; resultStream={...})
 &nbsp;Line 258 &nbsp;C&#43;&#43;<br>
&nbsp; &nbsp; &nbsp; &nbsp;vtkClientServer.dll!vtkClientServerInterpreter::ProcessCommandInvoke(const vtkClientServerStream &amp; css={...}, int midx=0) &nbsp;Line 379 &#43; 0x2f bytes &nbsp; &nbsp; &nbsp; &nbsp;C&#43;&#43;<br>
&nbsp; &nbsp; &nbsp; &nbsp;vtkClientServer.dll!vtkClientServerInterpreter::ProcessOneMessage(const vtkClientServerStream &amp; css={...}, int message=0) &nbsp;Line 214 &#43; 0x1d bytes &nbsp; &nbsp; &nbsp; &nbsp;C&#43;&#43;<br>
&nbsp; &nbsp; &nbsp; &nbsp;vtkClientServer.dll!vtkClientServerInterpreter::ProcessStream(const vtkClientServerStream &amp; css={...}) &nbsp;Line 183 &#43; 0x14 bytes &nbsp; C&#43;&#43;<br>
&nbsp; &nbsp; &nbsp; &nbsp;vtkPVServerImplementation.dll!vtkPVSessionCore::ExecuteStreamInternal(const vtkClientServerStream &amp; stream={...}, bool ignore_errors=false) &nbsp;Line 636 &nbsp; C&#43;&#43;<br>
&nbsp; &nbsp; &nbsp; &nbsp;vtkPVServerImplementation.dll!vtkPVSessionCore::ExecuteStream(unsigned int location=21, const vtkClientServerStream &amp; stream={...}, bool ignore_errors=false) &nbsp;Line 606 C&#43;&#43;<br>
&nbsp; &nbsp; &nbsp; &nbsp;vtkPVServerImplementation.dll!vtkPVSessionBase::ExecuteStream(unsigned int location=21, const vtkClientServerStream &amp; stream={...}, bool ignore_errors=false) &nbsp;Line 157 C&#43;&#43;<br>
&nbsp; &nbsp; &nbsp; &nbsp;vtkPVServerManager.dll!vtkSMProxy::ExecuteStream(const vtkClientServerStream &amp; stream={...}, bool ignore_errors=false, unsigned int location=21) &nbsp;Line 2092 &nbsp; &nbsp; C&#43;&#43;<br>
&nbsp; &nbsp; &nbsp; &nbsp;vtkPVServerManager.dll!vtkSMViewProxy::StillRender() &nbsp;Line 137 &#43; 0x18 bytes &nbsp; &nbsp; C&#43;&#43;<br>
&nbsp; &nbsp; &nbsp; &nbsp;vtkPVServerManager.dll!`anonymous namespace'::vtkRenderHelper::EventuallyRender() &nbsp;Line 86 &nbsp; &nbsp; &nbsp;C&#43;&#43;<br>
&nbsp; &nbsp; &nbsp; &nbsp;vtkPVVTKExtensions.dll!vtkPVGenericRenderWindowInteractor::Render() &nbsp;Line 302 &nbsp; C&#43;&#43;<br>
&nbsp; &nbsp; &nbsp; &nbsp;vtkRendering.dll!vtkRenderWindowInteractor::Initialize() &nbsp;Line 632 &nbsp; &nbsp; &nbsp;C&#43;&#43;<br>
&nbsp; &nbsp; &nbsp; &nbsp;vtkRendering.dll!vtkRenderWindowInteractor::ReInitialize() &nbsp;Line 76 &#43; 0x13 bytes &nbsp; &nbsp; &nbsp; &nbsp;C&#43;&#43;<br>
&nbsp; &nbsp; &nbsp; &nbsp;vtkRendering.dll!vtkWin32OpenGLRenderWindow::SetOffScreenRendering(int offscreen=0) &nbsp;Line 1268 &nbsp;C&#43;&#43;<br>
&nbsp; &nbsp; &nbsp; &nbsp;vtkPVServerManager.dll!vtkSMRenderViewProxy::CaptureWindowInternal(int magnification=1) &nbsp;Line 875 &nbsp; &nbsp; &nbsp; C&#43;&#43;<br>
&nbsp; &nbsp; &nbsp; &nbsp;vtkPVServerManager.dll!vtkSMViewProxy::CaptureWindow(int magnification=1) &nbsp;Line 268 &#43; 0x20 bytes &nbsp; &nbsp; &nbsp; &nbsp;C&#43;&#43;<br>
&nbsp; &nbsp; &nbsp; &nbsp;vtkPVServerManager.dll!vtkSMViewProxy::WriteImage(const char * filename=0x000000000b619f50, const char * writerName=0x000000000ac750e0, int magnification=1) &nbsp;Line 307 &#43; 0x11 bytes &nbsp; &nbsp; C&#43;&#43;<br>
&nbsp; &nbsp; &nbsp; &nbsp;vtkPVServerManagerPythonD.dll!PyvtkSMViewProxy_WriteImage(_object * self=0x000000000b62f6d8, _object * args=0x000000000b62b438) &nbsp;Line 367 &#43; 0x1f bytes &nbsp;C&#43;&#43;<br>
<br>
------------------------------<br>
but the other N-1 processes end up in here - waiting<br>
<br>
&gt; &nbsp; &nbsp; &nbsp; vtkParallel.dll!vtkMPICommunicator::BroadcastVoidArray(void * data=0x000000000012dd24, __int64 length=1, int type=6, int root=0) &nbsp;Line 1159 &#43; 0x31 bytes &nbsp; &nbsp; &nbsp; &nbsp;C&#43;&#43;<br>
&nbsp; &nbsp; &nbsp; &nbsp;vtkParallel.dll!vtkCommunicator::Broadcast(int * data=0x000000000012dd24, __int64 length=1, int srcProcessId=0) &nbsp;Line 256 &nbsp; &nbsp; &nbsp; C&#43;&#43;<br>
&nbsp; &nbsp; &nbsp; &nbsp;vtkParallel.dll!vtkMultiProcessController::Broadcast(int * data=0x000000000012dd24, __int64 length=1, int srcProcessId=0) &nbsp;Line 402 &nbsp; &nbsp; C&#43;&#43;<br>
&nbsp; &nbsp; &nbsp; &nbsp;vtkPVServerManager.dll!vtkSMUtilities::SaveImageOnProcessZero(vtkImageData * image=0x000000000e2c79c0, const char * filename=0x000000000b729f50, const char * writerName=0x000000000ac850e0) &nbsp;Line 139 &nbsp;C&#43;&#43;<br>
&nbsp; &nbsp; &nbsp; &nbsp;vtkPVServerManager.dll!vtkSMViewProxy::WriteImage(const char * filename=0x000000000b729f50, const char * writerName=0x000000000ac850e0, int magnification=1) &nbsp;Line 311 &#43; 0x1f bytes &nbsp; &nbsp; C&#43;&#43;<br>
&nbsp; &nbsp; &nbsp; &nbsp;vtkPVServerManagerPythonD.dll!PyvtkSMViewProxy_WriteImage(_object * self=0x000000000b73f6d8, _object * args=0x000000000b73b438) &nbsp;Line 367 &#43; 0x1f bytes &nbsp;C&#43;&#43;<br>
<br>
There was a problem with the SaveImageOnProcess Zero which caused exactly this some time ago. I'm using a branch of mine derived from the v3.12.0 tag, but I cherry picked Andy's patch from kitware/master or wherever that was mentioned a few days ago -are there
 othe fixes on master/next that I might beneeding?<br>
<br>
Any ideas. The pipeline is a contour of some image data on N processes. Pretty Simple.<br>
<br>
Any help appreciated.<br>
<br>
thanks<br>
<br>
JB<o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>