Description
Using a HRTF from the SONICOM HRTF dataset will throw an exception (access violation). This has been tested with multiple HRTFs from the mentioned dataset.
Environment
- OS: Windows 11 22H2 (22621.1778)
- Compiler: MSVC 14.36.32532
- SAF performance library being used:
SAF_USE_INTEL_MKL
- Any optional SAF flags enabled:
SAF_ENABLE_SOFA_READER_MODULE, SAF_ENABLE_EXAMPLES_TESTS
- Visual Studio Professional 2022 17.6.2, CMake 3.26.2
Reproducible Steps
Steps to create the smallest reproducible scenario:
- Modify
test__saf_example_ambi_bin() in file src/test/test__examples.c to load a SOFA file from the SONICOM dataset:
// ...
ambi_bin_create(&hAmbi);
ambi_bin_setSofaFilePath(hAmbi, "path/to/eg/P0010_Windowed_48kHz.sofa");
// ...
- Build and run
saf_test with above environment.
Expected Output
Test should pass.
Actual Output
Access violation in framework/modules/saf_utilities/saf_utility_geometry.c:782 while trying to read faceIdx[k]. faceIdx does not exist because nFaceIdx is 0 here.
Additional information
Call Stack:
[0] saf_test.exe!sphVoronoi
at ...\framework\modules\saf_utilities\saf_utility_geometry.c(782)
[1] saf_test.exe!getVoronoiWeights
at ...\framework\modules\saf_utilities\saf_utility_geometry.c(959)
[2] saf_test.exe!ambi_bin_initCodec
at ...\examples\src\ambi_bin\ambi_bin.c(262)
[3] saf_test.exe!test__saf_example_ambi_bin
at ...\test\src\test__examples.c(56)
[4] saf_test.exe!main_test
at ...\test\src\saf_test.c(173)
[5] saf_test.exe!main
at ...\test\src\saf_test_wrapper.cpp(30)
Description
Using a HRTF from the SONICOM HRTF dataset will throw an exception (access violation). This has been tested with multiple HRTFs from the mentioned dataset.
Environment
SAF_USE_INTEL_MKLSAF_ENABLE_SOFA_READER_MODULE,SAF_ENABLE_EXAMPLES_TESTSReproducible Steps
Steps to create the smallest reproducible scenario:
test__saf_example_ambi_bin()in filesrc/test/test__examples.cto load a SOFA file from the SONICOM dataset:saf_testwith above environment.Expected Output
Test should pass.
Actual Output
Access violation in
framework/modules/saf_utilities/saf_utility_geometry.c:782while trying to readfaceIdx[k].faceIdxdoes not exist becausenFaceIdxis 0 here.Additional information
Call Stack: