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: | Failing tests org.openide.text.CloneableEditorSupportPaneAsyncTest.testGetOpenedPanesAndClose in release71_fixes branch | ||
---|---|---|---|
Product: | platform | Reporter: | Jiri Skrivanek <jskrivanek> |
Component: | Text | Assignee: | Miloslav Metelka <mmetelka> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | akobberup, alexvsimon, anebuzelsky, aws, budgie67, cdicarlo, crazyjavahacking, dkonecny, FrantaM, gilbertoca, jbsabmello, jglick, jtulach, karel_barel, KhArtNJava, leek, maghiel, marfous, mienamoo, misterm, mkhramov, mkristofic, mmirilovic, mrpc, paolosca, ralphbenjamin, snez, tbrunhoff, tnleeuw, troodon, turneliusz, ulfzibis, vriha, vv159170, williambacchi, yardus |
Priority: | P1 | Keywords: | REGRESSION, TEST |
Version: | 7.1.1 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
Stack trace from console log.
stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace |
Description
Jiri Skrivanek
2012-02-21 08:22:09 UTC
It fails on assertion in CloneableEditor, line 628: if (support.cesEnv().isValid()) { assert doc != null; } Since Yarda added that check in terms of issue #180785 I would like to ask Yarda to fix this problem. Thanks in advance. Yarda, we need to fix this ASAP in release71_fixes branch ! ... as this is a part of test suite provided to JDK team as a part of their certification cycle. *** Bug 203843 has been marked as a duplicate of this bug. *** The test seems to be OK in current trunk version. In trunk the same exception occurs randomly not only in tests (see bug 203843). It should be fixed in trunk and test can be disabled in 7.1.1 test distribution. Maked randomly failing on the release branch: 8ded17ecdff6 Passing back to openide/text, as the previous line was: "assert doc != null;" E.g. I have not added the assert. It seems to be introduced when bug 138686 was fixed. Integrated into 'releases', will be available in build *201203012225* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/8ded17ecdff6 User: Jaroslav Tulach <jtulach@netbeans.org> Log: #208681: This test seems to fail randomly. Created attachment 116556 [details]
stacktrace
open file
Created attachment 116557 [details]
stacktrace
file open
Created attachment 117652 [details]
stacktrace
Created attachment 117711 [details]
stacktrace
when i tried close all tabs ctrl + shift + w
Created attachment 117762 [details]
stacktrace
This bug already has 20 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=182064 Created attachment 117922 [details]
stacktrace
Closing Project
Created attachment 117931 [details]
stacktrace
close projects
Created attachment 117949 [details]
stacktrace
Created attachment 117953 [details]
stacktrace
I closed multiple windows using Close all action
Created attachment 117955 [details]
stacktrace
switching project groups.
Created attachment 117985 [details]
stacktrace
switching project groups
Created attachment 118044 [details]
stacktrace
Created attachment 118071 [details]
stacktrace
Closed all tabs
I'm unable to reproduce the problem. I assume that the trunk has the same problem. I've attempted to store the document instance (being loaded) earlier in the prepareTask (at time of its construction). I would like to ask reporters to test whether the fix helped or not. Thanks. http://hg.netbeans.org/jet-main/rev/5192321f3ac2 Created attachment 118084 [details]
stacktrace
ctrl + shift + w for closing all opened tabs
Created attachment 118093 [details]
stacktrace
Started up netbeans, and tried to close a project (right click on project on projects window -> close)
This bug already has 50 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=182064 Created attachment 118144 [details]
stacktrace
Closed some projects
Created attachment 118169 [details]
stacktrace
It just happened to me on the latest dev build which contains your fix. Created attachment 118180 [details]
stacktrace
selected close all
Integrated into 'main-golden', will be available in build *201204120400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/5192321f3ac2 User: Miloslav Metelka <mmetelka@netbeans.org> Log: #208681 - Failing tests org.openide.text.CloneableEditorSupportPaneAsyncTest.testGetOpenedPanesAndClose. Created attachment 118191 [details]
stacktrace
Close All on files from already closed projects
Created attachment 118296 [details]
stacktrace
Second attempt to fix the problem: http://hg.netbeans.org/jet-main/rev/6651b7c6907b Created attachment 118323 [details]
stacktrace
closing all opened editor windows durign startup scanning
Created attachment 118355 [details]
stacktrace
Closed a php file
Integrated into 'main-golden', will be available in build *201204170400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/6651b7c6907b User: Miloslav Metelka <mmetelka@netbeans.org> Log: #208681 - Failing tests org.openide.text.CloneableEditorSupportPaneAsyncTest.testGetOpenedPanesAndClose - stop further processing when another thread would call CES.closeDocument(). *** Bug 211420 has been marked as a duplicate of this bug. *** Verified. The test is passing and I haven't seen this exception in IDE anymore. *** Bug 211876 has been marked as a duplicate of this bug. *** |