Run test failed after successful compilation by msvc on the windows x64 platform
Describe the bug
Run test failed When I used the code compiled by msbuild for testing. The specific failure is as follows:
121/257 Test #121: VTK::IOIOSSCxx-TestIOSSAssemblies ....................................***Exception: SegFault 0.34 sec
Exodus Library Warning/Error: [vtkexodusII_ex__check_file_type]
ERROR: Could not open file 'F:/vtk/vtk/build_amd64/ExternalData/Testing/Data/Exodus/Assembly-Example.g', error = No such file or directory.
Exodus Library Warning/Error: [vtkexodusII_ex_open_int]
ERROR: failed to open F:/vtk/vtk/build_amd64/ExternalData/Testing/Data/Exodus/Assembly-Example.g of type 0 for reading. Either the file does not exist,
or there is a permission or file format issue.
IOSS WARNING: ERROR: Unable to open input database 'F:/vtk/vtk/build_amd64/ExternalData/Testing/Data/Exodus/Assembly-Example.g' of type 'exodusII'
( 0.003s) [main thread ] vtkIOSSReader.cxx:934 ERR| vtkIOSSReader (000001998BAB8560): Error in UpdateTimeInformation:
Failed to open database F:/vtk/vtk/build_amd64/ExternalData/Testing/Data/Exodus/Assembly-Example.g
( 0.034s) [main thread ] vtkExecutive.cxx:753 ERR| vtkCompositeDataPipeline (000001998BAB6370): Algorithm vtkIOSSReader(000001998BAB8560) returned failure for request: vtkInformation (000001998BAFC950)
Debug: Off
Modified Time: 96
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
FORWARD_DIRECTION: 0
ALGORITHM_AFTER_FORWARD: 1
Exodus Library Warning/Error: [vtkexodusII_ex__check_file_type]
ERROR: Could not open file 'F:/vtk/vtk/build_amd64/ExternalData/Testing/Data/Exodus/Assembly-Example.g', error = No such file or directory.
Exodus Library Warning/Error: [vtkexodusII_ex_open_int]
ERROR: failed to open F:/vtk/vtk/build_amd64/ExternalData/Testing/Data/Exodus/Assembly-Example.g of type 0 for reading. Either the file does not exist,
or there is a permission or file format issue.
IOSS WARNING: ERROR: Unable to open input database 'F:/vtk/vtk/build_amd64/ExternalData/Testing/Data/Exodus/Assembly-Example.g' of type 'exodusII'
( 0.048s) [main thread ] vtkExecutive.cxx:753 ERR| vtkCompositeDataPipeline (000001998BAB6370): Algorithm vtkIOSSReader(000001998BAB8560) returned failure for request: vtkInformation (000001998BAFC950)
Debug: Off
Modified Time: 96
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
FORWARD_DIRECTION: 0
ALGORITHM_AFTER_FORWARD: 1
( 0.064s) [main thread ]vtkWindowsTestUtilities:32 ERR| Error: EXCEPTION_ACCESS_VIOLATION
( 0.127s) [main thread ]vtkWindowsTestUtilities:98 ERR| at �,
at �,
at �,
at UnhandledExceptionFilter
at memset
at _C_specific_handler
at _chkstk
at RtlWalkFrameChain
at KiUserExceptionDispatcher
at KiUserExceptionDispatcher
at KiUserExceptionDispatcher
at KiUserExceptionDispatcher
at KiUserExceptionDispatcher
at KiUserExceptionDispatcher
at BaseThreadInitThunk
at RtlUserThreadStart
To Reproduce Steps to reproduce the behavior:
-
git clone https://gitlab.kitware.com/vtk/vtk
git -C "F:\vtk\vtk" rev-parse --git-dir
git -C "F:\vtk\vtk" clean -xdf
git -C "F:\vtk\vtk" fetch --recurse-submodules=no --force
git -C "F:\vtk\vtk" reset --hard a6d4c9d3
git -C "F:\vtk\vtk" remote prune origin
git -C "F:\vtk\vtk" submodule sync
git -C "F:\vtk\vtk" submodule foreach git reset --hard
git -C "F:\vtk\vtk" submodule foreach git clean -xdf
git -C "F:\vtk\vtk" submodule update --init --recursive
-
set VSCMD_SKIP_SENDTELEMETRY=1 & "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -host_arch=amd64 -arch=amd64
cd F:\vtk\vtk\build_amd64
cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DBUILD_SHARED_LIBS=OFF -DVTK_BUILD_TESTING=WANT -DVTK_BUILD_EXAMPLES=OFF -DVTK_IGNORE_CMAKE_CXX11_CHECKS=TRUE -DVTK_DATA_EXCLUDE_FROM_ALL=ON ..
-
set VSCMD_SKIP_SENDTELEMETRY=1 & "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -host_arch=amd64 -arch=amd64
cd F:\vtk\vtk\build_amd64
msbuild /m /p:Platform=x64 /p:Configuration=Release All_BUILD.vcxproj /t:Rebuild
-
set VSCMD_SKIP_SENDTELEMETRY=1 & "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -host_arch=amd64 -arch=amd64
cd F:\vtk\vtk\build_amd64
ctest --build-config Release --output-on-failure -E "vtkChartsCoreCxx|vtkCommonDataModelCxx|vtkDomainsChemistryCxx|vtkDomainsChemistryOpenGL2Cxx|vtkFilters|vtkImaging|vtkInfovis|vtkInteractionWidgetsCxx|vtkIOExodusCxx|vtkIOGeometryCxx|vtkIOImageCxx|vtkIOImportCxx|vtkIOExportCxx|vtkIOInfovisCxx|vtkIOLegacyCxx|vtkIOPLYCxx|vtkIOSQLCxx|vtkIOXMLCxx|vtkRendering|vtkViewsInfovisCxx|vtkIOSegYCxx|vtkIOCityGMLCxx-TestCityGMLReader|ViewsInfovisCxx|RenderingVolumeOpenGL2Cxx|RenderingLabelCxx|IOSegYCxx|IOPLYCxx|IOMotionFXCxx|IOImportCxx|IOGeometryCxx|IOExportCxx|IOCityGMLCxx|GeovisCoreCxx|InfovisLayoutCxx|InteractionWidgetsCxx|RenderingVolumeCxx|RenderingAnnotationCxx|RenderingImageCxx|IOExodusCxx|ImagingMorphologicalCxx|ImagingHybridCxx|FiltersProgrammableCxx|FiltersPointsCxx|FiltersHyperTreeCxx|FiltersHybridCxx|FiltersGenericCxx|FiltersFlowPathsCxx|IOXMLCxx|FiltersModelingCxx|IOImageCxx|RenderingOpenGL2Cxx|DomainsChemistryCxx|IOLegacyCxx|ChartsCoreCxx|InfovisCoreCxx|FiltersExtractionCxx|RenderingContext2DCxx|RenderingCoreCxx|FiltersSourcesCxx|ImagingCoreCxx|FiltersGeometryCxx|FiltersGeneralCxx|FiltersCoreCxx|CommonDataModelCxx|RenderingLODCxx-TestLODActor|IOParallelCxx-TestPOpenFOAMReader|FiltersAMRCxx-TestAMRSliceFilterCellData|FiltersAMRCxx-TestAMRSliceFilterPointData|FiltersParallelCxx-TestAngularPeriodicFilter|RenderingSceneGraphCxx-UnitTests|TestDataArrayValueRange|RenderingFreeTypeCxx|VTK::IOTecplotTableCxx-TestTecplotTableReader|VTK::IOParallelXMLCxx-TestXMLReaderChangingBlocksOverTime|VTK::IOParallelCxx-TestBigEndianPlot3D|VTK::IOInfovisCxx|VTK::IOCONVERGECFDCxx-TestCONVERGECFDReader|VTK::IOCGNSReaderCxx|VTK::IOAMRCxx|VTK::IOSQLCxx-TestSQLiteTableReadWrite|VTK::ImagingColorCxx-ImageQuantizeToIndex|VTK::FiltersTopologyCxx-TestFiberSurface|VTK::FiltersSelectionCxx|VTK::FiltersVerdictCxx|VTK::CommonColorCxx-TestColorSeries|VTK::CommonExecutionModelCxx-TestMultiOutputSimpleFilter|VTK::CommonCoreCxx-TestDataArrayTupleRange|VTK::RenderingFreeTypeCxx|VTK::RenderingSceneGraphCxx-UnitTests|VTK::IOChemistryCxx|VTK::DomainsChemistryOpenGL2Cxx*|VTK::IOHDFCxx-TestHDFReader|VTK::IOIossCxx-TestIossAssemblies|VTK::IOIossCxx-TestIossCGNS|VTK::IOIossCxx-TestIossApplyDisplacementsCGNS|VTK::IOIossCxx-TestIossExodusRestarts|VTK::IOIossCxx-TestIossExodus|VTK::IOIossCxx-TestIossAttributes|VTK::IOIossCxx-TestIossNoElementBlocks|VTK::IOIossCxx-TestIossTri6"
Expected behavior
All test pass.
Observed Behavior
Test failed.
Environment
OS: Windows Server 2019
CPU: AMD EPYC 7452 32-Core Processor
Compiler: MSVC 14.29.30133
Language: ENU
Note
You can also check build error messages from attached file test.log