SandroLuck/SonarDelphi

Stack Overflow Error when running on bigger projects

Opened this issue · 4 comments

Hey there,

I am experiencing random StackOverflowError exceptions on my projects, when I use the plugin.

The output on the sonar-scanner:
image

I am running SonarQube server 5.6.3 with the latest jar from your releases.

So far, only using exclusions is helping to reduce the amount of code analyzed, which is not satisfying at all.

Is there any workaround for this issue?

Harald

Hi, Harald. Am i correct that you are analyzing several Million lines of Code?
The Problem is the cyclomatic complexity of your project, so giving more ram to Java might solve this(it might be impossible to give enoughe ram if you are analyzing several Million lines of code).Also there is a Bug which interacts with the ram Problem above. It Sounds Strange but if you identified the Problem Files Just put an additional ';' befor the Last 'end' of the file and it might reduce the bugsize. Also simply adding the Files to Sonar.exclude might work. Im sorry for this but the Plugin might Not scale above 1mio lines of Code. Also breaking Down the Analysis into several chunks is an Option.

Sry for the Germany autocorrectur from my Phone.

@SandroLuck The number of lines of code is not that huge. It is roughly 32k LoC. So not that much actually. I can try adding more RAM to the Java process (of SonarQube I guess, right?)

Otherwise I gonna try the ';' solution.

Keep you posted.

Any solution for this, i have the same problem even after increasing the memory heap?
PS: number of files is not that important.