C++ project Methane Kit runs Sonar Scanner analysis as a part of continous integration build in Azure Pipelines for every commit. Starting from commit 3391f5b in develop
branch, SonarCloudAnalyze task has started failing on Windows with error:
##[error]LLVM ERROR: out of memory
LLVM ERROR: out of memory
##[error]ERROR: Exception in thread pool-4-thread-3
com.sonar.cpp.analyzer.Analyzer$AnalyzerException: Exit code != 0: D:\a\1\s\Modules\Graphics\Core\Sources\Methane\Graphics\DirectX12\ShaderDX.cpp
at com.sonar.cpp.analyzer.Subprocess.execute(Subprocess.java:81)
at com.sonar.cpp.analyzer.Subprocess.execute(Subprocess.java:78)
at com.sonar.cpp.plugin.CFamilySensor.lambda$process$8(CFamilySensor.java:643)
at com.sonar.cpp.analyzer.AnalysisExecutor.lambda$submit$0(AnalysisExecutor.java:59)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
MacOS and Linux analysis continued working normally, but Windows analysis now fails for the same source file ShaderDX.cpp
. I enabled verbose output and saved the generated sonar-cfamily-reproducer.zip
in build artifacts to help with your investigation. Also I double-checked that Sonar analysis works fine on the previous commit 206b822. Additionally I tried to run sonar scanner locally on my desktop and it worked just fine for the latest code (not suprising with 32 GB of memory on board). And I should say that I have no idea what code changes could result in this failure.
- Latest Azure Build with Sonar analysis failure on commit 955f446
- Previous Azure Build with Sonar analysis passing normally on ealier commit 206b822
- sonar-analysis-verbose-log.zip (225.7 KB)
- sonar-cfamily-reproducer.zip (4.0 MB)
- SonarScanner v4.4.0.2170