This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS6, problem with java VM version

Other Parts Discussed in Thread: CCSTUDIO

Hello

I recently upgraded my OS to Ubuntu 14.04 Trusty, and I installed Code Composer Studio v6.0.1. When I start CSS6, it crashed with the following message (extract):

# An unexpected error has been detected by Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x85aa3edf, pid=3094, tid=3075888896
#
# Java VM: Java HotSpot(TM) Client VM (11.3-b02 mixed mode linux-x86)
# Problematic frame:
# C [libwebkitgtk-1.0.so.0+0x1d0edf]
#

I obtain the same error with oracle-java7, oracle-java8 or openjdk7. What surprises me is the version of Java Hotspot (11.3-b02) whereas:

$ java -version
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) Server VM (build 24.65-b04, mixed mode)

$ echo $JAVA_HOME
/usr/lib/jvm/java-7-oracle

Where and why does CCS6 find this old VM?

Yves Grenier

  • Yves,

    CCS would normally use its local copy of the JVM in <installdir>/ccsv6/eclipse/jre.  It only search for other possibilities ff the local version does not exist.  I suspect your CCS is crashing for a different reason.

    Can you confirm whether the CCS installer notifies you of any missing dependencies? IE, if you re-run the installer does the dependency check warn you of anything missing?  You don't need to re-install, just run the installer to the point where you pick which products to install.

  • Andy

    I have re-run the installer, and it does not display any warning.

    I also verified that the local version exists:

    $ ls -l /opt/ti/ccsv6/eclipse/jre/bin/java_vm
    -rwxr-xr-x 1 root root 25634 mars 9 2009 /opt/ti/ccsv6/eclipse/jre/bin/java_vm

  • Yves,

    Could you have a look to see if a java crash log file is being created and, if it is, post the file here?

    The location of the file is normally specified by the ccstudio.ini file located in /opt/ti/ccsv6/eclipse. Find the line that looks like: -XX:ErrorFile=/home/andy/.ti/ti/0/dmp/hs_err_%p.log.   In this example, the log files are located in /home/andy/.ti/ti/0/dmp/.

  • Andy

    Here is  the log file:

    4213.hs_err_pid5062.log

  • Thanks! While I look through this could you also tell me if CCS behaves any differently if you run with root privileges?

  • It is possible CCS is crashing due to this bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=400626

    Their workaround is to add these lines to the end if the ccstudio.ini file:

    -Dorg.eclipse.swt.browser.XULRunnerPath=/dev/null 
    -Dorg.eclipse.swt.browser.DefaultType=mozilla

    Does this help your case?

  • AndyW said:

    Their workaround is to add these lines to the end if the ccstudio.ini file:

    -Dorg.eclipse.swt.browser.XULRunnerPath=/dev/null 
    -Dorg.eclipse.swt.browser.DefaultType=mozilla

    Does this help your case?

    Yes it helps! CCS is now runing.

    Thank you!

    Yves