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 Hanging after GIT repos added to the project



My current configuration is windows 10 and CCS 10.2. 

Initially all my projects that I worked on, I had no issues when I started up CCS, it would pick up from where I left off. 

Recently I have been using GIT for version control.  At first the repos were created via GIT Bash, this gave me a problem with CCS hanging when starting up and it trying to open the last project.  Because my last project that I worked on was in a GIT repo, when CCS started up it would tell me that no repo could be found and would hang the program. 

I would have to use task manager to shut down the program.  Once shut down, the program would do the same thing again when started up.  The only way I found around the is issue was to delete the metadata file and then once CCS was open, go and open my projects in CCS manually.  I could work for days with all commits working fine and the system not hanging, as long as CCS was't shut down. 

From the CCS manual i read that the GIT repo shouldn't be in the CCS workspace directory, so I moved all my projects to a directory outside of the workspace directory.  This made no difference, I would open CCS only for it to hang, then would have to delete the metadata file and find my projects so I could continue to work.  I further read at some point that you could create the GIT repo in CCS.  I did this and shut down CCS, when I opened it again it seemed to all work fine. 

Bingo!!!  I had a result, feeling very proud and a sence of achievement I worked some more, shut down my system.  The next day when I booted up my machine and opened CCS.....  Yip you guessed it....  I had to go throught the process of deleting the metadata file, manually open my projects in CCS and continue to work.

Any help in this matter would be greatly apprecitated!

  • Hi Sean,

    I worked some more, shut down my system.  The next day when I booted up my machine and opened CCS.....  Yip you guessed it....  I had to go throught the process of deleting the metadata file, manually open my projects in CCS and continue to work.

    Does the issue happen every time starting up CCS after it was shut down? Or only after your whole machine machine was shut down? There was another similar issue reported recently where it happened restarted CCS the first time after the machine was shut down. 

    Thanks

    ki

  • Hi Ki

    I can confirm now that it only happens if the PC is shut down.  I have reset CCS and it starts fine, I have also closed CCS and then reopened it and it starts fine.  So it appears only to happen if the whole PC is shut down and then I try to open CCS.

    Regards,

    Sean

  • Yes it is likely related to that other issue I mentioned.

    Can you try the suggestion in my post below to see if that makes a difference?

    https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/994148/ccs-hangs-freeze-when-apparently-moving-from-one-location-to-another/3675042#3675042

    Thanks

    ki

  • Hi Ki

    I have gone to the link you sent me with suggestions to try.  The only suggestion that I got from that post, as I am not working from a VPN is to close the project prior to exiting CCS.  

    I have done this and unfortunately the situation is still the same.  When I restart CCS after a system shut down, CCS hangs when opened and I have to delete the metadata folder in order to get it to function.

    Regards,

    Sean

  • The only suggestion that I got from that post, as I am not working from a VPN is to close the project prior to exiting CCS. 

    Yes that is exactly what I wanted you to try

    I have done this and unfortunately the situation is still the same

    Thanks for confirming. I don't have a good workaround for this issue right now unfortunately. I will try to reproduce on my end and (assuming I can) will file a bug for this. I will keep you posted of my progress.

    ki 

  • I wasn't able to reproduce this. I added my git repo and imported some projects from it into CCS. I am using the Git Perspective. Then I close CCS and restart it. No problem. Then I close CCS and restart my PC. Then I start up CCS again. No problem.

    My repo and projects are not in the CCS workspace but I believe you mentioned that you still get the issue when you moved yours outside it also. I'm probably missing some step to reproduce it. Is there something else I need to do, so git action?

    Thanks

    ki

  • HI Ki

    Sorry for the late reply, been otherwise busy on hardware design and not the software side.

    I don't know if this will help?

    As metioned the problem only occurs if the PC is switched off and I open CCS for the first time.  On my task bar below I have CCS (1).  I select this icon to initiate CCS, icon 2 shows you were I get to befroe it hangs.  As you can see it has not even loaded the icon in the task bar correctly yet.

    The picture below shows you what CCS looks like in its hung state:

    The two projets in the explorer pain are both configured for git.

    Please let me know if there is any data that I can send you, that might help with this matter?  The other option that I am going to try is to uninstall CCS as reinstall and see what this does???

    Regards,

    Sean

  • Thanks for the screenshot. I am able to reproduce the issue now. For me, once I had the "Git Staging" view in context and shutdown, I was able to reproduce. 

    Actually, in some cases I didn't even need to reboot my PC. Just a restart of CCS would be enough to hang it. Anyway, the key thing is that I can easily reproduce now.

    I filed a bug for this. Tracking link is below:

    https://sir.ext.ti.com/jira/browse/EXT_EP-10353

    Thanks for helping me to reproduce the issue.

    ki