Sonar Scanner error/crash with swift(iOS) - java.lang.IllegalStateException: exit code != 0

(Sushant Jagdale) #1

MacPro-10055:~ bamboo$ /opt/sonar-scanner- --version
INFO: Scanner configuration file: /opt/sonar-scanner-
INFO: Project root configuration file: NONE
INFO: SonarQube Scanner
INFO: Java 1.8.0_121 Oracle Corporation (64-bit)
INFO: Mac OS X 10.14.3 x86_64

Errors in log:
15:23:22.493 ERROR: Exception in thread pool-4-thread-1
java.lang.IllegalStateException: exit code != 0
at com.sonar.cpp.analyzer.Subprocess.execute(
at com.sonar.cpp.analyzer.Subprocess.execute(
at com.sonar.cpp.plugin.CFamilySensor.lambda$process$4(
at com.sonar.cpp.analyzer.AnalysisExecutor.lambda$submit$0(
at java.util.concurrent.Executors$
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$

15:23:22.615 INFO: ------------------------------------------------------------------------
15:23:22.615 INFO: ------------------------------------------------------------------------
15:23:22.615 INFO: Total time: 33.564s
15:23:22.777 INFO: Final Memory: 116M/2453M
15:23:22.777 INFO: ------------------------------------------------------------------------
15:23:22.777 ERROR: Error during SonarQube Scanner execution
java.lang.IllegalStateException: java.lang.IllegalStateException: exit code != 0

1 Like
(Massimo Paladin) #2

Hi @Sushant_Jagdale,

what version of sonar-cfamily-plugin do you have installed? 6.0 or 6.1?
Could you please share the full log privately with me?

(Sushant Jagdale) #3

Hi Massimo,

I have tried using both 6.0 and 6.1 version of sonar-cfamily-plugin but it didn’t help much.

I will send you the logs separately.

(Massimo Paladin) #4

Hi @Sushant_Jagdale,

I sent you a private message for sharing the logs.

(Sushant Jagdale) #5

Hi @mpaladin

I have shared the logs, Kindly advise the next course of action, Many thanks.

1 Like
(liohau) #6

Same issue on my side, did you find a solution ? How can I know if it is exactly the same issue ?

(Massimo Paladin) #7

Hi @liohau,

I would suggest you to open a new topic where we can track your issue.