• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Development Tools » Code Composer Studio » Code Composer Forum » An internal error occurred during: "Search declarations". Invalid thread access
Share
Code Composer Studio
  • Forum
  • Announcements
Options
  • Subscribe via RSS
Common Questions
  • Code Composer Studio Forum Usage Guidelines

  • Resources
  • Code Composer Studio (CCStudio) Product Folder
  • Troubleshooting CCS
  • CCS Wiki
  • Download CCS
  • Order CCS
  • Tools Insider Blog
  • Bug Tracking
  • Forums

    An internal error occurred during: "Search declarations". Invalid thread access

    This question is answered
    Matt Shira
    Posted by Matt Shira
    on Jun 18 2012 14:16 PM
    Expert1800 points

    Hi,

    Our CCS version is 5.2.0.00069 and we frequently encounter “internal error” when using right-click context menu’s “Search Text” or “References” function.
    One error is like

    An internal error occurred during: "Search declarations". Invalid thread access

    Code cross-referencing becomes very inefficient with this. We have searched the CCS forum but there is no post about the same problem. Could someone help?

    Mat

    ccs 5.2.0.00069 References Search Text
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Lisa TI
      Posted by Lisa TI
      on Jun 19 2012 07:39 AM
      Guru99245 points

      Hi Mat,

      is the problem intermittent?  Or do you get the error every time in your setup?  Unfortunately intermittent problems are typically extremely hard to track down sometimes.

      What OS do you use?   Do you see this with all projects and workspaces?  All targets?  Do you notice any other issues at the same time?

      I have not encountered this before on my installation and just tried again and was not able to reproduce this.

      Best Regards,
      Lisa

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Matt Shira
      Posted by Matt Shira
      on Jun 19 2012 10:16 AM
      Expert1800 points

      Lisa,

      The problem happens for some search, not for some others. I haven't found out a pattern of which type of search strings/symbols would cause the problem to manifest.

      The OS is 32-bit Win 7 Home Premium. It does happen with other projects. I currently have only one workspace. No other issue at the same time.

      Many posts in this forum ended up with deleting .metadata folder as an ultimate cure. Does this also delete useful project settings, including but not limted to, global variables and others?

       

      Matt

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Winnie Lai
      Posted by Winnie Lai
      on Jun 21 2012 10:34 AM
      Verified Answer
      Verified by Matt Shira
      Prodigy530 points

      There is a similar case in https://bugs.eclipse.org/bugs/show_bug.cgi?id=355299. It is related to a bug in the 'Indexer' feature.

      Sometimes, I would just close all editors, then refresh (not build) every project in the project exlporer one project at a time, and montior the 'Indexing' progress bar at the bottom of the main window. I will refresh one project and wait until its indexing finished, then refresh another project, and so on. Closing CCS may help as well. I don't have to delete the .metadata so far.

      Another thing you can try, is to force Indexer to reparse a project. Right click a project, select the contex menu Indexer->Rebuild. Wait until Indexer finished. Do it for other projects, one at a time.

       

      As a last resort, close ccs and then delete the .pdom files under .metadata\.plugins\org.eclipse.cdt.core. Those are the cached files created by Indexer. Deleting those .pdom files should not affect any other settings including projects, global vars and so on, and it just forces Indexer to re-parse every project. If you have a lot and big projects, be patient because the Indexer needs to take time to rebuild its own cache.

      If you have a chance, can you post the .log file under the .metadata directory? It can tells us more about the problem.

       

       

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Matt Shira
      Posted by Matt Shira
      on Jun 22 2012 15:17 PM
      Expert1800 points

      Winnie,

      Sorry for being late in reply.

      We have tested the proposed solutions or walkarounds. Both "refresh" and "reindex" works with some success, but there are also chanes that some particular string doesn't get searched/indexed correctly after doing that.

      The method of deleting .pdom files works. Though it takes a few dozens of seconds upon CCS restart for indexes to get rebuild, all strings which had problem in finding references can now get resolved correctly. This seems to be a solution.

      Due to restrictions we cannot upload the .log file. But thanks very much for helping us to solve it!

       

      Matt

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    TI E2E™ Community
    • Support Forums
    • Blogs
    • Videos
    • Groups
    • Site Support & Feedback
    • Settings
    TI E2E™ Community Groups
    • TI University Program
    • Make the Switch
    • Microcontroller Projects
    • Motor Drive & Control
    Other Communities
    • Deyisupport
    • Designsomething.org
    • beagleboard.org
    • TI on Element 14
    • TI on TechXchangeSM
    Other Technical & Support Resources
    • WEBENCH® Design Center
    • Product Information Centers
    • Technical Documents
    • TI Design Network
    • TI Technical Articles
    • TI Training

    All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

    Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

    Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
    TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

    TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
    embedded processors, along with software, tools and the industry’s largest sales/support staff.

    © Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
    Trademarks | Privacy Policy | Terms of Use