-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash with pointer on a not valid line #34
Comments
Just to be sure, are you using the latest release(version 0.3.3)? |
Yes, I installed the last 0.3.3 version (not a snapshot). |
Please, run the analysis using debug mode (-X,--debug) and attach the log file. |
The complete log of the problem: I'll look for a duplicate class name to see if it's the same problem. |
I got the error when analyzing another project. Now i will investigate the cause to fix it. |
Please, try with this snapshot: 0.3.4-16012016.jar. |
I have still the problem: E:\jenkins\workspace\Grant>sonar-runner -X > Sonar.log |
Thank you for the feedback. |
Hi, Will some body help on this. ERROR: Error during Sonar runner execution File count of xxxx.java is 582, where us in sonar findbugs-result.. It's considering as 712 lines.. |
Hi, i've got an other error with the snapshot 0.3.4-16012016.jar.:
Any idea? |
Hi, I think I solved most bugs described in this section. Most of them seemed to have something to do with the newer versions of sonarQube/scanner/runner. This sonar-delphi-plugin-0.3.4-Beta.zip is a SonarQube 5.6 compatible version of the sonar-plugin. The source code can be found at https://github.com/SandroLuck/sonar-delphi . |
Hello! I have Sonar 5.6.3 and experienced this problem (same as @rajkumar7774 ) with two projects (about 10k lines avg). I can confirm that the solution from @SandroLuck works :) |
This crash can be provoqued by two problems in the source code :
|
Thanks, @Aarklendoia , reviewing the logs I've found several occurrences of the second item but I can't change the code right now. |
I know this is an old issue, but I think I have found a reason for this happening. If there are 2 units in the analysis that have the same name (in our case modules created for unit testing), then the analysis get confused, when I temporarily removed these duplicate units, then the issue goes away. |
Sonar crash during analyse (file with the problem : EPSSCallBackController.zip) :
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
Total time: 23.984s
Final Memory: 51M/823M
INFO: ------------------------------------------------------------------------
ERROR: Error during Sonar runner execution
org.sonar.runner.impl.RunnerException: Unable to execute Sonar
at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:91)
at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75)
at java.security.AccessController.doPrivileged(Native Method)
at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)
at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102)
at org.sonar.runner.api.Runner.execute(Runner.java:100)
at org.sonar.runner.Main.executeTask(Main.java:70)
at org.sonar.runner.Main.execute(Main.java:59)
at org.sonar.runner.Main.main(Main.java:53)
Caused by: java.lang.IllegalArgumentException: 711 is not a valid line for pointer. File [moduleKey=GRANT, relative=work
space/EPERMIT.XE8/EPERMITSS00/EPSSCallBackController.pas, basedir=E:\jenkins\jobs\Grant] has 147 line(s)
at org.sonar.api.internal.google.common.base.Preconditions.checkArgument(Preconditions.java:148)
at org.sonar.api.batch.fs.internal.DefaultInputFile.checkValid(DefaultInputFile.java:214)
at org.sonar.api.batch.fs.internal.DefaultInputFile.newPointer(DefaultInputFile.java:208)
at org.sonar.api.batch.fs.internal.DefaultInputFile.selectLine(DefaultInputFile.java:243)
at org.sonar.batch.issue.DeprecatedIssueBuilderWrapper.line(DeprecatedIssueBuilderWrapper.java:59)
at org.sonar.plugins.delphi.metrics.ComplexityMetrics.addIssue(ComplexityMetrics.java:281)
at org.sonar.plugins.delphi.metrics.ComplexityMetrics.processFunction(ComplexityMetrics.java:191)
at org.sonar.plugins.delphi.metrics.ComplexityMetrics.analyse(ComplexityMetrics.java:144)
at org.sonar.plugins.delphi.DelphiSensor.processFiles(DelphiSensor.java:131)
at org.sonar.plugins.delphi.DelphiSensor.analyse(DelphiSensor.java:112)
at org.sonar.batch.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:58)
at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:50)
at org.sonar.batch.phases.PhaseExecutor.execute(PhaseExecutor.java:98)
at org.sonar.batch.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:192)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:100)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:85)
at org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.java:258)
at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:253)
at org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:243)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:100)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:85)
at org.sonar.batch.bootstrap.GlobalContainer.executeAnalysis(GlobalContainer.java:153)
at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:110)
at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:76)
at org.sonar.runner.batch.IsolatedLauncher.execute(IsolatedLauncher.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:87)
... 9 more
The text was updated successfully, but these errors were encountered: