Hello,
I'm encountering a consistent compilation failure when building the sensorplugin on Windows with Visual Studio 2022. The build succeeds for the core mujocolibrary and all other plugins (actuator, elasticity, etc.), but fails specifically on sensor.vcxproj.
Environment:
OS: Windows 10/11
Compiler: MSVC (Visual Studio 2022 Community) version 19.34.31948.0
CMake: 3.24+ (or 4.3 as shown in logs)
Build Type: Release
MuJoCo Commit: 47264877 (pinned by the UnrealRoboticsLab project)
Steps to Reproduce:
Configure with CMake: cmake -B build -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=Release
Build: cmake --build build --config Release
Observed Error:
The build fails during the compilation of plugin/sensor/sources (register.cc, touch_grid.cc), with the following error from MSBuild:
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(787,5): error MSB6006: "CL.exe" exited with code -1073741571. [D:\UnrealRoboticsLabCode\UnrealRoboticsLab\third_party\MuJoCo\src\build\plugin\sensor\sensor.vcxproj]
Error Code Details:
The exit code -1073741571corresponds to 0xC00000FD, which is the Windows status code for STACK_OVERFLOW. This indicates that the MSVC compiler (CL.exe) itself is encountering an internal stack overflow while processing these specific source files.
Question / Request:
Could the team please investigate this compiler-specific stack overflow? It might be triggered by particularly complex template metaprogramming or constexpr computations within register.ccor touch_grid.ccthat hit a limit in this version of MSVC.
Is this a known issue? Are there any suggested code modifications or compiler flags to work around it without disabling the entire plugin?
Thank you for your time
Hello,
I'm encountering a consistent compilation failure when building the sensorplugin on Windows with Visual Studio 2022. The build succeeds for the core mujocolibrary and all other plugins (actuator, elasticity, etc.), but fails specifically on sensor.vcxproj.
Environment:
OS: Windows 10/11
Compiler: MSVC (Visual Studio 2022 Community) version 19.34.31948.0
CMake: 3.24+ (or 4.3 as shown in logs)
Build Type: Release
MuJoCo Commit: 47264877 (pinned by the UnrealRoboticsLab project)
Steps to Reproduce:
Configure with CMake: cmake -B build -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=Release
Build: cmake --build build --config Release
Observed Error:
The build fails during the compilation of plugin/sensor/sources (register.cc, touch_grid.cc), with the following error from MSBuild:
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(787,5): error MSB6006: "CL.exe" exited with code -1073741571. [D:\UnrealRoboticsLabCode\UnrealRoboticsLab\third_party\MuJoCo\src\build\plugin\sensor\sensor.vcxproj]
Error Code Details:
The exit code -1073741571corresponds to 0xC00000FD, which is the Windows status code for STACK_OVERFLOW. This indicates that the MSVC compiler (CL.exe) itself is encountering an internal stack overflow while processing these specific source files.
Question / Request:
Could the team please investigate this compiler-specific stack overflow? It might be triggered by particularly complex template metaprogramming or constexpr computations within register.ccor touch_grid.ccthat hit a limit in this version of MSVC.
Is this a known issue? Are there any suggested code modifications or compiler flags to work around it without disabling the entire plugin?
Thank you for your time