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.
Summary: | Lock in waitScanFinished () | ||
---|---|---|---|
Product: | java | Reporter: | Lukas Jungmann <jungi> |
Component: | Source | Assignee: | Pavel Flaska <pflaska> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | jbecicka, jrechtacek, jtulach, mmirilovic, sustaining, tzezula |
Priority: | P2 | Keywords: | RANDOM |
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
original threaddump
Obrazek I Obrazek I Obrazek II Suggested fix - need testing (contains also logging) |
Description
Lukas Jungmann
2008-10-24 13:08:09 UTC
Created attachment 72589 [details]
original threaddump
My first observations (based on dump from Lukas): return notInitialized || this.noSubmited > 0 || !GlobalSourcePath.getDefault().isFinished(); notInitialized is false; this.noSubmited is 1; firerTask.finished is true Cc'ing Tomas, it does not seem to be related to RP as Yarda expected. Created attachment 72596 [details]
Obrazek I
Created attachment 72597 [details]
Obrazek I
Created attachment 72598 [details]
Obrazek II
It's strange, the noSubmitted is decreased in finally block of worker. Anyway we can add debug messages to find out why it's not decreased. btw: I think I've found at least somehow reliable way how to reproduce this in 6.5 RC2-FCS build on linux JDK6u10 or at least it happend to me during last week quite often after following steps: -start IDE (Java configuration, all servers installed) -open websvc.kit and websvc.restkit modules -open arbitrary test from qa-functional packages repeat: -work on it (ie. adding new tests, methods etc.) -run Run File on it - (let the test finish) || (stop the test by "Stop" button in IDE's output tab) || (somehow close IDE opened by a test) end repeat at some point (usually after 2 or more hours of work) code completion starts to show only "Scanning in progress", refactoring, find usages etc stops working. -I'm adding RANDOM kw anyway since I still don't have any exact steps -in case you want to try it yourself, here's info about tests: http://wiki.netbeans.org/WSTests#section-WSTests-FunctionalTests *** Issue 153128 has been marked as a duplicate of this issue. *** *** Issue 154355 has been marked as a duplicate of this issue. *** Created attachment 74843 [details]
Suggested fix - need testing (contains also logging)
suggested fix seems to be OK - at least I haven't been able to reproduce this again. Would it be possible to keep logging there (say at FINEST level) for a few days in case this happen in tests? Thanks. http://hg.netbeans.org/main?cmd=changeset;node=8e9624033606 Patch applied. -- Logging is available at FINEST level. Thanks Honza and Tomas. Once verified, Integrated into 'main-golden', will be available in build *200812131401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/8e9624033606 User: Pavel Flaska <pflaska@netbeans.org> Log: #151267: Scanning does not finish me neither tests we're able to reproduce this during last week => v. The fix has been ported into the release65_fixes repository. http://hg.netbeans.org/release65_fixes/rev/411ce939197e |