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.

Time Lag in Theia between clicking the menu to build and the compiler running among other inquiries

Other Parts Discussed in Thread: MSPM0G3507

TI Friends & Family,

From our end customer --- 

"Do we know if TI is doing any work to fix the lag in Theia between clicking the menu to build and the compiler running?  It still stalls for several minutes in 1.1.0.  The same is true for saving files; it takes several minutes before acting on the save request."

TI:

 First off, this is great feedback for our teams, thanks for sharing and for your patience !

 Secondly, I’d reply by saying simply “I haven’t seen this at this level of stalling” – but perhaps others have.

To clarify, Theia isn’t freezing or locking up when I click the save or rebuilt projects menu options.  It’s just that nothing happens right away.  It behaves as though it needs something to time out before servicing the request.  Usually the request isn’t serviced for 3 – 5 minutes.

 I would then ask if you are running on a machine that does this regularly (stalls on applications, builds, etc) and if you experience it only with the TI tools or not?

I only see this issue with Theia.  I will note that the other 2 developers don’t experience this issue.

 These are heavyweight tools (large installers, memory users, lots of interdependencies, etc).  I just wonder if you witness stalls on other apps.  Are you also saving locally or to a network drive or location?  Is your machine for that matter all running locally or virtually/networked?

All other apps run without stalling.  I save to my harddrive.  All developer tools are run locally (not considering web based tools like Gitlab).

 Outside of that, I don’t have much more to say.  I run a high performance HP ZBook locally but do sometimes wish I had more RAM.

I’m running Windows 10 Enterprise

Intel(R) Core(TM) i7-10850H CPU @ 2.70GHz   2.71 GHz

32.0 GB RAM

Could you also share some insight on how the tool manages menu clicks so that I might find a way around this issue?  For ex,

 

  • Why does it take so long to decide to “Save All”?  Does it actually only autosave at a fixed time interval?
  • Is it right to see this number of processes running, and are there any specifically that can be closed when I want to click “Rebuild Project(s)”?

TI:

Regarding #1, we can’t seem to reproduce this either. This is the first time we are hearing of such an issue. Does it happen consistently with all projects? If so, can you try deleting the existing cache and start with a simple project in a new workspace and see if the issue persists?

 https://software-dl.ti.com/ccs/esd/documents/users_guide_ccs_theia/ccs_faqs.html#i-want-to-restart-ccs-theia-with-a-fresh-environment-how-do-i-do-this

 Regarding #2, it is typical to have many CCS related processes in task manager.

 It may be good to post this on E2E. Makes it easier to forward the issue to others and to have it tracked.

So...that's it!  Posting for others to comment further please!  BTW, this is for MSPM0G3507....

TY,
CY

  • Thanks for posting to this to E2E. Please add any updates here regarding responses to the questions I mentioned earlier.

  • CCS Theia is made up of many processes. Some perform the backend server functions and other the front end visualization. Similar to how you would have a website servers talking to client browsers. Main difference is that both servers and clients are running locally on your PC. All these processes communicate with each other through websockets and some through pipe's. 

    It is possible that something on customer system is interfering with this inter process communication and introducing observed lag. 

    I have seen an instance, with a different product, where this type of communication was impacted by security sw installed on customer's PC. This particular product used websocket inter process communication and this data transmission was intercepted and severe performance impact was introduced. We speculated that lag was added as security SW attempted to classify the data, potentially contacting security SW's servers. I believe it was used to secure browser usage, but it did not seem to distinguish between PC local traffic vs external web traffic. 

    I would be curious to see if customer could check their system to see if there is any non CCS Theia process activity that could be correlated with CCS Theia usage. This is how we tracked down the issue in past scenario that I described above, i.e. when the app was started was there another process with elevated activity that would normally have low CPU usage. 

    Martin

  • Hi MartinS,

    I don't know how to determine if non CCS Theia process activity correlates with CCS Theia usage.

    A few days ago I followed the steps to clear cache in  https://software-dl.ti.com/ccs/esd/documents/users_guide_ccs_theia/ccs_faqs.html#i-want-to-restart-ccs-theia-with-a-fresh-environment-how-do-i-do-this, as recommended above and found that it allowed the compiler to begin immediately after the Rebuild Project(s) menu item is clicked. That worked for a while, then over the next days the compiler started taking longer to respond.  I repeated the recommended steps today once the response slowed to approximately 1 minute.  Again the procedure fixed the lag.  I understand I will need to clear the cache every few days to correct the issue.

  • A few days ago I followed the steps to clear cache in  https://software-dl.ti.com/ccs/esd/documents/users_guide_ccs_theia/ccs_faqs.html#i-want-to-restart-ccs-theia-with-a-fresh-environment-how-do-i-do-this, as recommended above and found that it allowed the compiler to begin immediately after the Rebuild Project(s) menu item is clicked.

    This is interesting feedback. The FAQ lists two cache directories:

    • [USER HOME]\AppData\Local\Texas Instruments\CCS\.ccs-server
    • [USER HOME]\AppData\Local\Texas Instruments\CCS\[CCS THEIA INSTALL FOLDER NAME]

    The next time this happens can you try only clearing one of the two? We are trying to narrow down which cached data could be the culprit. We suspect it is related to the first cached folder. Try deleting the second first and see what happens. If that does not help, then delete the other. 

    Thanks

    ki

  • Hi Ki,

    This issue has occurred a couple times since your post and each time I deleted a different folder.  Deleting the ccstheia110 folder fixed the issue for several days.  Deleting the .ccs-server folder did not.

  • Thanks Bryan. This is very helpful.

  • Bryan,

    Can you:

    1) zip up the ccstheia110 cache folder in question and send it to me (you can send via private E2E message)

    2) Use CCS Theia normally until the issue happens again

    3) When the issue happens again, send the zip of the cache folder again like in step #1

    Also, are you getting this issue with an SDK project or are you working with a custom project?

    Thanks

    ki