Error with CCS on Ubuntu 11.10

Hello

I have been using Code composer on my system since last 7-8 months and Now I have updated it as 5.1.1 on Ubuntu 11.10. I have checked the dependencies listed on Wiki under installation support for Linux and the problem I am getting is as soon as I am starting CCS, It is crashing with following error message:  

flxInitLoad: client has not been protected.
flxInitLoad: client has not been protected.

(Code Composer Studio:6662): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed

(Code Composer Studio:6662): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed

(Code Composer Studio:6662): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed

(Code Composer Studio:6662): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed

(Code Composer Studio:6662): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed

(Code Composer Studio:6662): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed
No bp log location saved, using default.
[000:000] Browser XEmbed support present: 1
[000:000] Browser toolkit is Gtk2.
[000:000] Using Gtk2 toolkit
** (Code Composer Studio:6662): DEBUG: NP_Initialize
** (Code Composer Studio:6662): DEBUG: NP_Initialize succeeded
** (Code Composer Studio:6662): DEBUG: NP_Initialize
** (Code Composer Studio:6662): DEBUG: NP_Initialize succeeded
(Code Composer Studio:6662): GnomeShellBrowserPlugin-DEBUG: plugin loaded
ERROR: Invalid browser function table. Some functionality may be restricted.
[000:072] Warning(optionsfile.cc:47): Load: Could not open file, err=2
[000:072] No bp log location saved, using default.
[000:072] Browser XEmbed support present: 1
[000:072] Browser toolkit is Gtk2.
[000:072] Using Gtk2 toolkit
** (Code Composer Studio:6662): DEBUG: NP_Initialize
** (Code Composer Studio:6662): DEBUG: NP_Initialize succeeded
** (Code Composer Studio:6662): DEBUG: NP_Initialize
** (Code Composer Studio:6662): DEBUG: NP_Initialize succeeded
** (Code Composer Studio:6662): DEBUG: NP_Initialize
** (Code Composer Studio:6662): DEBUG: NP_Initialize succeeded
** (Code Composer Studio:6662): DEBUG: NP_Initialize
** (Code Composer Studio:6662): DEBUG: NP_Initialize succeeded
** (Code Composer Studio:6662): DEBUG: NP_Initialize
** (Code Composer Studio:6662): DEBUG: NP_Initialize succeeded
ERROR: Invalid browser function table. Some functionality may be restricted.
[000:088] Warning(optionsfile.cc:47): Load: Could not open file, err=2
[000:091] No bp log location saved, using default.
[000:091] Browser XEmbed support present: 1
[000:091] Browser toolkit is Gtk2.
[000:091] Using Gtk2 toolkit
** (Code Composer Studio:6662): DEBUG: NP_Initialize
** (Code Composer Studio:6662): DEBUG: NP_Initialize succeeded
(Code Composer Studio:6662): GnomeShellBrowserPlugin-DEBUG: plugin loaded
java version "1.6.0_23"
OpenJDK Runtime Environment (IcedTea6 1.11pre) (6b23~pre11-0ubuntu1.11.10.2)
OpenJDK Server VM (build 20.0-b11, mixed mode)
Segmentation fault

Do anybody know why this is occurring? On the safe hand I have updated and upgraded packages on ubuntu 11.10 but no help.

Thanks.
  • Hi Arun,

    is this your first install on Linux?  Or were you using Linux before?

    - are you using 64 bit Linux?  If so please be absolutely sure to install 32 bit support.  This is something that we have found can on an off not necessarily be trivial in Ubuntu 11

    - have you double checked your permissions?   Linux is even more sensitive than Win 7 with permissions. 

    - what device support did you try to install?

    - do you have the JRE installed?

    Can you provide a bit more background?

    Best Regards,
    Lisa

  • In reply to Lisa TI:

    Hello Lisa,

    No this is not my first install on Linux. I have been using CCS since last 7-8 months and I have used CCS on Ubuntu 10.04 and 10.10. But I am not able to use it on 11.10. I didn't get any error message during installation, It installed very fine, after everything I have installed, It crashes all away.  I am using 32-bit Linux.  I am root of the system, But anyhow on the safer hand I have run and installed all with Sudo command , so there should not be any issues regarding permissions. I am installing it for C6678 DSP. I am using it on my windows and Have been using it on ubuntu previous versions as well. I have read regarding dependencies issue with CCS on ubuntu or linux, so I have double checked cache is updated and I have installed latest updates and upgrades. But, that doesn't help as well.  Yes, JRE has been installed on my system. 

    I have also checked one same issue on the forum raised by one person last week and he has written that he has updated the system and after that everything works fine with new installation. I am not sure what type of updates he is talking about? 

    Anyways, I am thinking to give one more try regarding re-installation, but I am not perfectly sure what I am doing, so,,I want to be cent percent sure before I do anything.

    Thanks. 

  • In reply to Arun:

    Hello Lisa,

    For your information, I have uninstalled CCS and done all the updations and all on ubuntu and then tried to reinstalled CCS again but this time as well crashing happens but With the different Error message:

    flxInitLoad: client has not been protected.
    flxInitLoad: client has not been protected.
    No bp log location saved, using default.
    [000:000] Browser XEmbed support present: 1
    [000:000] Browser toolkit is Gtk2.
    [000:000] Using Gtk2 toolkit
    ** (SWT:10167): DEBUG: NP_Initialize
    ** (SWT:10167): DEBUG: NP_Initialize succeeded
    ** (SWT:10167): DEBUG: NP_Initialize
    ** (SWT:10167): DEBUG: NP_Initialize succeeded
    (SWT:10167): GnomeShellBrowserPlugin-DEBUG: plugin loaded
    [000:039] Warning(optionsfile.cc:47): Load: Could not open file, err=2
    [000:039] No bp log location saved, using default.
    [000:040] Browser XEmbed support present: 1
    [000:040] Browser toolkit is Gtk2.
    [000:040] Using Gtk2 toolkit
    ** (SWT:10167): DEBUG: NP_Initialize
    ** (SWT:10167): DEBUG: NP_Initialize succeeded
    ** (SWT:10167): DEBUG: NP_Initialize
    ** (SWT:10167): DEBUG: NP_Initialize succeeded
    ** (SWT:10167): DEBUG: NP_Initialize
    ** (SWT:10167): DEBUG: NP_Initialize succeeded
    ** (SWT:10167): DEBUG: NP_Initialize
    ** (SWT:10167): DEBUG: NP_Initialize succeeded
    ** (SWT:10167): DEBUG: NP_Initialize
    ** (SWT:10167): DEBUG: NP_Initialize succeeded
    [000:051] Warning(optionsfile.cc:47): Load: Could not open file, err=2
    [000:052] No bp log location saved, using default.
    [000:052] Browser XEmbed support present: 1
    [000:052] Browser toolkit is Gtk2.
    [000:052] Using Gtk2 toolkit
    ** (SWT:10167): DEBUG: NP_Initialize
    ** (SWT:10167): DEBUG: NP_Initialize succeeded
    (SWT:10167): GnomeShellBrowserPlugin-DEBUG: plugin loaded


    Now , I have no idea why this is happening. 

    Thanks and Regards,
    Arun 
  • In reply to Arun:

    Hi Arun,

    this is not obvious from the message unfortunately.  There are a few logs we can search for that might help debug this.

    See if you can find the  hs_err log generated by the JVM. I’ve seen the file created in various random spots. It might be easiest to add

    -XX:ErrorFile=~/hs_err_%p.log

     

    to the ccstudio.ini file so it will always be created in the users home folder.  The file might tell something about why it is crashing.

     

    Sometimes the strace log can help. This is run using

    strace -o /tmp/strace.log ./ccstudio

     

    but may be somewhat less useful.

    Please keep us informed and see if there are any logs you may be able to send.

    Best Regards,
    Lisa

  • In reply to Lisa TI:

    Hello Lisa,

    Thanks for your mail.
    Let me tell you first What steps I have tried till now, I have installed, JRE, Oracle JDK7 and all related java stuffs, apart from that each Dependencies  individually from Synaptics Package manager and also by $ locate ld-linux,  $ sudo apt-cache search, sudo apt-get install.... , and then I have installed new CCS 5.1.1 but Still the same issue. 

    I have checked and there was no "hs_err_pidxxxx.log" file present over there, so  I am not able to attach that error file. But I have attached Strace.log and two more files which shows there is no dependencies issues while running them in Debugserver and Configurations, 

     

    Kindly help. Thanks and regards,
    Arun 

  • In reply to Arun:

    Hello Lisa,

    I am sorry , I think Due to some issues, files has not been uploaded. Anyways, here are the files..

    5265.Debugserver.pdf

    5165.Configuration.pdf

    2806.strace.log.zip

    Thanks.. 

  • In reply to Arun:

    Arun,

    I think the problem you are seeing is being caused by libraries being loaded from your JRE 7 install in /usr/lib/jvm/java-7-oracle. CCS uses the version 6 JVM  installed in the CCS install folder, but for some reason a few dependencies are being resolved to libraries in your JRE7 folder. You can see this from the strace log if you search for the path above.

    My suggestion would be to start a terminal window and temporarily modify your environment so there are no links to the version 7 JVM. You would need to check your PATH and LD_LIBRARY_PATH environment variables to ensure they do not reference this JRE. You may also need to modify the links in your /etc/alternatives folder to point to a compatible JVM.

  • In reply to AndyW:

    Hello Andy,

    Thanks for your mail. Please forgive me on my little knowledge, But can you little bit elaborate how to temporarily modify the links to JVM7 and other stuffs which You have mentioned.

    Thanks and Regards,
    Arun 

  • In reply to Arun:

    Arun,

    On second thought, a better approach might be to set prepend your LD_LIBRARY_PATH environment var with the path to the local CCS JRE. To do this:

    • Open a terminal window.
    • Assuming the default shell is bash, execute " export LD_LIBRARY_PATH=/opt/ti/ccsv5/eclipse/jre/lib:$LD_LIBRARY_PATH "
    • Start ccstudio and see what happens. If it still crashes, please capture another strace log from the same terminal window and I'll see if something else looks incorrect.
  • In reply to AndyW:

    Hello Andy,

    I have checked in my system and Strace file, in strace file it was showing JAVA-7-Oracle, but strangely in my system it is showing JAVA6, no JAVA-7. I have checked in synaptics manager and everywhere but with the name java-7 there was only one installer, which was installed, then I have uninstalled that java7 from my system. Then I have tried to launch ccstudio, but again the same crash and problem remain the same.

    I have tried above mentioned steps as well and I have tried after uninstalling JAVA7 from system again, so I have attached two strace file here, first one is before uninstalling java7 and second one is after java 7 uninstallation.  But, Problem remain the same. I am not getting any clue!

    8836.strace.log.zip

    5706.strace2.log.zip

    Thanks and regards,
    Arun