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 148850 - Quick Search is Searching forever
Summary: Quick Search is Searching forever
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Help System (show other bugs)
Version: 6.x
Hardware: All Linux
: P2 blocker (vote)
Assignee: Victor Vasilyev
URL:
Keywords: RANDOM
Depends on:
Blocks: 190448
  Show dependency tree
 
Reported: 2008-10-01 14:18 UTC by Jan Becicka
Modified: 2010-10-05 11:38 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
jstack dump (16.10 KB, text/plain)
2010-09-29 13:11 UTC, Jan Becicka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Becicka 2008-10-01 14:18:49 UTC
I tried to search for "Compile" and combo shows "Searching" item forever. See screenshot. Fresh trunk build.
Product Version: NetBeans IDE Dev (Build 081001)
Java: 1.5.0_16; Java HotSpot(TM) 64-Bit Server VM 1.5.0_16-b02
System: Linux version 2.6.25.16-0.1-default running on amd64; UTF-8; en_US (nb)
Comment 1 David Simonek 2008-10-01 15:03:35 UTC
Hmm, this is not reproducible on my machine :(
Comment 2 Jan Becicka 2008-10-01 15:08:22 UTC
Did you really try Compile?
Comment 3 David Simonek 2008-10-01 15:20:35 UTC
Yes
Comment 4 David Simonek 2008-10-01 15:25:20 UTC
I recall that from time to time, code in Help provider didn't return from searching sooner than after say 40 seconds.
But I never could find reliable way how to reproduce it. Anyway passing to Standa, help provider author.

I see you have 64 bit system - that may be root of the case, if you are able to reproduce always, then we could put in
some logging...
Comment 5 Jan Becicka 2008-10-02 09:21:51 UTC
Help provider never gives me any result for "Compile on Save"
Comment 6 Jiri Skrivanek 2009-05-12 09:02:48 UTC
Is it still reproducible with latest builds? It works for me well.
Comment 7 Jan Becicka 2010-09-29 13:10:22 UTC
Java help evaluator is slow or broken, at least for me. If I try several searches on my machine, few of them hangs for several minutes. It slows down whole quick search infrastructure. Attached jstack dump.
Comment 8 Jan Becicka 2010-09-29 13:11:47 UTC
Created attachment 102192 [details]
jstack dump
Comment 9 Victor Vasilyev 2010-09-30 11:23:14 UTC
Is there a way to reproduce this bug? I can't reproduce it on my box

in x86 mode

Product Version: NetBeans IDE 6.9.1 (Build 201007282301)
Java: 1.6.0_19; Java HotSpot(TM) Client VM 16.2-b04
System: Windows Vista version 6.0 running on x86; Cp1251; ru_RU (nb)

nor x64 mode

Product Version: NetBeans IDE 6.9.1 (Build 201007282301)
Java: 1.6.0_21; Java HotSpot(TM) 64-Bit Server VM 17.0-b17
System: Windows Vista version 6.0 running on amd64; Cp1251; ru_RU (nb)
Comment 10 Victor Vasilyev 2010-10-05 02:48:06 UTC
Seems a cause of this bug are interrupts and spurious wakeups that are possible on a Java platform, and also nonobservance of the Java specification for the method wait() in the class org.netbeans.modules.javahelp.JavaHelpQuery where a cycle "while (<condition does not hold>)" has not been used.
Comment 11 Victor Vasilyev 2010-10-05 03:00:08 UTC
Fixed in the main trunk
http://hg.netbeans.org/main/rev/6139aaf2da6d
Comment 12 Jan Becicka 2010-10-05 11:38:06 UTC
seems to work. Thanks!