This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 40423 - [36cat] search never ends or returns results
Summary: [36cat] search never ends or returns results
Status: RESOLVED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Search (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@utilities
URL:
Keywords:
Depends on: 32089
Blocks:
  Show dependency tree
 
Reported: 2004-02-24 15:18 UTC by jasondonmoyer
Modified: 2004-09-29 10:47 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screen shot (81.55 KB, image/png)
2004-02-24 15:18 UTC, jasondonmoyer
Details
thread dump (14.83 KB, text/plain)
2004-02-24 15:19 UTC, jasondonmoyer
Details
Trimmed Stack Traces (19.65 KB, text/plain)
2004-05-20 00:05 UTC, isullivan
Details
Full stack traces (174.20 KB, text/plain)
2004-05-20 00:05 UTC, isullivan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jasondonmoyer 2004-02-24 15:18:25 UTC
[ JDK VERSION : J2SE 1.4.2_02 ]

When searching by status after updating a CVS file system, (search is for those objects that are NOT Up-to-date), on some occasions, the search never ends and never shows results (it's known that there are files which are not up to date).  Attached is a screenshot exhibiting this behavior and the corresponding thread dump.
Comment 1 jasondonmoyer 2004-02-24 15:18:55 UTC
Created attachment 13609 [details]
screen shot
Comment 2 jasondonmoyer 2004-02-24 15:19:27 UTC
Created attachment 13610 [details]
thread dump
Comment 3 Milan Kubec 2004-03-09 14:29:14 UTC
Reassigning.
Comment 4 Marian Petras 2004-03-09 16:29:54 UTC
From the thread dump, I guess the problem is with module VCS -
reassigning.

The suspicious threads are "SearchTask" and "VCS Command Tasks Starter
Loop".
Comment 5 Martin Entlicher 2004-03-09 16:51:01 UTC
The problem is in the "SearchTask" thread. VcsCacheDir.waitToLoad()
waits for the cache directory to be loaded, but for some reason it
looks like it's never loaded.

As a workaround Recursive Refresh can help. Or stop the search and run
it again.

This problem will likely be solved by the cache redesign (issue #32089).
Comment 6 jasondonmoyer 2004-03-09 20:43:05 UTC
Neither of these suggestions solve the problem... the only way for 
the search to succeed is to restart netbeans and hope that it doesn't 
get into this state before the search completes successfully
Comment 7 isullivan 2004-05-20 00:01:21 UTC
I hit this bug today.
I searched for modifed files, all files showed up, so I did a Refresh 
Recursive at the cvs root. Clicked Modify Search, and then OK.
That search basically hangs the IDE, so there is no way to stop the 
search.
I did 13 thread dumps and found one thread that was definately 
looping under a certain stack frame. I'm attaching 2 files, one 
(SearchHang.txt) is the trimmed stack traces that have just the 
thread that seems to be stuck, and the other (SearchHangFull.txt) is 
all 13 dumps.
Comment 8 isullivan 2004-05-20 00:05:09 UTC
Created attachment 15018 [details]
Trimmed Stack Traces
Comment 9 isullivan 2004-05-20 00:05:36 UTC
Created attachment 15019 [details]
Full stack traces
Comment 10 Martin Entlicher 2004-09-22 17:45:27 UTC
That would indicate a problem in search module. But I'm not sure it's
really in infinite loop. Are you searching a lot of files?

Moving to search to evaluate the stacks...
Comment 11 Marian Petras 2004-09-29 10:47:54 UTC
This bug should not happen again (at least with such stacktraces). All
the critical parts of stacktraces were initiated by cleaning search
results of the previous search. The cleaning tasks
(ResultModel.close()) was implemented in such a way that it removed
result nodes one-by-one (ResultModel$FoundNode.removeFromSearch())
which caused repetitive sorting of the remaining nodes. This has
changed since the time bug #41789 ("Clearing of previous ResultModel
is performed in AWT thread") was fixed and the reason of blocking the
search task no longer exists. I am marking this bug as FIXED. If you
encounter the same or similar symptomps in NetBeans 4.0, feel free to
reopen the bug.