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.

Error with CCS on Ubuntu 11.10

Other Parts Discussed in Thread: CCSTUDIO

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

  • 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. 

  • 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 
  • 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

  • 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 

  • 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.. 

  • 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.

  • 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 

  • 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.
  • 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 

  • Arun,

    I'm not sure why, but the CCS process is still loading shared libraries from /usr/lib64/mozilla which I suspect are not compatible. I've tried to recreate the situation here but I have not found the set of applications that causes this to happen.  As a quick test, could you rename the /usr/lib64/mozilla folder to something else temporarily and see if ccs gets any further on startup? Renaming the folder should ensure the library loaded doesn't find these libraries and hopefully just ignores them.

  • Hello Andy,

    No that doesn't help.  CCS still crashing. Apart from this, I have also tried to uninstalled mozilla firefox compeletely from system and checked but CCS is still crashing. I have attached strace file just after uninstalling mozilla from system.

    What would you suggest? Its getting tensed now, I am not able to move further and my whole Research is based on this one. Should I change Ubuntu version(which I don't want) or should I shift to Windows?

    0525.strace3.log.zip

    Thanks and Regards,
    Arun 

  • Arun,

    I'm sorry this is taking a long time to resolve. Dependency issues seem to be the bane of Linux applications.  From your new log I can still see mozilla shared libraries being loaded from various places and this is probably still causing a problem. I do know what a freshly installed Ubuntu 11.10 that has been fully updated does work (both the 32-bit and 64-bit versions). Windows will also work as expected. We can continue to try to find what the issue is if you wish, but if you have the option of starting from a fresh installation or using windows this will get you going faster.  If you need to install other applications on your Linux install, I would assume the problem will eventually reappear when the application causing the compatibility problem is installed.

    If you wish to try to keep debugging this, I suggest temporarily renaming the following folders to prevent any mozilla libs from being loaded and then sending another strace log: /usr/lib64/mozilla, /usr/lib/mozilla, ~/,mozilla

  • Hello Andy,

    I am very sorry. I hope you will understand my situation. Anyways, I am ready to debug this. as per your saying, I have rename mozilla as  sudo mv /usr/lib64/mozilla ~/mozilla-backup, but on doing under /usr/lib/mozilla, there is no folder over there by that name. Anyways, after doing this, still CCS is crashing. I have run strace and attached the file here. I have checked in the file and have found so many mozilla shared libraries, I don't know from where CCS is loading all those.

    Kindly forgive me for my little knowledge. I am not very quicker in understanding , so may be I take little longer to understand and grasp things.

    7065.strace4.log.zip

    Thanks and Regards,
    Arun 

  • Arun,

    No problem. I'm just sorry you are having this problem getting started.

    Here's what I would suggest next.

    (1) Browse to /opt/ti/ccsv5/eclipse/plugins/com.ti.ccstudio.branding_5.1.0.201201061800/plugin_customization.ini, and edit this file (you might need to make it writable if you installed as sudo).  In this file, find the line that says "org.eclipse.ui/showIntro" and change the value from true to false. Save the file.  The purpose of doing this is to defer the loading of the Eclipse internal browser which could be causing the Mozilla plugins to be loaded.

    (2) Plugins are now being loaded from /usr/lib/firefox and /opt/google/talkplugin, so to prevent this from happening, please also rename these folders to something else. Then, try to start CCS and post yet another strace log if it sill crashes.  When you start CCS ,please be sure to give it a new name for the workspace (IE, a completely new folder that hasn't been used before).

  • Hello Andy,

    I have some updates for you. yesterday after investing whole day on debugging on Code composer studio and reading Ubuntu forums and Code composer forums, I have found that ubuntu 11.10 version which was installed on my PC was get somehow corrupted. I am not sure how and when this happens? I have been checking Manual pages and it was seems like it is not showing properly and it was not displaying everything. It was just showing me Commas.

    Anyways, I have reinstalled new Ubuntu 11.10 version after removing previous version and Now, I have not installed anything on ubuntu except CCS. Good thing is CCS is running on Ubuntu 11.10. But, Strangely there are other issues, like I have installed BIOS MCSDK :bios_mcsdk_02_01_00_00_setuplinux.bin this version and previously as well I was using this one and on windows I am suing this version. But in new ubuntu 11.10, I am not getting OMP examples in creating new project on code composer and also while creating Empty RTSC project it is showing me that there is no XDC version has been installed, but I can see all these things has been installed in the system.

    Can you Suggest something Here?

    Thanks and Regards,

    Arun

  • Hi Arun,

    I believe this is a known issue to do with permissions.

    If you installed as root (sudo) you need to launch CCS as root in order to have BIOS/XDC there.  If you installed as USER then you need to launch as USER.

    Please give this a try.

    Best Regards,
    Lisa

  • Hello Lisa,

    I know it happens because of permission issues. What I actually want to know is as I have installed all softwares as root (by Sudo), and I am the only user of the ubuntu sysetm on my PC, so can I not run Code composer by the shortcut icon it makes on desktop while installing? Do I need to go /opt/ti/ccsv5/eclipse/ sudo ./ccstudio do this everytime?

    Thanks.

  • HI Arun,

    unfortunately I believe so, but Andy might be more expert here.  I think part of the issue is actually the way the Ubuntu GUI is set up.  I saw on a Ubuntu forum, that the GUI is a bit restrictive on permissions because "new users could easy damage system files otherwise".

    Andy - do you know if there is a work around to create a shortcut?

    Best Regards,
    Lisa

  • Arun

    I believe a quick workaround for this would be to make the installation folder writable by everyone (IE, cd to the install folder and execute "sudo chmod -R a+w *" ). You should be able to run as user and the shortcut should still work.

  • Thanks Andy and Lisa! I appreciate all your help. 

    Thanks.

  • Hi Arun,

    no problem, that's what we're here for.  All the best with the development.

    Best Regards,
    Lisa