Ericsson / CodeCheckerEclipsePlugin

This is an Eclipse plugin that shows C/C++ static analysis results found by Clang Static Analyzer and Clang Tidy
Eclipse Public License 1.0
32 stars 13 forks source link

Installation fails #164

Closed SvenHaedrich closed 5 years ago

SvenHaedrich commented 5 years ago

My installation failed with the following message:

An error has occurred. See the log file
/home/sven/Ericsson/CodeCheckerEclipsePlugin/tests/org.codechecker.eclipse.rcp.it.tests/target/work/data/.metadata/.log.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] org.codechecker.eclipse.root 1.0.0-SNAPSHOT ........ SUCCESS [ 10.544 s]
[INFO] org.codechecker.eclipse.bundles 1.0.0-SNAPSHOT ..... SUCCESS [  0.797 s]
[INFO] org.codechecker.eclipse.plugin 0.0.6-SNAPSHOT ...... SUCCESS [ 12.096 s]
[INFO] org.codechecker.eclipse.features 1.0.0-SNAPSHOT .... SUCCESS [  0.585 s]
[INFO] org.codechecker.eclipse.feature 1.0.0-SNAPSHOT ..... SUCCESS [  1.072 s]
[INFO] org.codechecker.eclipse.releng 1.0.0-SNAPSHOT ...... SUCCESS [  0.730 s]
[INFO] org.codechecker.eclipse.update 1.0.0-SNAPSHOT ...... SUCCESS [  3.434 s]
[INFO] org.codechecker.eclipse.target 1.0.0-SNAPSHOT ...... SUCCESS [  0.592 s]
[INFO] org.codechecker.eclipse.tests 1.0.0-SNAPSHOT ....... SUCCESS [  0.434 s]
[INFO] org.codechecker.eclipse.rcp.shared 1.0.0-SNAPSHOT .. SUCCESS [  0.854 s]
[INFO] org.codechecker.eclipse.rcp.unit.tests 1.0.0-SNAPSHOT SUCCESS [  7.579 s]
[INFO] org.codechecker.eclipse.rcp.it.tests 1.0.0-SNAPSHOT  FAILURE [ 12.011 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  03:54 min
[INFO] Finished at: 2019-07-02T13:18:42+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:1.3.0:test (default-test) on project org.codechecker.eclipse.rcp.it.tests: An unexpected error occured while launching the test runtime (return code 13). See log /home/sven/Ericsson/CodeCheckerEclipsePlugin/tests/org.codechecker.eclipse.rcp.it.tests/target/work/data/.metadata/.log for details. -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :org.codechecker.eclipse.rcp.it.tests

The link to apache.org gave no useful information. The log-file is attached. LogFile.txt Any help is welcome.

vodorok commented 5 years ago

Hey, @SvenHaedrich! I'm currently investigating this issue. There is a pull request in the works that should resolve this problem. The problem in short: Tycho mixes up java versions, that's why the integration test phase fails. If you could test it with openjdk8, that build is definitely working. Btw congrats for the first issue.

SvenHaedrich commented 5 years ago

Thank You for your fast and competent reaction. On my machine:

 java -version
openjdk version "11.0.3" 2019-04-16
OpenJDK Runtime Environment (build 11.0.3+7-Ubuntu-1ubuntu218.04.1)
OpenJDK 64-Bit Server VM (build 11.0.3+7-Ubuntu-1ubuntu218.04.1, mixed mode, sharing)

runs OpenJDK 11. But you already new that. Anyways, I am hesitant to downgrade to OpenJDK 8. What is the expected (and maybe overly optimistic) timeframe for the pull request you mention?

vodorok commented 5 years ago

Hey @SvenHaedrich! If you take a look on #167 it's building well on Travis across a variety of different jdk versions, 11 included. You can try that and see if it's compiles. The actual merging will be some time later because a the patch that it depends still has some problems with Travis on openjdk9, but that problem is unrelated to this. Thanks for bringing our attention to this issue!

SvenHaedrich commented 5 years ago

Ok, i checked out the #167 branch and ran the maven script. The final summary reported now SUCCESS for every step. Anyhow, on eclipse start-up I receive a bunch of failed assertions from g_base64_encode_step (in != NULL), another bunch of "Negative content width" messages. In the eclipse-UI a message box pops-up "An internal error occurred during: "CodeChecker Startup Job". java.lang.NullPointerException". BTW, I am using STM32Cube's eclipse.

vodorok commented 5 years ago

Well, can you please provide a stack trace for that npe, and a link to the used eclipse?

SvenHaedrich commented 5 years ago

The later is easy. See here https://www.st.com/en/development-tools/stm32cubeide.html?ecmp=tt11319_gl_link_may2019 . I am not so sure how to get a stack trace. Sorry. Thank you for your attention.

------ Originalnachricht ------ Von: "Vodorok" notifications@github.com An: "Ericsson/CodeCheckerEclipsePlugin" CodeCheckerEclipsePlugin@noreply.github.com Cc: "Sven Hädrich" svh@sevenlab.de; "Mention" mention@noreply.github.com Gesendet: 04.07.2019 14:39:34 Betreff: Re: [Ericsson/CodeCheckerEclipsePlugin] Installation fails (#164)

Well, can you please provide a stack trace for that npe, and a link to the used eclipse?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Ericsson/CodeCheckerEclipsePlugin/issues/164?email_source=notifications&email_token=AMKYFTP4VYKXUQVSOHI22RTP5XVQLA5CNFSM4H427FIKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZHJYBA#issuecomment-508468228, or mute the thread https://github.com/notifications/unsubscribe-auth/AMKYFTPUEJRFU6VXHOZAAC3P5XVQLANCNFSM4H427FIA.

SvenHaedrich commented 5 years ago

Here is what I see on the console when I start the STM-eclipse:

 /opt/st/stm32cubeide_1.0.1/stm32cubeide

(STM32CubeIDE:4930): GLib-CRITICAL **: 17:04:07.277: g_base64_encode_step: assertion 'in != NULL' failed

(STM32CubeIDE:4930): GLib-CRITICAL **: 17:04:07.277: g_base64_encode_step: assertion 'in != NULL' failed

(STM32CubeIDE:4930): GLib-CRITICAL **: 17:04:07.277: g_base64_encode_step: assertion 'in != NULL' failed

(STM32CubeIDE:4930): GLib-CRITICAL **: 17:04:07.277: g_base64_encode_step: assertion 'in != NULL' failed

(STM32CubeIDE:4930): GLib-CRITICAL **: 17:04:07.321: g_base64_encode_step: assertion 'in != NULL' failed

(STM32CubeIDE:4930): GLib-CRITICAL **: 17:04:07.321: g_base64_encode_step: assertion 'in != NULL' failed

(STM32CubeIDE:4930): GLib-CRITICAL **: 17:04:07.323: g_base64_encode_step: assertion 'in != NULL' failed

(STM32CubeIDE:4930): GLib-CRITICAL **: 17:04:07.323: g_base64_encode_step: assertion 'in != NULL' failed

(STM32CubeIDE:4930): GLib-CRITICAL **: 17:04:07.323: g_base64_encode_step: assertion 'in != NULL' failed

(STM32CubeIDE:4930): GLib-CRITICAL **: 17:04:07.323: g_base64_encode_step: assertion 'in != NULL' failed

(STM32CubeIDE:4930): GLib-CRITICAL **: 17:04:07.363: g_base64_encode_step: assertion 'in != NULL' failed

(STM32CubeIDE:4930): GLib-CRITICAL **: 17:04:07.363: g_base64_encode_step: assertion 'in != NULL' failed

(STM32CubeIDE:4930): GLib-CRITICAL **: 17:04:07.391: g_base64_encode_step: assertion 'in != NULL' failed

(STM32CubeIDE:4930): GLib-CRITICAL **: 17:04:07.391: g_base64_encode_step: assertion 'in != NULL' failed

(STM32CubeIDE:4930): GLib-CRITICAL **: 17:04:07.395: g_base64_encode_step: assertion 'in != NULL' failed

(STM32CubeIDE:4930): GLib-CRITICAL **: 17:04:07.395: g_base64_encode_step: assertion 'in != NULL' failed

(STM32CubeIDE:4930): GLib-CRITICAL **: 17:04:07.396: g_base64_encode_step: assertion 'in != NULL' failed

(STM32CubeIDE:4930): GLib-CRITICAL **: 17:04:07.396: g_base64_encode_step: assertion 'in != NULL' failed

(STM32CubeIDE:4930): GLib-CRITICAL **: 17:04:07.436: g_base64_encode_step: assertion 'in != NULL' failed

(STM32CubeIDE:4930): GLib-CRITICAL **: 17:04:07.436: g_base64_encode_step: assertion 'in != NULL' failed

(STM32CubeIDE:4930): GLib-CRITICAL **: 17:04:07.437: g_base64_encode_step: assertion 'in != NULL' failed

(STM32CubeIDE:4930): GLib-CRITICAL **: 17:04:07.437: g_base64_encode_step: assertion 'in != NULL' failed

(STM32CubeIDE:4930): GLib-CRITICAL **: 17:04:07.438: g_base64_encode_step: assertion 'in != NULL' failed

(STM32CubeIDE:4930): GLib-CRITICAL **: 17:04:07.438: g_base64_encode_step: assertion 'in != NULL' failed

(STM32CubeIDE:4930): GLib-CRITICAL **: 17:04:07.466: g_base64_encode_step: assertion 'in != NULL' failed

(STM32CubeIDE:4930): GLib-CRITICAL **: 17:04:07.466: g_base64_encode_step: assertion 'in != NULL' failed

(STM32CubeIDE:4930): Gtk-WARNING **: 17:04:15.016: Negative content width -4 (allocation 2, extents 3x3) while allocating gadget (node progressbar, owner GtkProgressBar)

(STM32CubeIDE:4930): Gtk-WARNING **: 17:04:15.016: Negative content width -2 (allocation 0, extents 1x1) while allocating gadget (node trough, owner GtkProgressBar)

(STM32CubeIDE:4930): Gtk-WARNING **: 17:04:15.016: Negative content width -4 (allocation 2, extents 3x3) while allocating gadget (node progressbar, owner GtkProgressBar)

(STM32CubeIDE:4930): Gtk-WARNING **: 17:04:15.016: Negative content width -2 (allocation 0, extents 1x1) while allocating gadget (node trough, owner GtkProgressBar)

(STM32CubeIDE:4930): Gtk-WARNING **: 17:04:15.017: Negative content width -4 (allocation 2, extents 3x3) while allocating gadget (node progressbar, owner GtkProgressBar)

(STM32CubeIDE:4930): Gtk-WARNING **: 17:04:15.017: Negative content width -2 (allocation 0, extents 1x1) while allocating gadget (node trough, owner GtkProgressBar)

(STM32CubeIDE:4930): Gtk-WARNING **: 17:04:15.017: Negative content width -4 (allocation 2, extents 3x3) while allocating gadget (node progressbar, owner GtkProgressBar)

(STM32CubeIDE:4930): Gtk-WARNING **: 17:04:15.017: Negative content width -2 (allocation 0, extents 1x1) while allocating gadget (node trough, owner GtkProgressBar)
org.osgi.service.prefs.BackingStoreException: Exception occurred while saving project preferences: /Gateway/.settings/org.codechecker.eclipse.plugin.CodeCheckerNature.prefs.
    at org.eclipse.core.internal.resources.ProjectPreferences.save(ProjectPreferences.java:679)
    at org.eclipse.core.internal.preferences.EclipsePreferences.internalFlush(EclipsePreferences.java:431)
    at org.eclipse.core.internal.resources.ProjectPreferences.flush(ProjectPreferences.java:371)
    at org.codechecker.eclipse.plugin.config.CcConfiguration.validate(CcConfiguration.java:77)
    at org.codechecker.eclipse.plugin.config.CcConfiguration.load(CcConfiguration.java:43)
    at org.codechecker.eclipse.plugin.config.CcConfiguration.<init>(CcConfiguration.java:35)
    at org.codechecker.eclipse.plugin.config.project.CodeCheckerProject.<init>(CodeCheckerProject.java:68)
    at org.codechecker.eclipse.plugin.init.StartupJob.projectOpened(StartupJob.java:124)
    at org.codechecker.eclipse.plugin.init.StartupJob.runInUIThread(StartupJob.java:93)
    at org.codechecker.eclipse.plugin.init.StartupJob.run(StartupJob.java:63)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)