# Error during the Run code Analysis task in Azure DevOps server

**URL:** <https://community.sonarsource.com/t/error-during-the-run-code-analysis-task-in-azure-devops-server/103710>\
**Category:** SonarQube Server / Community Build\
**Tags:** dotnet\
**Created:** [November 2, 2023, 3:44pm UTC](https://community.sonarsource.com/t/error-during-the-run-code-analysis-task-in-azure-devops-server/103710 "2023-11-02T15:44:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![avoisin](https://avatars.discourse-cdn.com/v4/letter/a/90ced4/32.png) [@avoisin](https://community.sonarsource.com/u/avoisin)\
**Post date:** [November 2, 2023, 3:44pm UTC](https://community.sonarsource.com/t/error-during-the-run-code-analysis-task-in-azure-devops-server/103710/1 "2023-11-02T15:44:46Z")

</div>

Must-share information (formatted with [Markdown](https://commonmark.org/help/)):

- Used version :
  - **SonarQube : Enterprise Edition Version 9.9 (build 65466)**
  - **SonarScanner : 4.8.0.2856**
  - **SonarQube extension for Azure DevOps Servers 5.11.1**

- SonarQube is deployed: **zip**
- what are you trying to achieve : **we try to do a code analysis**

We use SonarQube in Azure DevOps Server.  
We have errors on the “Run Code Analysis” task. On some of our pipelines there are errors of this type:  
For your information, I need to hide some information and I won’t be able to share the sonar-cfamily-reproducer.zip file.

```auto
##[error]15:33:43.561 ERROR: Exception in thread pool-4-thread-6
15:33:43.561 ERROR: Exception in thread pool-4-thread-6
##[error]com.sonar.cpp.analyzer.Analyzer$AnalyzerException: Exit code -1073740791: F:\A20\_work\68\s\path\to\cpp\file
	at com.sonar.cpp.analyzer.AnalysisHandler.acceptResult(AnalysisHandler.java:40)
	at com.sonar.cpp.analyzer.Subprocess.execute(Subprocess.java:113)
	at com.sonar.cpp.plugin.CFamilySensor.lambda$process$19(CFamilySensor.java:1074)
	at com.sonar.cpp.analyzer.AnalysisExecutor.lambda$submit$0(AnalysisExecutor.java:58)
com.sonar.cpp.analyzer.Analyzer$AnalyzerException: Exit code -1073740791: F:\A20\_work\68\s\path\to\cpp\file
	at com.sonar.cpp.analyzer.AnalysisHandler.acceptResult(AnalysisHandler.java:40)
	at com.sonar.cpp.analyzer.Subprocess.execute(Subprocess.java:113)
	at com.sonar.cpp.plugin.CFamilySensor.lambda$process$19(CFamilySensor.java:1074)
	at com.sonar.cpp.analyzer.AnalysisExecutor.lambda$submit$0(AnalysisExecutor.java:58)
##[error]at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
##[error]at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
##[error]at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
##[error]at java.base/java.lang.Thread.run(Thread.java:833)
	at java.base/java.lang.Thread.run(Thread.java:833)

```

And at the end of the task I get this message:

```auto
##[error]15:34:28.921 ERROR: 
An error occurred while analyzing the following compilation unit:
15:34:28.921 ERROR: 
An error occurred while analyzing the following compilation unit: 
##[error]F:\A20\_work\68\s\path\to\cpp\file
A file named "sonar-cfamily-reproducer.zip" has been generated to help the problem investigation.
Please contact SonarSource support providing the following file to help improving the analyzer:
  F:\A20\_work\68\sonar-cfamily-reproducer.zip
  F:\A20\_work\68\s\path\to\cpp\file
A file named "sonar-cfamily-reproducer.zip" has been generated to help the problem investigation.
Please contact SonarSource support providing the following file to help improving the analyzer:
  F:\A20\_work\68\sonar-cfamily-reproducer.zip

15:34:30.202 INFO: ------------------------------------------------------------------------
15:34:30.202 INFO: EXECUTION FAILURE
15:34:30.202 INFO: ------------------------------------------------------------------------
15:34:30.202 INFO: Total time: 33:08.921s
15:34:30.264 INFO: Final Memory: 108M/432M
15:34:30.264 INFO: ------------------------------------------------------------------------
##[error]15:34:30.264 ERROR: Error during SonarScanner execution
15:34:30.264 ERROR: Error during SonarScanner execution
##[error]java.lang.IllegalStateException: 
An error occurred while analyzing the following compilation unit: 
  F:\A20\_work\68\s\path\to\cpp\file
java.lang.IllegalStateException: 
An error occurred while analyzing the following compilation unit: 
  F:\A20\_work\68\s\path\to\cpp\file
##[error]A file named "sonar-cfamily-reproducer.zip" has been generated to help the problem investigation.
Please contact SonarSource support providing the following file to help improving the analyzer:
A file named "sonar-cfamily-reproducer.zip" has been generated to help the problem investigation.
Please contact SonarSource support providing the following file to help improving the analyzer:
##[error]F:\A20\_work\68\sonar-cfamily-reproducer.zip
  F:\A20\_work\68\sonar-cfamily-reproducer.zip

	at org.sonar.scanner.bootstrap.SpringGlobalContainer.doAfterStart(SpringGlobalContainer.java:137)
	at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:188)
	at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:167)
##[error]at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:72)
	at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:66)
	at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:72)
	at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:66)
##[error]at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
	at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
##[error]at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
##[error]at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
##[error]at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
##[error]at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
##[error]at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
	at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
##[error]at jdk.proxy1/jdk.proxy1.$Proxy0.execute(Unknown Source)
	at jdk.proxy1/jdk.proxy1.$Proxy0.execute(Unknown Source)
##[error]at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
	at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
##[error]at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
	at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
##[error]at org.sonarsource.scanner.cli.Main.execute(Main.java:126)
	at org.sonarsource.scanner.cli.Main.execute(Main.java:126)
##[error]at org.sonarsource.scanner.cli.Main.execute(Main.java:81)
	at org.sonarsource.scanner.cli.Main.execute(Main.java:81)
##[error]at org.sonarsource.scanner.cli.Main.main(Main.java:62)
	at org.sonarsource.scanner.cli.Main.main(Main.java:62)
Process returned exit code 1
##[error]The SonarScanner did not complete successfully
The SonarScanner did not complete successfully
##[error]15:34:30.936 Post-processing failed. Exit code: 1
15:34:30.936 Post-processing failed. Exit code: 1
##[error]The process 'F:\A20\_work\_tasks\SonarQubePrepare\5.11.1\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe' failed with exit code 1

```

Do you know what caused the error?  
Do you know where I can look to find the error?

**Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!**

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [November 3, 2023, 5:48pm UTC](https://community.sonarsource.com/t/error-during-the-run-code-analysis-task-in-azure-devops-server/103710/2 "2023-11-03T17:48:40Z")

</div>

Hi,

Welcome to the community!

Can you share your full analysis log, starting from at least your analysis command, redacted as necessary?

&nbsp;  
Thx,  
Ann
