Skip to content

unlimited searchs can accidently hang/crash the system #872

Open

Description

@r6squeegee

When using the ctrl-h search functionality, in some cases if you accidentally put something that matches a lot of files everywhere... the search effectively hangs the IDE for a long time (or indefinitely).

Today's example for me was when I was searching my code base because some one had put "******" some where in our code base so I searched everything for that string so I could remove it... not paying attention to the fact the * will match anything... it hung after about 590,000 matches and was still trying to find more...

If there was a "reasonable limit" - like who really thinks their search was narrow enough if it exceeds 10,000 results.... then it would keep the system responsive and let the user would realise their search criteria probably needs to be better and they can try again.

Activity

  1. Bananeweizen commented on Feb 25, 2023

    @Bananeweizen
    Contributor

    I've had the same thought many times. A simple additional preference to stop the search after some amount of results seems reasonable, the quick search also has it.

  2. jukzi commented on Apr 18, 2023

    @jukzi
    Contributor

    I ran into that problem sometimes too. @r6squeegee mind to contribute a fix? Should be a configurable limit like the console output buffer.

  3. r6squeegee commented on Apr 19, 2023

    @r6squeegee
    Author

    I guess I could have a look. I've never looked at the eclipse source before so no guarantees.

  4. r6squeegee commented on Apr 27, 2023

    @r6squeegee
    Author
  5. iloveeclipse commented on Apr 27, 2023

    @iloveeclipse
    Member

    Note, that we have a regression in this area: eclipse-platform/eclipse.platform.text#187.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions