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.

CCS: Code Composer Studio crashing on startup in Mac OS X High Sierra

Other Parts Discussed in Thread: UNIFLASH, CCSTUDIO

Tool/software: Code Composer Studio

Issue:

After fresh install, attempting to open CCS results in the application crashing with no dialogs to communicate an error. When using the command line, there error message is "LSOpenURLsWithRole() failed with error -10810 for the file ..."

Solution:

Use "sudo mkdir" to create two directories in your Home directory: ".ti" and "ti". Then use "sudo chown" to assign ownership of those directories to yourself (your system user, as displayed by the command "id").

This stopped the crashing and allowed me to open the application. I believe this is related to a recent security patch that Apple pushed in response to a major vulnerability that was discovered as I previously have had no issues creating directories in my Home directory.

  • Michael,

    Thank you very much for reporting this, along with the solution.

    I have not seen this yet but we will be trying to reproduce it today. My Mac is stuck at Sierra but we have another that is High Sierra.

    We could potentially have the installer create those folders. I am assuming that you were installing on /Applications as you seem to have admin privs. If someone doesn't have admin privs then we would be installing in the /ti folder under the user folder.

    Were there any previous CCS installs on this mac?

    Regards,
    John
  • Hi John,

    This was a fresh install (no previous TI software on my system). Just to be clear, the issue seems to pertain to temp folders or working folders that the application expects to be available in ${HOME}.

    I encountered the issue again when using Uniflash (the app doesn't do anything without a directory called "Texas Instruments" existing in ${HOME}. I'm not sure how to report this.

    Regards,

    Michael
  • Michael,

    Yes you are correct that many of our tools need to create folders in the user folder to function. CCS requires .ti and ti, UniFlash and others require Texas Instruments...

    We are trying to reproduce this issue but have not had any luck. We would very much like to reproduce the issue to figure out what is going on.


    Are you installing and running as the same user?
    Can you send us the exact MacOS version and any info on patches that were installed?
    What is the user type? standard...
    Could you zip and attach the install logs for CCS. They are in <install folder>/ccsv7/install_logs


    Regards,
    John
  • John,

    Mac OS X Version is: 10.13.3

    User is an Admin account, as reported by Users and Groups. the output of the 'id' cmd also displays association with the OS "admin" group ID.

    I have attached the successful install logs with the "SUCCESS -" prefix. I then renamed ${HOME}/.ti, ${HOME}/ti , and ${HOME}/Texas\ Instruments and the tried the install again to generate new logs, prefixed with "FAIL -". The attached file "execution_output.txt" is a recorded session which shows the account groups, as well as the error output of the Ccstudio.app execution.

    Finally, I found an Apple support ticket surrounding this issue, dated ~ Oct 2017. The dates here would suggest these sorts of concerns pre-date the recent security patch related to the root password vulnerability. Here is a link, along with a proposed solution to reset the permissions and ACLs for ${HOME}: discussions.apple.com/.../8094109

    Regards,

    Michael

    7824.FAIL - install_logs.tar.gz

    Script started on Mon Jan 29 13:44:18 2018
    [?1034hbash-3.2$ id
    uid=501(michael) gid=20(staff) groups=20(staff),701(com.apple.sharepoint.group.1),12(everyone),61(localaccounts),79(_appserverusr),80(admin),81(_appserveradm),98(_lpadmin),399(com.apple.access_ssh),33(_appstore),100(_lpoperator),204(_developer),250(_analyticsusers),395(com.apple.access_ftp),398(com.apple.access_screensharing)
    bash-3.2$ 
    bash-3.2$ 
    bash-3.2$ 
    bash-3.2$ pwd
    /Applications/ti
    bash-3.2$ 
    bash-3.2$ 
    bash-3.2$ ls
    Code Composer Studio 7.4.0	ccsv7				xdctools_3_32_02_25_core	xdctools_3_50_04_43_core
    bash-3.2$ 
    bash-3.2$ 
    bash-3.2$ cd ccsv7/
    bash-3.2$ ls
    ccs_base		eclipse			install_logs		tools			uninstallers
    doc			install_info		tirex			uninstall_ccs.app	utils
    bash-3.2$ cd eclipse
    bash-3.2$ ls
    Ccstudio.app	Eclipse.app	ccs.properties
    bash-3.2$ 
    bash-3.2$ 
    bash-3.2$ 
    bash-3.2$ open Ccstudio.app
    LSOpenURLsWithRole() failed with error -10810 for the file /Applications/ti/ccsv7/eclipse/Ccstudio.app.
    bash-3.2$ 
    bash-3.2$ 
    bash-3.2$ 
    bash-3.2$ exit
    exit
    
    Script done on Mon Jan 29 13:45:18 2018
    
    SUCCESS - ccsv7_install_logs.tar.gz

  • Michael,

    Thank you very much for going through the process again and sending the logs. The team has continued to try to reproduce this on a few different Macs. While we haven't yet been able to come up with the same scenario, the team has some ideas on how we might be able to prevent it. I hope to have more information later this week.

    Regards,
    John
  • Michael,

    Currently the install sees the issue with creating the directory but just logs a warning.

    fixIni - CCS_WARNING: Couldn't run /Applications/ti/ccsv7/ccs_base/common/bin/fs: boost::filesystem::create_directory: Permission denied: "/Users/michael/.ti"

    We are going to add a check for this at the start of the installer and will display the issue in the system check screen of the installer. The link to the apple support case was very useful and we will include this link when we show the message. Hopefully this will help anyone else who runs into the issue.

    Regards,
    John