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.

Bug 173364 - IDE freezes when set source level and encoding
Summary: IDE freezes when set source level and encoding
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Settings (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P2 blocker (vote)
Assignee: Vitezslav Stejskal
URL:
Keywords: THREAD
Depends on:
Blocks:
 
Reported: 2009-09-30 10:14 UTC by Michal Mocnak
Modified: 2010-11-09 16:26 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (94.86 KB, image/png)
2009-09-30 10:15 UTC, Michal Mocnak
Details
thread dump (24.91 KB, text/plain)
2009-09-30 10:16 UTC, Michal Mocnak
Details
Thread dump from build 20101108 (18.23 KB, text/plain)
2010-11-08 09:41 UTC, David Strupl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Mocnak 2009-09-30 10:14:38 UTC
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.
Comment 1 Michal Mocnak 2009-09-30 10:15:38 UTC
Created attachment 88578 [details]
screenshot
Comment 2 Michal Mocnak 2009-09-30 10:16:04 UTC
Created attachment 88579 [details]
thread dump
Comment 3 Milos Kleint 2009-09-30 13:22:38 UTC
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..
Comment 4 Jaroslav Pospisil 2009-09-30 13:43:07 UTC
Unmarking RANDOM,since it's 100% reproducible,if pom.xml was opened before editing project properties.
Comment 5 Vitezslav Stejskal 2009-09-30 15:18:34 UTC
project.mutex vs document read{write}Lock
Comment 6 Vitezslav Stejskal 2009-09-30 22:10:49 UTC
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.
Comment 7 Vitezslav Stejskal 2009-09-30 22:18:03 UTC
Aha, I can see this issue among the stoppers listed at http://wiki.netbeans.org/NB68BetaGoNoGo and so I'm going to
transplant.
Comment 8 Vitezslav Stejskal 2009-09-30 22:31:31 UTC
Transplanted to release68_beta as http://hg.netbeans.org/release68_beta/rev/76b92853a923
Comment 9 Quality Engineering 2009-10-01 17:25:26 UTC
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()
Comment 10 Jaroslav Pospisil 2009-10-05 09:47:25 UTC
Verified
Comment 11 dtrebbien 2010-11-02 15:42:39 UTC
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.
Comment 12 David Strupl 2010-11-08 09:41:17 UTC
Created attachment 102841 [details]
Thread dump from build 20101108
Comment 13 David Strupl 2010-11-08 09:45:04 UTC
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.
Comment 14 Jesse Glick 2010-11-09 16:26:12 UTC
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.