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.
Manual build 070109. After opening Tools->Options I've got the attached deadlock.
Created attachment 37321 [details] Thread dump of the deadlock
Ugly, I've seen it too. It seems that it's happening only when you open Tools-Options for the first time. It also seemed to help when I waited for a while between opening the dialog and going to Editors category, but that could be just my specific configuration.
Should be fixed now. Checking in src/org/netbeans/modules/editor/options/AllOptionsFolder.java; /cvs/editor/src/org/netbeans/modules/editor/options/AllOptionsFolder.java,v <-- AllOptionsFolder.java new revision: 1.39; previous revision: 1.38 done Checking in src/org/netbeans/modules/editor/NbEditorKit.java; /cvs/editor/src/org/netbeans/modules/editor/NbEditorKit.java,v <-- NbEditorKit.java new revision: 1.100; previous revision: 1.99 done Checking in apichanges.xml; /cvs/editor/apichanges.xml,v <-- apichanges.xml new revision: 1.5; previous revision: 1.4 done Checking in test/cfg-unit.xml; /cvs/editor/test/cfg-unit.xml,v <-- cfg-unit.xml new revision: 1.16; previous revision: 1.15 done Checking in nbproject/project.properties; /cvs/editor/nbproject/project.properties,v <-- project.properties new revision: 1.27; previous revision: 1.26 done
I've rolled back some of the changes, because they were causing problems with settings initialization. See issue #92667 and issue #92912. We will have to come up with a better fix. Checking in src/org/netbeans/modules/editor/NbEditorKit.java; /cvs/editor/src/org/netbeans/modules/editor/NbEditorKit.java,v <-- NbEditorKit.java new revision: 1.101; previous revision: 1.100 done Checking in test/cfg-unit.xml; /cvs/editor/test/cfg-unit.xml,v <-- cfg-unit.xml new revision: 1.17; previous revision: 1.16 done
*** Issue 93415 has been marked as a duplicate of this issue. ***
*** Issue 94310 has been marked as a duplicate of this issue. ***
This time hopefully a trouble-free fix. Checking in src/org/netbeans/modules/editor/options/BaseOptions.java; /cvs/editor/src/org/netbeans/modules/editor/options/BaseOptions.java,v <-- BaseOptions.java new revision: 1.139; previous revision: 1.138 done Checking in src/org/netbeans/modules/editor/options/BasePrintOptions.java; /cvs/editor/src/org/netbeans/modules/editor/options/BasePrintOptions.java,v <-- BasePrintOptions.java new revision: 1.34; previous revision: 1.33 done Checking in src/org/netbeans/modules/editor/options/OptionSupport.java; /cvs/editor/src/org/netbeans/modules/editor/options/OptionSupport.java,v <-- OptionSupport.java new revision: 1.33; previous revision: 1.32 done Checking in src/org/netbeans/modules/editor/NbEditorKit.java; /cvs/editor/src/org/netbeans/modules/editor/NbEditorKit.java,v <-- NbEditorKit.java new revision: 1.102; previous revision: 1.101 done Checking in src/org/netbeans/modules/editor/EditorModule.java; /cvs/editor/src/org/netbeans/modules/editor/EditorModule.java,v <-- EditorModule.java new revision: 1.124; previous revision: 1.123 done Checking in src/org/netbeans/modules/editor/NbEditorSettingsInitializer.java; /cvs/editor/src/org/netbeans/modules/editor/NbEditorSettingsInitializer.java,v <-- NbEditorSettingsInitializer.java new revision: 1.22; previous revision: 1.21 done Checking in libsrc/org/netbeans/editor/Settings.java; /cvs/editor/libsrc/org/netbeans/editor/Settings.java,v <-- Settings.java new revision: 1.63; previous revision: 1.62 done Checking in test/cfg-unit.xml; /cvs/editor/test/cfg-unit.xml,v <-- cfg-unit.xml new revision: 1.18; previous revision: 1.17 done Checking in nbproject/project.xml; /cvs/editor/nbproject/project.xml,v <-- project.xml new revision: 1.33; previous revision: 1.32 done
Unfortunately the latest fix broke the Schliemann LanguagesEditorKit:-( That class has a constructor which gets the content type as parameter. But it has no time to initialize itself before you call getContentType() on it:-( So that function returns null and everything else is unhappy:-(
My applogy. Hopefully a few things will be happy again :-). Checking in NbEditorKit.java; /cvs/editor/src/org/netbeans/modules/editor/NbEditorKit.java,v <-- NbEditorKit.java new revision: 1.103; previous revision: 1.102 done Checking in NbEditorSettingsInitializer.java; /cvs/editor/src/org/netbeans/modules/editor/NbEditorSettingsInitializer.java,v <-- NbEditorSettingsInitializer.java new revision: 1.23; previous revision: 1.22 done
Another similar deadlock, I think it's related to this issue. Happens when opening options and immediately when the dialog opens going to Editor tab
Created attachment 38389 [details] thread dump
... a few more fixes. I've revised the synchronization model in o.n.editor.Settings and done a few changes that will hopefully let MimeLookup and Settings coexist until we get rid of the whole damn thing. The trunk build seems to be working fine, but I might have broken something, so please be patient and let me know. Just for the record here is the description from my commit: #92449: fixing synchronization model in Settings and BaseOptions; - adding/removing settings initializers, filters and change listeners is not synchronized on the same lock as reading/writing/initializing setting values (i.e. Settings.class) - firing events from Settings class is done outside of synced sections - Settings.reset is asynchronous using a dedicated RequestProcessor - BaseOptions methods that initialize settings use the Settings' read/write/init lock (i.e. Settings.class) - updating the deadlock test Checking in src/org/netbeans/modules/editor/options/BaseOptions.java; /cvs/editor/src/org/netbeans/modules/editor/options/BaseOptions.java,v <-- BaseOptions.java new revision: 1.141; previous revision: 1.140 done Checking in src/org/netbeans/modules/editor/options/OptionSupport.java; /cvs/editor/src/org/netbeans/modules/editor/options/OptionSupport.java,v <-- OptionSupport.java new revision: 1.34; previous revision: 1.33 done Checking in libsrc/org/netbeans/editor/Settings.java; /cvs/editor/libsrc/org/netbeans/editor/Settings.java,v <-- Settings.java new revision: 1.65; previous revision: 1.64 done Checking in test/unit/src/org/netbeans/modules/editor/options/BaseOptionsDeadlock92449Test.java; /cvs/editor/test/unit/src/org/netbeans/modules/editor/options/BaseOptionsDeadlock92449Test.java,v <-- BaseOptionsDeadlock92449Test.java new revision: 1.2; previous revision: 1.1 done
*** Issue 95199 has been marked as a duplicate of this issue. ***
*** Issue 94407 has been marked as a duplicate of this issue. ***
*** Issue 95936 has been marked as a duplicate of this issue. ***
There is more to come...
Another bit fixed. Checking in BaseKit.java; /cvs/editor/libsrc/org/netbeans/editor/BaseKit.java,v <-- BaseKit.java new revision: 1.159; previous revision: 1.158 done