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.
Found in nb68beta build #200909292001 on Mac OS X 10.6.1 Steps to reproduce: 1. create maven jar project 2. open pom.xml (maybe it's not necessary but i have it opened) 3. open project properties and set source level (set to 1.5) and encoding (set to UTF-8) 4. saving project data dialog will show and whole ide will freeze See attached screenshot and thread dump Marking as P1 as beta stopper. Maven project has by default source level on 1.3. Setting source level is high frequent action.
Created attachment 88578 [details] screenshot
Created attachment 88579 [details] thread dump
I cannot reproduce, marking as random, I doubt it's a blocker. reassigning to editor for evaluation, probably something with org.netbeans.modules.editor.NbEditorDocument threading.. I suppose the opened pom.xml is crucial precondition to reproduce the issue..
Unmarking RANDOM,since it's 100% reproducible,if pom.xml was opened before editing project properties.
project.mutex vs document read{write}Lock
http://hg.netbeans.org/jet-main/rev/5d45954e870d I wasn't able to test this in trunk due to a problem with the maven project wizard, but it was 100% reproducible in release68_beta. jet-main#5d45954e870d fixes the problem. If this issue is considered a show stopper for 6.8beta, please let me know and I will transplant the fix.
Aha, I can see this issue among the stoppers listed at http://wiki.netbeans.org/NB68BetaGoNoGo and so I'm going to transplant.
Transplanted to release68_beta as http://hg.netbeans.org/release68_beta/rev/76b92853a923
Integrated into 'main-golden', will be available in build *200910010513* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/5d45954e870d User: Vita Stejskal <vstejskal@netbeans.org> Log: #173364: accessing project data only from PojectManager.mutex().postReadRequest()
Verified
I am reopening this ticket because Netbeans 6.9.1 also has this bug. The steps to reproduce are the same (open `pom.xml` for editing and while it is open, set the source level and project encoding in the project properties dialog). Netbeans 6.9.1 will hang, utilizing 0% CPU. It is 100% reproducible.
Created attachment 102841 [details] Thread dump from build 20101108
Similar steps as in comment #11: 1. Open pom.xml 2. Edit it (don't save) 3. Try to set options from the project options dialog 4. Question about saving is shown 5. Freeze I have passed to Maven as my thread dump indicates there is something wrong with locking of the pom.xml XML document. Please evaluate - if there is something wrong in the editor please pass back to me.
The new thread dump looks unrelated; probably bug #187615, a well-known freeze in 6.9 which is waiting for a patch release. Please do not reopen bugs unless you are sure they are the same; generally better to file a fresh bug, and include a hint that it *might* be related to an earlier one.