-
Notifications
You must be signed in to change notification settings - Fork 103
Open
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed
Description
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 filesrc/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)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed