Bug 541178 - File Search Cancel Hangs For Long Running Searches
Summary: File Search Cancel Hangs For Long Running Searches
Status: CLOSED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Search (show other bugs)
Version: 4.7   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Search-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-14 19:14 EST by Shawn Adamick CLA
Modified: 2024-04-26 01:59 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shawn Adamick CLA 2018-11-14 19:14:58 EST
I work on a large workspace full of many different Java and JavaScript projects.  I frequently use the File Search feature to try and find certain strings in any files (specifying "*" for filename) within the Enclosing Project or Resource.  But, sometimes depending on what was last selected in the Project Explorer, the search Scope gets set to "Workspace" accidentally and I wind up searching through all files in the Workspace (not what I want) and will naturally take a very long time due to the sheer number of files.  When I see that has happened or hear my CPU fan speed going to maximum then I know the search was not what I wanted.  At that point, I then click he "X" button in the Search Results window to cancel the search.  More often than not, this causes the Search Results page to become disabled/grayed-out and the search continues to run and the rest of the Eclipse IDE becomes completely unresponsive.  The only thing I can do at this point is kill Eclipse using the Task Manager.  I've waited over 15 to 30 minutes after clicking cancel but the search never stops.

Can the file search be fixed to check for cancellation once every 10 seconds or something like that?


-- Configuration Details --
Product: Spring Tool Suite 3.9.4.201804120921-RELEASE (org.springsource.sts.ide)Installed Features:
 org.eclipse.platform 4.7.3.v20180330-0640
Comment 1 Andrey Loskutov CLA 2018-11-15 00:37:43 EST
Please try latest 4.9 or 4.10 nightly build. If this still reproducible, please create jstack dump at the moment Eclipse is not responsible and attach here.
Comment 2 Eclipse Genie CLA 2020-11-05 14:06:37 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 3 Boian Petkantchin CLA 2021-12-17 11:57:52 EST
I can confirm that this is still present in Eclipse 4.20.0.
Comment 4 Stephan Wahlbrink CLA 2022-07-18 09:46:34 EDT
Cancellation of file searches still doesn't work reliable.
Comment 6 Jörg Kubitz CLA 2022-07-25 08:10:54 EDT
Please test with next build.

4.25 M2
Comment 7 Thomas Lussnig CLA 2024-04-26 01:59:49 EDT
The bug is still here in eclipse "2024-03) (4.31.0)
I did an file search for *body and eclipse is totaly blocked.
After many minutes i need do kill the process since it does not become responsive again.