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.

CCSv6 Hangs When Copying a Particular Project

Other Parts Discussed in Thread: AM3358, CCSTUDIO

Hello.

Windows 7 64-bit

CCS v6.1.2.00015

I have successfully copied projects in the past using Copy/Paste in the Project Explorer.

Yesterday, I took an existing workspace and moved it (I don't know if this is relevant, but it might be, so I am showing it).  I did this by setting CCS to prompt on every launch for the workspace, then shutting down CCS, then moving the workspace from:

E:\Dev\Clients\HM\Dash_2\fw\

to

E:\Dev\Clients\HM\Dash_2\fw\02LrnTI\

And then re-launched CCS and when it prompted for the workspace, I directed it to the new directory, and there SEEMED to be no problems.

However, when I try copying this project (07_LEDBlink_SK_Timer.zip   which still compiles and works properly on my AM3358 Starter Kit board), it proceeds for a couple of seconds and then hangs, using up about 25% of 3 (of 4) cores on my PC.  And even left for 30 minutes, it never proceeds past this point.

PC Core Load:

Here is a screen shot:

Of possible relevance is the status message:

When I try to kill the process, I get the Windows Blue Screen of Death, it does a memory dump, and then my PC reboots.

Because of this, I cannot test at this writing whether it behaves the same on other projects (since CCS is hung, and does not respond at all -- even to the Cancel button on the "Progress Information" dialog box -- except to disable the Cancel button).  I will try copying another project next.  Now it is time to save all my documents and close other applications because I'm going to get the Blue Screen of Death again.

Can anyone help me sort this out?  Move the workspace back and import the old project(s) into the new workspace?

Kind regards,
Vic

  • Indeed, it hangs this way on other projects as well.

    If my moving of my workspace was the cause of the problem, it would REALLY be helpful to know the proper way to move a workspace to a different directory.

    One other point that seems relevant:  if I KILL the process   ccstudio.exe   then I get the Blue Screen of Death.  But if I just shut down my system, it appears CCS DOES respond to that by exiting gracefully, even thought it does not respond to any user input.

    Kind regards,
    Vic

  • For the record, moving the workspace BACK made no difference. It still hangs at the same place, and forces me to reboot my system.
  • This appears to be a bug in Eclipse that has been extant since 2005 and the ACTUAL cause was never fixed. It is happening to me consistently on my Windows 7 64-bit system with CCS Version: 6.1.2.00015, and I can reproduce it while trying to copy a particular project every single time.

    Here is just ONE of the links I found:
    bugs.eclipse.org/.../show_bug.cgi

    If there are any TI people who are Eclipse members also with enough knowledge to fix it, I can provide the project that seems to be triggering it. The ZIP file above contains the (cleaned) project directory contents (created with WinZip, not by exporting the project). Eclipse database has this same bug registered under Bug 94922, 90927, 98034 and 358717, and possibly others, and keeps resurfacing periodically from 2005 on through 2013. SOMEBODY needs to re-open this as a bug in Eclipse and get it really fixed this time.... (I don't program in Java, or else I'd be tempted.)

    Kind regards,
    Vic Wheeler
  • Victor,

    Victor Wheeler said:

    I did this by setting CCS to prompt on every launch for the workspace, then shutting down CCS, then moving the workspace from:

    E:\Dev\Clients\HM\Dash_2\fw\

    to

    E:\Dev\Clients\HM\Dash_2\fw\02LrnTI\

    And then re-launched CCS and when it prompted for the workspace, I directed it to the new directory, and there SEEMED to be no problems.

    I tried following a similar procedure with one of my workspaces, then did a copy/paste of a couple of projects and could not reproduce the problem. I also imported your project into the workspace and was able to copy/paste it successfully. 

    Can you zip up the .metadata folder from your workspace and attach it here? We could take a look at it to see if anything stands out.


    In the meantime, rather than moving the workspace, could you try opening a new workspace in the desired directory (using CCS menu File->Switch Workspace->Other, and specify the new directory), then importing all the projects into the new workspace, and check if the copy/paste still triggers the same problem?

  • Hello!

    I think it is a problem with the actual routine that does "Reporting encoding changes".  Here's why:

    1.  I have mixed files in this project:  at least the .S file uses CR/LF pairs for line endings, whereas most, if not all other files use only LF.

    2.  I created the new workspace (on an empty folder) as you suggested and imported the project (07_LEDBlink_SK_Timer) and it imported and built without any errors.  Then I cleaned the project to reduce copy overhead, and then...

    3.  I did a COPY of the project in Project Explorer, and then a PASTE, and it gets to the same point and hangs, again with the "Reporting encoding changes" status message.

    The following is a screenshot showing the new directory created and a comparison of the files.  You can see that some source files have been copied and others not, and I believe it is in this process that something (a file encoded differently?) is triggering the "job" "Reporting encoding changes", and then, according to the bits of some of the Eclipse bugs I read, one thread takes over and nothing else will happen until that thread completes, and it doesn't complete!  I have tried letting run for as long as an hour now.  I'm going to do the same on the new workspace to see if it will actually finish.  But whatever this "job" is that it is trying to do, it is ... hmmm...  shall I say it?  an engineering disaster, and appears, according to the bugs I read, to have been around since 2005.  Most of the bug reports end off (get closed) with "unable to replicate"!  Do a Google search on the QUOTED string "Reporting encoding changes" and read the Eclipse bugs found and see if you concur.

    Meanwhile, here the screenshot showing the file DIFF:

    And as requested, here is a .ZIP file containing the original .metadata folder.  (Sorry, when I clicked POST it would not allow this 26MB file.)   However, since it is doing it on new workspace (with just this ONE project imported into it), here's is the .metadata folder of the new workspace.


    02LrnTI.metadata.zip

    Thoughts?

    After I get my computer rebooted, I will send a copy of the ENTIRE new work so you can do a file comparison, in case it contains any clues.

    Kind regards,
    Vic

  • As promised, here is the entire (new, and cleaned) workspace.  The imported project ("07_...") was imported from the original workspace, and builds without errors.  I tried copying it to the same workspace with the new name  "08_...Hal",  and and it hung again at exactly the same place.

    Here is the ENTIRE workspace in case it contains more clues.  The "08_...Hal" project does not show up in the CCS Project Explorer (the copy never completed), but the partially-copied directory is there.


    02LrnTI.zip

  • For the record, I converted the .S file  and  test.cmd   to have Unix line endings, and tried the copy again, and it STILL hangs in exactly the same place. So those 2 files were not the trigger. Big question: what triggers the "Reporting encoding changes" job?

  • Victor,

    We will take a look at the workspace logs. Can you confirm one more thing? If you import the project to a new workspace and do the copy/paste immediately, ie before building the project, does it still hang?

  • Good question.

    Yes, making a new empty workspace, importing it, and then attempting a copy (before building) causes it to hang in the same place.
  • For the record, it isn't hanging on EVERY project. This morning out of curiosity, I went back to a project I knew I had successfully copied recently, and it copied again, without any problem. I went to the "07_LEDBlink..." project and tried copying, and hung again in the same place.
  • Victor,

    I am consulting with some engineers and they think it might be helpful if we can get the java call stack dump when CCS is hung. Maybe 2 or 3 log captures within a 30-40 second time frame might indicate if we are consistently stuck in the same thread. Would you be able to capture this and send to us?

    To get a java call stack, you can use jstack command line tool that is part of the JDK. If you do not have JDK installed you would need to download and install it.

    After installing JDK, the command:
    jstack -l CCSTudioProcessID
    should generate the call stack dump to standard output.

    If things are truly stuck then –F option may be necessary. 

    Below is the help for jstack.

    ===================

    C:\Program Files (x86)\Java\jdk1.7.0_60\bin>jstack

    Usage:

        jstack [-l] <pid>

            (to connect to running process)

        jstack -F [-m] [-l] <pid>

            (to connect to a hung process)

        jstack [-m] [-l] <executable> <core>

            (to connect to a core file)

        jstack [-m] [-l] [server_id@]<remote server IP or hostname>

            (to connect to a remote debug server)

     

    Options:

        -F  to force a thread dump. Use when jstack <pid> does not respond (process is hung)
       -m  to print both java and native frames (mixed mode)
       -l  long listing. Prints additional information about locks
       -h or -help to print this help message

    =====================

  • 20160420_1423xx_java_stack_dumps.zip

    Certainly!

    I got you 5 stack dumps at 10-second intervals.  The filenames indicate the time the stack dumps were taken (YYYYMMDD_HHMMSS_....txt).

    Attached is a .ZIP file that contains all 5.

    Hoping this helps lead to the problem,
    Vic

  • Hi Victor,

    We were able to reproduce the problem, and know the root cause of it.  This is a bug in Eclipse.  It is the same bug as the one reported in https://bugs.eclipse.org/bugs//show_bug.cgi?id=339859.  I will try to implement a workaround for it for CCS v6.2.0.  I have opened a Jira entry to track this issue: https://jira.itg.ti.com/browse/CCDSK-469.  

    This problem affects any project that has linked files/folders relative to any path-variable.  You can see all the path-variables for a project in the Properties > Resource > Linked Resources dialog page, on the Path Variables tab.  The same page also shows all the linked resources on the Linked Resources tab.

    The only workaround i can think of right now is for you to manually copy the project using an external tool, like Windows Explorer.  Once you've made the copy in the filesystem, you'll need to also edit the .project file to adjust the <name> element to reflect the new project name.

    - Baltasar

  • Hello, Baltasar!

    "Root cause" is music to my ears!!

    It alarms me however, that this bug appears to be unhandled for the last 5 years.  Am I reading that right?

    Does TI have anyone on the Eclipse team that might be able to address it at its source?

    Kind regards,
    Vic

  • Victor,

    Yes, we can all contribute patches to Eclipse.  But it is a slow process.  FYI, I have opened two Eclipse bugzilla entries to track two separate issues affecting the copying of CCS projects:

    1. https://bugs.eclipse.org/bugs/show_bug.cgi?id=492260
    2. https://bugs.eclipse.org/bugs/show_bug.cgi?id=492263

    I will submit patches for these if I get the committers' agreement.  

    For CCS v6.2.0, i will look into implementing workarounds, if possible, for these two bugs.  Please follow https://jira.itg.ti.com/browse/CCDSK-469 for any updates on that.

    Thanks,

    - Baltasar

  • Thank you, Baltasar!

    It's VERY good to know this is destined to be fixed.

    One thing:  my DNS doesn't find an IP addres for  jira.itg.ti.com  .  I'm guessing TI network has a private DNS server that serves that IP address.  True?

    Kind regards,
    Vic

  • Victor Wheeler said:
    One thing:  my DNS doesn't find an IP addres for  jira.itg.ti.com  .  I'm guessing TI network has a private DNS server that serves that IP address.  True?

    Yes, Jira entries are currently not visible outside of TI. We are working on making these visible externally, but just not there yet.

  • Understood! Well, I certainly look forward to receiving your work-around in CCSv6.2! And well done for jumping on this!
    Kind regards,
    Vic
  • VIctor, FYI, for CCS v6.2.0, I was able to implement workarounds to avoid this problem until the Eclipse bugs are fixed.  

    Thanks,

    - Baltasar

  • Outstanding!!!  :-)