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.
Build: NetBeans IDE Dev (Build 100817-7dddd6ba7dde) VM: Java HotSpot(TM) Client VM, 17.0-b16, Java(TM) SE Runtime Environment, 1.6.0_21-b06 OS: Linux User Comments: jglick: Changing editor font. Linewrap on, word style. Stacktrace: java.lang.IllegalStateException: Race condition: usageCount = 1 at org.netbeans.modules.editor.lib2.view.HighlightsViewFactory.restart(HighlightsViewFactory.java:150) at org.netbeans.modules.editor.lib2.view.ViewBuilder$FactoryState.init(ViewBuilder.java:619) at org.netbeans.modules.editor.lib2.view.ViewBuilder.<init>(ViewBuilder.java:253) at org.netbeans.modules.editor.lib2.view.ViewUpdates.initChildren(ViewUpdates.java:159) at org.netbeans.modules.editor.lib2.view.DocumentView.initChildren(DocumentView.java:500) at org.netbeans.modules.editor.lib2.view.EditorBoxViewChildren.getWithChildrenValid(EditorBoxViewChildren.java:297)
Created attachment 101463 [details] stacktrace
Created attachment 101464 [details] stacktrace
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=171989
Created attachment 101526 [details] stacktrace Deleted property file and the exception appeared...
Created attachment 101535 [details] stacktrace
Created attachment 101536 [details] stacktrace
Created attachment 101537 [details] stacktrace
I have added remembering of the thread that uses HighlightsViewFactory. With this I should be able to find the problem more easily. http://hg.netbeans.org/jet-main/rev/8a7413bc7004
*** Bug 189214 has been marked as a duplicate of this bug. ***
Integrated into 'main-golden', will be available in build *201008270001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/8a7413bc7004 User: Miloslav Metelka <mmetelka@netbeans.org> Log: #189608 - IllegalStateException: Race condition: usageCount = 1 - added last usage's stack remembering to find the culprit thread.
I was finally able to reproduce - though only in a test. There is no race condition but rather a nested attempt to reuse the HighlightViewFactory. I will fix it ASAP.
Created attachment 101860 [details] Nested reuse of HighlightViewFactory
It should now be fixed: http://hg.netbeans.org/jet-main/rev/1d31c1f01454
Integrated into 'main-golden', will be available in build *201009070000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/1d31c1f01454 User: Miloslav Metelka <mmetelka@netbeans.org> Log: #189608 - IllegalStateException: Race condition: usageCount = 1.
Integrated into 'main-golden', will be available in build *201009080000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/1d31c1f01454 User: Miloslav Metelka <mmetelka@netbeans.org> Log: #189608 - IllegalStateException: Race condition: usageCount = 1.