<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta content="text/html; charset=utf-8">
</head>
<body>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12.0pt; line-height:1.3; color:#1F497D">
<div>Process and explorer only shows current locks, and this seems to be a quick, transient state. If you are curious which process caused the conflict, you can use Process monitor tool, which can log all access from all processes to all files.<br>
<br>
It is not that relevant though which process is that, because there is countless applications that legitimately lock files for short time periods.
<br>
</div>
<div><br>
</div>
<div id="signature-x" class="signature_editor" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12.0pt; color:#1F497D">
Andras<br>
</div>
</div>
<div id="quoted_header" style="clear:both">
<hr style="border:none; height:1px; color:#E1E1E1; background-color:#E1E1E1">
<div style="border:none; padding:3.0pt 0cm 0cm 0cm"><span style="font-size:11.0pt; font-family:'Calibri','sans-serif'"><b>From:</b> Isaiah Norton <isaiah.norton@gmail.com><br>
<b>Sent:</b> Friday, September 28, 2018 4:28 PM<br>
<b>To:</b> andrew.amaclean@gmail.com<br>
<b>Cc:</b> vtkdev; David Gobbi; Brad King<br>
<b>Subject:</b> Re: [vtk-developers] Python Wrapping fails in master build.<br>
</span></div>
</div>
<br type="attribution">
<div>
<div dir="ltr">
<div dir="ltr">FWIW, I've debugged similar issues in the past by using Process Explorer [1]. You can search for the file name with 'Find' menu -> 'Find handle or DLL', enter filename, then see which process(es) are holding it.</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">[1] <a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsysinternals%2Fdownloads%2Fprocess-explorer&data=02%7C01%7Classo%40queensu.ca%7Cd7206544455d4737523f08d62580f879%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636737633197117478&sdata=4AvMsS9HzSbzrFHzwgWGnfFc9wU04PtLvSVSl3w0IEs%3D&reserved=0" originalsrc="https://docs.microsoft.com/en-us/sysinternals/downloads/process-explorer" shash="fZtZWfpBHrKKVDem4+mT4Gf9e6qq7gMWVd1TSfsydwzIrFPXBVCagTpCNeGBy/pJhjBfwu/BhMjhwpDt/Jig3S1SThDKMxpU8RTLHwStv5Ek4z8Z1LltK4iKrkQAyNtX49kSy1WjhZq0tq8IIxCx9PwIac9pCOfsLRLJrEizqH8=" target="_blank">
https://docs.microsoft.com/en-us/sysinternals/downloads/process-explorer</a>
<div>
<div><br>
</div>
<div>- </div>
</div>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr">On Fri, Sep 28, 2018 at 12:14 AM Andrew Maclean <<a href="mailto:andrew.amaclean@gmail.com" target="_blank">andrew.amaclean@gmail.com</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div dir="ltr">
<div class="gmail_default" style="font-size:small">Just did a build and I have one failure:</div>
<div class="gmail_default" style="font-size:small">
<div class="gmail_default">[381/4832] Python Wrapping - generating vtkRungeKutta2Python.cxx</div>
<div class="gmail_default">FAILED: Wrapping/Python/vtkRungeKutta2Python.cxx </div>
<div class="gmail_default">cmd.exe /C "cd /D C:\Users\amaclean\Development\Kitware\build\VTK-Release\Wrapping\Python && C:\Users\amaclean\Development\Kitware\build\VTK-Release\bin\vtkWrapPython-9.0.exe @C:/Users/amaclean/Development/Kitware/build/VTK-Release/Wrapping/Python/vtkCommonMathPython.Release.args
 -o C:/Users/amaclean/Development/Kitware/build/VTK-Release/Wrapping/Python/vtkRungeKutta2Python.cxx C:/Users/amaclean/Development/Kitware/src/VTK/Common/Math/vtkRungeKutta2.h"</div>
<div class="gmail_default">Error 13 opening output file C:/Users/amaclean/Development/Kitware/build/VTK-Release/Wrapping/Python/vtkRungeKutta2Python.cxx: Permission denied</div>
<div class="gmail_default"><br>
</div>
<div class="gmail_default"><br>
</div>
</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr">On Thu, Sep 27, 2018 at 2:23 AM David Cole <<a href="mailto:DLRdave@aol.com" target="_blank">DLRdave@aol.com</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
Is it possible that there might be two custom commands trying to write<br>
to the same output file, and it only shows up in ninja because it's<br>
better at parallel builds...?<br>
<br>
Or is it absolutely certain that there's a one-rule/one-output-file<br>
correspondence?<br>
<br>
<br>
David C.<br>
On Wed, Sep 26, 2018 at 10:58 AM Andras Lasso <<a href="mailto:lasso@queensu.ca" target="_blank">lasso@queensu.ca</a>> wrote:<br>
><br>
> > Andras, you used to see similar errors with cmake when it was configuring, so I have to ask, have you seen vtkWrapPython itself fail this way?<br>
><br>
><br>
><br>
> I haven’t seen such an issue in the last couple of years.<br>
><br>
><br>
><br>
> We are building 3D Slicer every night on several computers from scratch. It includes full VTK (few-week-old master) and many VTK-based Python-wrapped classes. We use Windows10, VS2015 (or VS2017 with VS2015 toolset). We use Visual Studio generator, don’t
 use Ninja.<br>
><br>
><br>
><br>
> Andras<br>
><br>
><br>
><br>
> From: David Gobbi <<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>><br>
> Sent: Wednesday, September 26, 2018 10:48 AM<br>
> To: Brad King <<a href="mailto:brad.king@kitware.com" target="_blank">brad.king@kitware.com</a>><br>
> Cc: Andras Lasso <<a href="mailto:lasso@queensu.ca" target="_blank">lasso@queensu.ca</a>>; Andrew Maclean <<a href="mailto:andrew.amaclean@gmail.com" target="_blank">andrew.amaclean@gmail.com</a>>; VTK Developers <<a href="mailto:vtk-developers@vtk.org" target="_blank">vtk-developers@vtk.org</a>><br>
> Subject: Re: [vtk-developers] Python Wrapping fails in master build.<br>
><br>
><br>
><br>
> On Wed, Sep 26, 2018 at 8:03 AM Brad King <<a href="mailto:brad.king@kitware.com" target="_blank">brad.king@kitware.com</a>> wrote:<br>
><br>
> One could instead write to a temporary/random file name and then<br>
> rename when finished.  CMake generates most of its files that way.<br>
><br>
><br>
><br>
> Thanks for the advice (and for taking the time to read this thread.)  This may<br>
><br>
> be the ultimate solution, though I still want to do some digging to see what<br>
><br>
> what magic cl.exe itself uses to avoid this AV interference.<br>
><br>
><br>
><br>
> For now, though, I'll put together a patch that prints the value of errno when<br>
><br>
> fopen() fails.  I'll probably print the result of GetLastError() too, since this is<br>
><br>
> a Windows issue.  Hopefully Andrew will be able to see those and report on<br>
><br>
> them.<br>
><br>
><br>
><br>
> Andras, you used to see similar errors with cmake when it was configuring,<br>
><br>
> so I have to ask, have you seen vtkWrapPython itself fail this way?  I'm still<br>
><br>
> trying to get a feel for how widespread this issue is.<br>
><br>
><br>
><br>
>  - David<br>
><br>
> _______________________________________________<br>
> Powered by <a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com&data=02%7C01%7Classo%40queensu.ca%7Cd7206544455d4737523f08d62580f879%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636737633197117478&sdata=ZJZswItRT0lfUuF4MiijhmZzM6rhEMYbl%2BvJAYHssoY%3D&reserved=0" originalsrc="http://www.kitware.com" shash="mTJVAWx4bLT3JPPFFkaVI1VTFd2g37nZRbKu3fqbQVNHILAyBD7SZkd57BDuaPIvHS+7QjuNl/wHqXGQSEdm62lLyV3HKcyl7UWu+xtsWKyaUiDpKGy1TFhl1YgNIF565MFAGnsIkhY+q3JRDykkqpJi2MNb4cu5b4pGjvQwmSY=" rel="noreferrer" target="_blank">
www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at <a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=02%7C01%7Classo%40queensu.ca%7Cd7206544455d4737523f08d62580f879%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636737633197127487&sdata=kIckMkdruOv6IQzY1auzUk0kGpUgunTMK%2BoA3z9Lnns%3D&reserved=0" originalsrc="http://www.kitware.com/opensource/opensource.html" shash="g+GMKSNNCAnoBnex++7IBL888MOzqgWET+Unh8GHwk8yt0H8+qs/atwjiMq9Qr3kDWs3aQ7uXdE1Mqe6VJjyWZHxq1E/ZHXVtOziwmjvzqIx7O0Agj+8V3QXI4R57VhKK23a2NVkOkVT/u2CHDrngH5lW7aSHwfVNXTJzyaDfEw=" rel="noreferrer" target="_blank">
http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Search the list archives at: <a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkmail.org%2Fsearch%2F%3Fq%3Dvtk-developers&data=02%7C01%7Classo%40queensu.ca%7Cd7206544455d4737523f08d62580f879%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636737633197127487&sdata=Ysm51a%2B%2F%2F%2Fh1EtTN%2F1OOFB0RUAvcVOF3YHlt4dMJTH4%3D&reserved=0" originalsrc="http://markmail.org/search/?q=vtk-developers" shash="kB5LoITYkUWt8rFyXZ+o09qTBtlTlfSKfZr1+I0W3CDwXC++zbUtPGoe7ilWrCHD97xeHC7AoEndO6Se5N5kfFUst88iQ7BQnzKGJO3PKyUyQtjPqsnkPlP8DkqK/qUHDksc1TXUhc0Y6UTuAAmvX3cmvN+pz2+i35uwgt5ts+A=" rel="noreferrer" target="_blank">
http://markmail.org/search/?q=vtk-developers</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpublic.kitware.com%2Fmailman%2Flistinfo%2Fvtk-developers&data=02%7C01%7Classo%40queensu.ca%7Cd7206544455d4737523f08d62580f879%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636737633197137492&sdata=Frm7T9jNu9DWImYo%2B4zTe5WhJwmD1iZRVkYAdt9B20s%3D&reserved=0" originalsrc="https://public.kitware.com/mailman/listinfo/vtk-developers" shash="K3oWTYz07nP/2PeF8ImX3BEGtkiqr0meo78aFgB6qipI1uQYpMTsbjaqELb3ChFNgCv9KfnZnYiK5lioBrvIHbeoj+vuM7xzK8o6+VXqO5oI6S9Z8ngd/5++/gadGpbRbZNMBJtjnWfWZQ+/d7+VKf44jy06zATSepAnsRSCDqY=" rel="noreferrer" target="_blank">
https://public.kitware.com/mailman/listinfo/vtk-developers</a><br>
><br>
</blockquote>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr" class="m_3150253027257521024m_-4460487859728643858m_7502996848994268324gmail_signature">
___________________________________________<br>
Andrew J. P. Maclean<br>
<br>
___________________________________________</div>
_______________________________________________<br>
Powered by <a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com&data=02%7C01%7Classo%40queensu.ca%7Cd7206544455d4737523f08d62580f879%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636737633197137492&sdata=WsylxhU%2FpQVO4QSLn7ezMAKZ8dT6I75ncWt8H0kXyRU%3D&reserved=0" originalsrc="http://www.kitware.com" shash="D43dj01w9GMWR3AEffMbShtksqZ36rZWmOUZuvJQ3Qfxea/25Znou6Kj+Q3TvVyeAD99r0Ubh0vy5UxVHtOy53ubq/dAl9XOcczCpbjrL2KhNmuEK+8geechlfTC+molIyIkkcrnhG3mK6vvkU42GsvCchAwJC8op8GFFMwulBk=" rel="noreferrer" target="_blank">
www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=02%7C01%7Classo%40queensu.ca%7Cd7206544455d4737523f08d62580f879%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636737633197147501&sdata=7NB1LNI0LhSpfgKO5byJN%2FG6CIFdYysmTRIhGrr%2FQ2Y%3D&reserved=0" originalsrc="http://www.kitware.com/opensource/opensource.html" shash="S00u4/lIVUVBcJeH1u78t0GqITI9vA4LiQ8h1aDLoaGgmuU47KMcJNMUDTlgrU2FFtAm9TGIHgDBkjx8db6DEApWfMmLSQoFfsmq4AkSn2TzSxSM9W8txLR7pTujgZIWKt4CZRHxyGgpLGOwXnEJvLHyrjrzB7mZLm8H3tQlTA0=" rel="noreferrer" target="_blank">
http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkmail.org%2Fsearch%2F%3Fq%3Dvtk-developers&data=02%7C01%7Classo%40queensu.ca%7Cd7206544455d4737523f08d62580f879%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636737633197147501&sdata=a4bhlrZ4wZKJxncY7p9v0jC%2FrrUR%2F1ylTp6ZvTp1iJQ%3D&reserved=0" originalsrc="http://markmail.org/search/?q=vtk-developers" shash="NozSJv0Z8MheDThSz1yku6+zOGybFB6566UC0+JP4VtjMlkDW5tVCT9lzJk+ZsL+lpGFXEWOq/Rq8mGD8T340vsixMQcJc3M9mbuz6ET35Ptf/26qVokOyMsewLezIUBGR+ykaR+dxeC8yormZAVclVVN87ejpYeFQoXVscQVXc=" rel="noreferrer" target="_blank">
http://markmail.org/search/?q=vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpublic.kitware.com%2Fmailman%2Flistinfo%2Fvtk-developers&data=02%7C01%7Classo%40queensu.ca%7Cd7206544455d4737523f08d62580f879%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636737633197157506&sdata=i26TLQ%2BcTsInpJPf3R93v91dakdAWZsX36aHC1DZwYE%3D&reserved=0" originalsrc="https://public.kitware.com/mailman/listinfo/vtk-developers" shash="RCYL/k/0aViQ+j1jLVIxvTMMQ+f1uMcZ5kPcrlqAMSRIJ0ZybRiSsqVZfmDEZaXmPPTsOLz2POq3iFHMS2AI9eBX4ClRpJSX08Ju3KYuXUY3y8sge08INmTpdqWyNsxOMbT5OnFcPfho2upFwp/nng4HmkZoMyB6ubluZgByuuc=" rel="noreferrer" target="_blank">https://public.kitware.com/mailman/listinfo/vtk-developers</a><br>
<br>
</blockquote>
</div>
</div>
</body>
</html>