[vtk-developers] Python Wrapping fails in master build.

Andras Lasso lasso at queensu.ca
Fri Sep 28 17:08:57 EDT 2018


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.

It is not that relevant though which process is that, because there is countless applications that legitimately lock files for short time periods.

Andras
________________________________
From: Isaiah Norton <isaiah.norton at gmail.com>
Sent: Friday, September 28, 2018 4:28 PM
To: andrew.amaclean at gmail.com
Cc: vtkdev; David Gobbi; Brad King
Subject: Re: [vtk-developers] Python Wrapping fails in master build.

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.

[1] https://docs.microsoft.com/en-us/sysinternals/downloads/process-explorer<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>

-

On Fri, Sep 28, 2018 at 12:14 AM Andrew Maclean <andrew.amaclean at gmail.com<mailto:andrew.amaclean at gmail.com>> wrote:
Just did a build and I have one failure:
[381/4832] Python Wrapping - generating vtkRungeKutta2Python.cxx
FAILED: Wrapping/Python/vtkRungeKutta2Python.cxx
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"
Error 13 opening output file C:/Users/amaclean/Development/Kitware/build/VTK-Release/Wrapping/Python/vtkRungeKutta2Python.cxx: Permission denied




On Thu, Sep 27, 2018 at 2:23 AM David Cole <DLRdave at aol.com<mailto:DLRdave at aol.com>> wrote:
Is it possible that there might be two custom commands trying to write
to the same output file, and it only shows up in ninja because it's
better at parallel builds...?

Or is it absolutely certain that there's a one-rule/one-output-file
correspondence?


David C.
On Wed, Sep 26, 2018 at 10:58 AM Andras Lasso <lasso at queensu.ca<mailto:lasso at queensu.ca>> wrote:
>
> > 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?
>
>
>
> I haven’t seen such an issue in the last couple of years.
>
>
>
> 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.
>
>
>
> Andras
>
>
>
> From: David Gobbi <david.gobbi at gmail.com<mailto:david.gobbi at gmail.com>>
> Sent: Wednesday, September 26, 2018 10:48 AM
> To: Brad King <brad.king at kitware.com<mailto:brad.king at kitware.com>>
> Cc: Andras Lasso <lasso at queensu.ca<mailto:lasso at queensu.ca>>; Andrew Maclean <andrew.amaclean at gmail.com<mailto:andrew.amaclean at gmail.com>>; VTK Developers <vtk-developers at vtk.org<mailto:vtk-developers at vtk.org>>
> Subject: Re: [vtk-developers] Python Wrapping fails in master build.
>
>
>
> On Wed, Sep 26, 2018 at 8:03 AM Brad King <brad.king at kitware.com<mailto:brad.king at kitware.com>> wrote:
>
> One could instead write to a temporary/random file name and then
> rename when finished.  CMake generates most of its files that way.
>
>
>
> Thanks for the advice (and for taking the time to read this thread.)  This may
>
> be the ultimate solution, though I still want to do some digging to see what
>
> what magic cl.exe itself uses to avoid this AV interference.
>
>
>
> For now, though, I'll put together a patch that prints the value of errno when
>
> fopen() fails.  I'll probably print the result of GetLastError() too, since this is
>
> a Windows issue.  Hopefully Andrew will be able to see those and report on
>
> them.
>
>
>
> 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?  I'm still
>
> trying to get a feel for how widespread this issue is.
>
>
>
>  - David
>
> _______________________________________________
> Powered by www.kitware.com<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>
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<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>
>
> Search the list archives at: http://markmail.org/search/?q=vtk-developers<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>
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/vtk-developers<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>
>


--
___________________________________________
Andrew J. P. Maclean

___________________________________________
_______________________________________________
Powered by www.kitware.com<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>

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<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>

Search the list archives at: http://markmail.org/search/?q=vtk-developers<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>

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtk-developers<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>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtk-developers/attachments/20180928/7b2d7b55/attachment-0001.html>


More information about the vtk-developers mailing list