openal-soft icon indicating copy to clipboard operation
openal-soft copied to clipboard

Debug Assertion Failed - cannot dereference end span iterator

Open Vercidium opened this issue 2 months ago • 2 comments

When building from source and running altonegen.exe, this assertion occurs:

Image

When building with the Release configuration, altonegen.exe runs without issues.

Steps to reproduce

I'm on Windows 10 version 22H2 (OS Build 19045.6466) with Visual Studio 2022 v17.14.13 (August 2025) and cmake version 4.2.1.

I cloned the repository fresh and ran:

cd openal-soft
cd build
cmake -G "Visual Studio 17 2022" -A x64 ..
cmake --build .

Here is my full build log:

C:\Users\verc\projects\openal-soft\build>cmake -G "Visual Studio 17 2022" -A x64 ..
-- Selecting Windows SDK version 10.0.26100.0 to target Windows 10.0.19045.
-- The C compiler identification is MSVC 19.44.35215.0
-- The CXX compiler identification is MSVC 19.44.35215.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Looking for __GLIBCXX__
-- Looking for __GLIBCXX__ - not found
-- Looking for _LIBCPP_VERSION
-- Looking for _LIBCPP_VERSION - not found
-- Looking for _MSVC_STL_UPDATE
-- Looking for _MSVC_STL_UPDATE - found
-- C++20 modules enabled using MSVC compiler v19.44.35215.0 (CMake 4.2.1, Visual Studio 17 2022 generator)
-- {fmt} version: 11.2.0
-- Build type: RelWithDebInfo
-- Performing Test HAVE_SHGETKNOWNFOLDERPATH_NO_NTDDI
-- Performing Test HAVE_SHGETKNOWNFOLDERPATH_NO_NTDDI - Success
-- Performing Test HAVE_LIBATOMIC
-- Performing Test HAVE_LIBATOMIC - Failed
-- Performing Test HAVE_PERMISSIVE_SWITCH
-- Performing Test HAVE_PERMISSIVE_SWITCH - Success
-- Looking for xmmintrin.h
-- Looking for xmmintrin.h - found
-- Looking for emmintrin.h
-- Looking for emmintrin.h - found
-- Looking for pmmintrin.h
-- Looking for pmmintrin.h - found
-- Looking for smmintrin.h
-- Looking for smmintrin.h - found
-- Looking for arm_neon.h
-- Looking for arm_neon.h - not found
-- Performing Test HAVE_SSE_INTRINSICS
-- Performing Test HAVE_SSE_INTRINSICS - Success
-- Looking for cpuid.h
-- Looking for cpuid.h - not found
-- Looking for intrin.h
-- Looking for intrin.h - found
-- Looking for guiddef.h
-- Looking for guiddef.h - found
-- Looking for pow in m
-- Looking for pow in m - not found
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - not found
-- Looking for dlfcn.h
-- Looking for dlfcn.h - not found
-- Looking for dlopen in dl
-- Looking for dlopen in dl - not found
-- Performing Test HAVE_CPUID_INTRINSIC
-- Performing Test HAVE_CPUID_INTRINSIC - Success
-- Looking for proc_pidpath
-- Looking for proc_pidpath - not found
-- Could NOT find PulseAudio (missing: PULSEAUDIO_LIBRARY PULSEAUDIO_INCLUDE_DIR)
-- Looking for mmdeviceapi.h
-- Looking for mmdeviceapi.h - found
-- Looking for dsound.h
-- Looking for dsound.h - found
-- Could NOT find JACK (missing: JACK_LIBRARY JACK_INCLUDE_DIR)
-- Could NOT find OpenSL (missing: OPENSL_LIBRARY OPENSL_INCLUDE_DIR OPENSL_ANDROID_INCLUDE_DIR)
-- Could NOT find PortAudio (missing: PORTAUDIO_LIBRARY PORTAUDIO_INCLUDE_DIR)
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.34.1.windows.1")
-- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
-- Could NOT find MySOFA (missing: MYSOFA_LIBRARY MYSOFA_INCLUDE_DIR ZLIB_FOUND)
-- Could NOT find Qt6Widgets
-- Could NOT find SndFile (missing: SNDFILE_LIBRARY SNDFILE_INCLUDE_DIR)
--
-- STL hardening level: Default
--
-- Building OpenAL with support for the following backends:
--     WASAPI, DirectSound, WinMM, WaveFile, Null
--
-- Building with support for CPU extensions:
--     Default, SSE, SSE2, SSE3, SSE4.1
--
-- Building with legacy EAX extension support
--
-- Embedding HRTF datasets
--
-- Installing library and headers
-- Installing sample configuration
-- Installing HRTF data files
-- Installing AmbDec presets
--
-- Building utility programs
--
-- Building example programs
--
-- Configuring done (21.1s)
-- Generating done (0.2s)
-- Build files have been written to: C:/Users/verc/projects/openal-soft/build

C:\Users\verc\projects\openal-soft\build>cmake --build .
MSBuild version 17.14.19+164abd434 for .NET Framework

  1>Checking Build System
  1>Generating version_witness.txt
  Building Custom Rule C:/Users/verc/projects/openal-soft/CMakeLists.txt
  Building Custom Rule C:/Users/verc/projects/openal-soft/fmt-11.2.0/CMakeLists.txt
  format.cc
  os.cc
  Generating Code...
  alsoft.fmt.vcxproj -> C:\Users\verc\projects\openal-soft\build\fmt-11.2.0\alsoft.fmt.dir\Debug\alsoft.fmt.lib
  Building Custom Rule C:/Users/verc/projects/openal-soft/CMakeLists.txt
  Scanning sources for module dependencies...
  almalloc.cpp
  alcomplex.cpp
  alstring.cpp
  althrd_setname.cpp
  dynload.cpp
  filesystem.cpp
  polyphase_resampler.cpp
  pffft.cpp
  strutils.cpp
  gsl.cppm
  Compiling...
  almalloc.cpp
  alcomplex.cpp
  alstring.cpp
  filesystem.cpp
  althrd_setname.cpp
  dynload.cpp
  polyphase_resampler.cpp
  strutils.cpp
  pffft.cpp
  gsl.cppm
  alsoft.common.vcxproj -> C:\Users\verc\projects\openal-soft\build\Debug\alsoft.common.lib
  1>Generating default_hrtf.txt
  Building Custom Rule C:/Users/verc/projects/openal-soft/CMakeLists.txt
  Scanning sources for module dependencies...
  buffer.cpp
  effect.cpp
  convolution.cpp
  debug.cpp
  auxeffectslot.cpp
  autowah.cpp
  echo.cpp
  dedicated.cpp
  effects.cpp
  compressor.cpp
  distortion.cpp
  equalizer.cpp
  fshifter.cpp
  modulator.cpp
  null.cpp
  chorus.cpp
  pshifter.cpp
  vmorpher.cpp
  error.cpp
  reverb.cpp
  event.cpp
  extension.cpp
  listener.cpp
  source.cpp
  eax.cpp
  state.cpp
  filter.cpp
  api.cpp
  call.cpp
  exception.cpp
  fx_slot_index.cpp
  fx_slots.cpp
  utils.cpp
  alc.cpp
  alu.cpp
  alconfig.cpp
  autowah.cpp
  device.cpp
  context.cpp
  chorus.cpp
  convolution.cpp
  dedicated.cpp
  compressor.cpp
  equalizer.cpp
  distortion.cpp
  echo.cpp
  modulator.cpp
  fshifter.cpp
  null.cpp
  pshifter.cpp
  reverb.cpp
  vmorpher.cpp
  events.cpp
  panning.cpp
  base.cpp
  loopback.cpp
  null.cpp
  wasapi.cpp
  dsound.cpp
  winmm.cpp
  wave.cpp
  ambidefs.cpp
  bformatdec.cpp
  ambdec.cpp
  bs2b.cpp
  converter.cpp
  bsinc_tables.cpp
  cpu_caps.cpp
  context.cpp
  cubic_tables.cpp
  devformat.cpp
  device.cpp
  effectslot.cpp
  except.cpp
  biquad.cpp
  splitter.cpp
  helpers.cpp
  nfc.cpp
  hrtf.cpp
  fpu_ctrl.cpp
  hrtf_loader.cpp
  hrtf_resource.cpp
  logging.cpp
  mastering.cpp
  uhjfilter.cpp
  mixer.cpp
  storage_formats.cpp
  uiddefs.cpp
  voice.cpp
  mixer_c.cpp
  mixer_sse.cpp
  mixer_sse2.cpp
  mixer_sse3.cpp
  mixer_sse41.cpp
  Compiling...
  effect.cpp
  auxeffectslot.cpp
  debug.cpp
  autowah.cpp
  buffer.cpp
  convolution.cpp
  dedicated.cpp
  compressor.cpp
  chorus.cpp
  fshifter.cpp
  distortion.cpp
  equalizer.cpp
  effects.cpp
  modulator.cpp
  echo.cpp
  null.cpp
  pshifter.cpp
  reverb.cpp
  vmorpher.cpp
  event.cpp
  error.cpp
  filter.cpp
  fx_slots.cpp
  extension.cpp
  listener.cpp
  api.cpp
  exception.cpp
  eax.cpp
  state.cpp
  fx_slot_index.cpp
  call.cpp
  source.cpp
  utils.cpp
  alc.cpp
  alconfig.cpp
  context.cpp
  alu.cpp
  device.cpp
  dedicated.cpp
  chorus.cpp
  compressor.cpp
  autowah.cpp
  convolution.cpp
  distortion.cpp
  echo.cpp
  equalizer.cpp
  fshifter.cpp
  modulator.cpp
  null.cpp
  pshifter.cpp
  reverb.cpp
  vmorpher.cpp
  events.cpp
  base.cpp
  panning.cpp
  loopback.cpp
  null.cpp
  wasapi.cpp
  dsound.cpp
  winmm.cpp
  wave.cpp
  ambdec.cpp
  bformatdec.cpp
  ambidefs.cpp
  bs2b.cpp
  bsinc_tables.cpp
  context.cpp
  converter.cpp
  cpu_caps.cpp
  devformat.cpp
  cubic_tables.cpp
  device.cpp
  effectslot.cpp
  except.cpp
  nfc.cpp
  biquad.cpp
  splitter.cpp
  fpu_ctrl.cpp
  helpers.cpp
  hrtf.cpp
  hrtf_resource.cpp
  hrtf_loader.cpp
  logging.cpp
  mastering.cpp
  mixer.cpp
  storage_formats.cpp
  uhjfilter.cpp
  voice.cpp
  uiddefs.cpp
  mixer_c.cpp
  mixer_sse.cpp
  mixer_sse2.cpp
  mixer_sse41.cpp
  mixer_sse3.cpp
     Creating library C:/Users/verc/projects/openal-soft/build/Debug/OpenAL32.lib and object C:/Users/verc/projects/openal-soft/build/Debug/OpenAL3
  2.exp
  OpenAL.vcxproj -> C:\Users\verc\projects\openal-soft\build\Debug\OpenAL32.dll
  Building Custom Rule C:/Users/verc/projects/openal-soft/CMakeLists.txt
  Scanning sources for module dependencies...
  al.cppm
  alc.cppm
  efx.cppm
  alstd.cppm
  alext.cppm
  openal.cppm
  Compiling...
  alc.cppm
  al.cppm
  alstd.cppm
  efx.cppm
  alext.cppm
  openal.cppm
  openal.modules.vcxproj -> C:\Users\verc\projects\openal-soft\build\openal.modules.dir\Debug\openal.modules.lib
  Building Custom Rule C:/Users/verc/projects/openal-soft/CMakeLists.txt
  alhelpers.c
  alsoft.excommon.vcxproj -> C:\Users\verc\projects\openal-soft\build\Debug\alsoft.excommon.lib
  Building Custom Rule C:/Users/verc/projects/openal-soft/CMakeLists.txt
  Scanning sources for module dependencies...
  aldebug.cpp
  Compiling...
  aldebug.cpp
  aldebug.vcxproj -> C:\Users\verc\projects\openal-soft\build\Debug\aldebug.exe
  Building Custom Rule C:/Users/verc/projects/openal-soft/CMakeLists.txt
  Scanning sources for module dependencies...
  allafplay.cpp
  Compiling...
  allafplay.cpp
  allafplay.vcxproj -> C:\Users\verc\projects\openal-soft\build\Debug\allafplay.exe
  Building Custom Rule C:/Users/verc/projects/openal-soft/CMakeLists.txt
  alrecord.c
  alrecord.vcxproj -> C:\Users\verc\projects\openal-soft\build\Debug\alrecord.exe
  Building Custom Rule C:/Users/verc/projects/openal-soft/CMakeLists.txt
  altonegen.c
  altonegen.vcxproj -> C:\Users\verc\projects\openal-soft\build\Debug\altonegen.exe
  Building Custom Rule C:/Users/verc/projects/openal-soft/CMakeLists.txt
  openal-info.c
  openal-info.vcxproj -> C:\Users\verc\projects\openal-soft\build\Debug\openal-info.exe
  Building Custom Rule C:/Users/verc/projects/openal-soft/CMakeLists.txt

Vercidium avatar Dec 12 '25 01:12 Vercidium